Class Watset<V,​E>

    • 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 graph
        local - the local clustering algorithm supplier
        global - the global clustering algorithm supplier
        similarity - 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 graph
        E - the type of edges in the graph
        Parameters:
        local - the local clustering algorithm supplier
        global - 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: Clustering
        Run the algorithm to induce the parameters of the clusters.
        Specified by:
        fit in interface Clustering<V>
      • getInventory

        public Map<V,​Map<Sense<V>,​Map<V,​Number>>> getInventory()
        Deprecated.
        Get the sense inventory built during fit().
        Returns:
        the sense inventory
      • getContexts

        public Map<Sense<V>,​Map<Sense<V>,​Number>> getContexts()
        Deprecated.
        Get the disambiguated contexts built during fit().
        Returns:
        the disambiguated contexts
      • getSenseGraph

        public org.jgrapht.Graph<Sense<V>,​org.jgrapht.graph.DefaultWeightedEdge> getSenseGraph()
        Deprecated.
        Get the intermediate node sense graph built during fit().
        Returns:
        the sense graph