Package org.nlpub.watset.graph
Class Watset.Implementation<V,E>
java.lang.Object
org.nlpub.watset.graph.Watset.Implementation<V,E>
- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph
Actual implementation of Simplified Watset.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClusteringAlgorithmBuilder<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge, ?> The global clustering algorithm supplier.The graph.protected final SenseInduction<V,E> The node sense induction approach.The sense inventory.The sense mapping. -
Constructor Summary
ConstructorsConstructorDescriptionImplementation(org.jgrapht.Graph<V, E> graph, SenseInduction<V, E> inducer, ClusteringAlgorithmBuilder<Sense<V>, org.jgrapht.graph.DefaultWeightedEdge, ?> global) Create an instance of the Watset clustering algorithm implementation. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidBuild a node sense inventory; fill in variablessensesandinventory.Build an intermediate sense-aware representation of the input graph called the node sense graph.compute()Perform clustering with Watset.
-
Field Details
-
graph
The graph. -
inducer
The node sense induction approach. -
global
The global clustering algorithm supplier. -
inventory
The sense inventory. -
senses
The sense mapping.
-
-
Constructor Details
-
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 Watset clustering algorithm implementation.- Parameters:
graph- the graphinducer- the node sense induction approachglobal- the global clustering algorithm supplier
-
-
Method Details
-
compute
Perform clustering with Watset.- Returns:
- the clustering
-
buildInventory
protected void buildInventory()Build a node sense inventory; fill in variablessensesandinventory. -
buildSenseGraph
Build an intermediate sense-aware representation of the input graph called the node sense graph.- Returns:
- the sense graph
-