Class SenseInduction<V,​E>

    • Constructor Detail

      • SenseInduction

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

      • clusters

        public Collection<Collection<V>> clusters​(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