Package org.nlpub.watset.graph
Class WatsetClustering.WatsetClusteringImpl<V>
java.lang.Object
org.jgrapht.alg.interfaces.ClusteringAlgorithm.ClusteringImpl<V>
org.nlpub.watset.graph.WatsetClustering.WatsetClusteringImpl<V>
- Type Parameters:
V- the type of nodes in the graph
- All Implemented Interfaces:
Serializable,Iterable<Set<V>>,org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<V>,WatsetClustering<V>
- Enclosing interface:
- WatsetClustering<V>
public static class WatsetClustering.WatsetClusteringImpl<V>
extends org.jgrapht.alg.interfaces.ClusteringAlgorithm.ClusteringImpl<V>
implements WatsetClustering<V>
A Watset clustering that computes disambiguated contexts on demand.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nlpub.watset.graph.WatsetClustering
WatsetClustering.WatsetClusteringImpl<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the disambiguated contexts built duringWatset.getClustering().Get the sense inventory built duringWatset.getClustering().Get the intermediate node sense graph built duringWatset.getClustering().Methods inherited from class org.jgrapht.alg.interfaces.ClusteringAlgorithm.ClusteringImpl
getClusters, getNumberClusters, iterator, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering
getClusters, getNumberClustersMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Constructor Details
-
WatsetClusteringImpl
public WatsetClusteringImpl(List<Set<V>> clusters, Map<V, Map<V, Integer>> inventory, org.jgrapht.Graph<Sense<V>, org.jgrapht.graph.DefaultWeightedEdge> senseGraph) Construct a new Watset clustering.- Parameters:
clusters- the clustersinventory- the sense inventorysenseGraph- the sense graph
-
-
Method Details
-
getInventory
Get the sense inventory built duringWatset.getClustering().- Returns:
- the sense inventory
-
getSenseGraph
Description copied from interface:WatsetClusteringGet the intermediate node sense graph built duringWatset.getClustering().- Specified by:
getSenseGraphin interfaceWatsetClustering<V>- Returns:
- the sense graph
-
getContexts
Description copied from interface:WatsetClusteringGet the disambiguated contexts built duringWatset.getClustering().- Specified by:
getContextsin interfaceWatsetClustering<V>- Returns:
- the disambiguated contexts
-