Package org.nlpub.watset.graph
Class SenseInduction<V,E>
- java.lang.Object
-
- org.nlpub.watset.graph.SenseInduction<V,E>
-
- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph
public class SenseInduction<V,E> extends Object
A simple graph-based word sense induction approach that clusters node neighborhoods.
-
-
Constructor Summary
Constructors Constructor Description SenseInduction(org.jgrapht.Graph<V,E> graph, ClusteringAlgorithmBuilder<V,E,?> local)Create an instance ofSenseInduction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<V>clustering(V target)Get the induced sense clusters.List<Map<V,Number>>contexts(V target)Get the induced senses and their non-disambiguated contexts.
-
-
-
Field Detail
-
local
protected final ClusteringAlgorithmBuilder<V,E,?> local
The local clustering algorithm supplier.
-
-
Constructor Detail
-
SenseInduction
public SenseInduction(org.jgrapht.Graph<V,E> graph, ClusteringAlgorithmBuilder<V,E,?> local)
Create an instance ofSenseInduction.- Parameters:
graph- the graphlocal- the neighborhood clustering algorithm supplier
-
-