Package org.nlpub.watset.graph
Class Watset<V,E>
- java.lang.Object
-
- org.nlpub.watset.graph.Watset<V,E>
-
- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph
- All Implemented Interfaces:
Clustering<V>
@Deprecated public class Watset<V,E> extends Object implements Clustering<V>
Deprecated.useSimplifiedWatsetinstead.Watset is a local-global meta-algorithm for fuzzy graph clustering.Watset builds an intermediate undirected graph by inducing different senses of each node in the input graph.
We recommend using
SimplifiedWatsetinstead of this class.- See Also:
- Ustalov et al. (COLI 45:3),
SimplifiedWatset
-
-
Constructor Summary
Constructors Constructor Description Watset(org.jgrapht.Graph<V,E> graph, Function<org.jgrapht.Graph<V,E>,Clustering<V>> local, Function<org.jgrapht.Graph<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge>,Clustering<Sense<V>>> global, ContextSimilarity<V> similarity)Deprecated.Create an instance of the Watset clustering algorithm.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidfit()Deprecated.Run the algorithm to induce the parameters of the clusters.Collection<Collection<V>>getClusters()Deprecated.Return a collection of clusters, each cluster is a collection of objects.Map<Sense<V>,Map<Sense<V>,Number>>getContexts()Deprecated.Get the disambiguated contexts built duringfit().Map<V,Map<Sense<V>,Map<V,Number>>>getInventory()Deprecated.Get the sense inventory built duringfit().org.jgrapht.Graph<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge>getSenseGraph()Deprecated.Get the intermediate node sense graph built duringfit().static <V,E>
Function<org.jgrapht.Graph<V,E>,Clustering<V>>provider(Function<org.jgrapht.Graph<V,E>,Clustering<V>> local, Function<org.jgrapht.Graph<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge>,Clustering<Sense<V>>> global)Deprecated.A factory function that sets up the algorithm for the given graph.
-
-
-
Constructor Detail
-
Watset
public Watset(org.jgrapht.Graph<V,E> graph, Function<org.jgrapht.Graph<V,E>,Clustering<V>> local, Function<org.jgrapht.Graph<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge>,Clustering<Sense<V>>> global, ContextSimilarity<V> similarity)
Deprecated.Create an instance of the Watset clustering algorithm.- Parameters:
graph- the graphlocal- the local clustering algorithm supplierglobal- the global clustering algorithm suppliersimilarity- the context similarity measure
-
-
Method Detail
-
provider
public static <V,E> Function<org.jgrapht.Graph<V,E>,Clustering<V>> provider(Function<org.jgrapht.Graph<V,E>,Clustering<V>> local, Function<org.jgrapht.Graph<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge>,Clustering<Sense<V>>> global)
Deprecated.A factory function that sets up the algorithm for the given graph.- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph- Parameters:
local- the local clustering algorithm supplierglobal- the global clustering algorithm supplier- Returns:
- a factory function that sets up the algorithm for the given graph
-
fit
public void fit()
Deprecated.Description copied from interface:ClusteringRun the algorithm to induce the parameters of the clusters.- Specified by:
fitin interfaceClustering<V>
-
getClusters
public Collection<Collection<V>> getClusters()
Deprecated.Description copied from interface:ClusteringReturn a collection of clusters, each cluster is a collection of objects. Usually this method is called after theClustering.fit()method.- Specified by:
getClustersin interfaceClustering<V>- Returns:
- clusters
-
getInventory
public Map<V,Map<Sense<V>,Map<V,Number>>> getInventory()
Deprecated.Get the sense inventory built duringfit().- Returns:
- the sense inventory
-
getContexts
public Map<Sense<V>,Map<Sense<V>,Number>> getContexts()
Deprecated.Get the disambiguated contexts built duringfit().- Returns:
- the disambiguated contexts
-
-