Package org.nlpub.watset.graph
Class SimplifiedWatset.Implementation<V,E>
- java.lang.Object
-
- org.nlpub.watset.graph.SimplifiedWatset.Implementation<V,E>
-
- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph
- Enclosing class:
- SimplifiedWatset<V,E>
public static class SimplifiedWatset.Implementation<V,E> extends Object
Actual implementation of Simplified Watset.
-
-
Field Summary
Fields Modifier and Type Field Description protected ClusteringAlgorithmBuilder<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge,?>globalThe global clustering algorithm supplier.protected org.jgrapht.Graph<V,E>graphThe graph.protected SenseInduction<V,E>inducerThe node sense induction approach.protected Map<V,Map<V,Integer>>inventoryThe sense inventory.protected Map<V,List<Sense<V>>>sensesThe sense mapping.
-
Constructor Summary
Constructors Constructor Description Implementation(org.jgrapht.Graph<V,E> graph, SenseInduction<V,E> inducer, ClusteringAlgorithmBuilder<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge,?> global)Create an instance of the Simplified Watset clustering algorithm implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildInventory()Build a node sense inventory; fill in variablessensesandinventory.protected org.jgrapht.Graph<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge>buildSenseGraph()Build an intermediate sense-aware representation of the input graph called the node sense graph.WatsetClustering<V>compute()Perform clustering with Simplified Watset.
-
-
-
Field Detail
-
inducer
protected final SenseInduction<V,E> inducer
The node sense induction approach.
-
global
protected final ClusteringAlgorithmBuilder<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge,?> global
The global clustering algorithm supplier.
-
-
Constructor Detail
-
Implementation
public Implementation(org.jgrapht.Graph<V,E> graph, SenseInduction<V,E> inducer, ClusteringAlgorithmBuilder<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge,?> global)
Create an instance of the Simplified Watset clustering algorithm implementation.- Parameters:
graph- the graphinducer- the node sense induction approachglobal- the global clustering algorithm supplier
-
-
Method Detail
-
compute
public WatsetClustering<V> compute()
Perform clustering with Simplified Watset.- Returns:
- the clustering
-
buildInventory
protected void buildInventory()
Build a node sense inventory; fill in variablessensesandinventory.
-
-