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, Function<org.jgrapht.Graph<V,E>,Clustering<V>> local)Create an instance ofSenseInduction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Collection<V>>clusters(V target)Get the induced sense clusters.List<Map<V,Number>>contexts(V target)Get the induced senses and their non-disambiguated contexts.
-
-
-
Method Detail
-
clusters
public Collection<Collection<V>> clusters(V target)
Get the induced sense clusters.- Parameters:
target- the target node- Returns:
- a map of senses to their contexts
-
-