Class SenseInduction<V,​E>

    • Field Detail

      • graph

        protected final org.jgrapht.Graph<V,​E> graph
        The graph.
    • Constructor Detail

      • SenseInduction

        public SenseInduction​(org.jgrapht.Graph<V,​E> graph,
                              ClusteringAlgorithmBuilder<V,​E,​?> local)
        Create an instance of SenseInduction.
        Parameters:
        graph - the graph
        local - the neighborhood clustering algorithm supplier
    • Method Detail

      • clustering

        public org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<V> clustering​(V target)
        Get the induced sense clusters.
        Parameters:
        target - the target node
        Returns:
        a map of senses to their contexts
      • contexts

        public List<Map<V,​Number>> contexts​(V target)
        Get the induced senses and their non-disambiguated contexts.
        Parameters:
        target - the target node
        Returns:
        maps of senses to their contexts