Package org.nlpub.watset.graph
Class SimplifiedWatset<V,E>
- java.lang.Object
-
- org.nlpub.watset.graph.SimplifiedWatset<V,E>
-
- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph
- All Implemented Interfaces:
org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>
public class SimplifiedWatset<V,E> extends Object implements org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>
A faster and simplified version of Watset that does not need a context similarity measure.This is the recommended implementation of the Watset clustering algorithm.
- See Also:
- Ustalov et al. (COLI 45:3)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimplifiedWatset.Builder<V,E>Builder forSimplifiedWatset.static classSimplifiedWatset.Implementation<V,E>Actual implementation of Simplified Watset.
-
Field Summary
Fields Modifier and Type Field Description protected WatsetClustering<V>clusteringThe cached clustering result.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.
-
Constructor Summary
Constructors Constructor Description SimplifiedWatset(org.jgrapht.Graph<V,E> graph, ClusteringAlgorithmBuilder<V,E,?> local, ClusteringAlgorithmBuilder<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge,?> global)Create an instance of the Simplified Watset clustering algorithm.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V,E>
SimplifiedWatset.Builder<V,E>builder()Create a builder.WatsetClustering<V>getClustering()
-
-
-
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.
-
clustering
protected WatsetClustering<V> clustering
The cached clustering result.
-
-
Constructor Detail
-
SimplifiedWatset
public SimplifiedWatset(org.jgrapht.Graph<V,E> graph, ClusteringAlgorithmBuilder<V,E,?> local, ClusteringAlgorithmBuilder<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge,?> global)
Create an instance of the Simplified Watset clustering algorithm.- Parameters:
graph- the graphlocal- the local clustering algorithm supplierglobal- the global clustering algorithm supplier
-
-
Method Detail
-
builder
public static <V,E> SimplifiedWatset.Builder<V,E> builder()
Create a builder.- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph- Returns:
- a builder
-
getClustering
public WatsetClustering<V> getClustering()
- Specified by:
getClusteringin interfaceorg.jgrapht.alg.interfaces.ClusteringAlgorithm<V>
-
-