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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.nlpub.watset.graph.WatsetClustering
WatsetClustering.WatsetClusteringImpl<V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Sense<V>,Map<Sense<V>,Number>>getContexts()Get the disambiguated contexts built duringWatset.getClustering().Map<V,Map<V,Integer>>getInventory()Get the sense inventory built duringWatset.getClustering().org.jgrapht.Graph<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge>getSenseGraph()Get the intermediate node sense graph built duringWatset.getClustering().-
Methods inherited from class org.jgrapht.alg.interfaces.ClusteringAlgorithm.ClusteringImpl
getClusters, getNumberClusters, iterator, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering
getClusters, getNumberClusters
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Constructor Detail
-
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 Detail
-
getInventory
public Map<V,Map<V,Integer>> getInventory()
Get the sense inventory built duringWatset.getClustering().- Returns:
- the sense inventory
-
getSenseGraph
public org.jgrapht.Graph<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge> getSenseGraph()
Description copied from interface:WatsetClusteringGet the intermediate node sense graph built duringWatset.getClustering().- Specified by:
getSenseGraphin interfaceWatsetClustering<V>- Returns:
- the sense graph
-
getContexts
public Map<Sense<V>,Map<Sense<V>,Number>> getContexts()
Description copied from interface:WatsetClusteringGet the disambiguated contexts built duringWatset.getClustering().- Specified by:
getContextsin interfaceWatsetClustering<V>- Returns:
- the disambiguated contexts
-
-