Class CorefCluster

    • Field Detail

      • corefMentions

        public final Set<Mention> corefMentions
      • clusterID

        public final int clusterID
      • nerStrings

        public final Set<String> nerStrings
      • words

        public final Set<String> words
        All words in this cluster - for word inclusion feature
      • firstMention

        protected Mention firstMention
        The first mention in this cluster
      • representative

        public Mention representative
        Return the most representative mention in the chain. A proper noun mention or a mention with more pre-modifiers is preferred.
    • Constructor Detail

      • CorefCluster

        public CorefCluster​(int ID)
      • CorefCluster

        public CorefCluster​(int ID,
                            Set<Mention> mentions)
    • Method Detail

      • getClusterID

        public int getClusterID()
      • getCorefMentions

        public Set<Mention> getCorefMentions()
      • size

        public int size()
      • getFirstMention

        public Mention getFirstMention()
      • getRepresentativeMention

        public Mention getRepresentativeMention()
      • mergeClusters

        public static void mergeClusters​(CorefCluster to,
                                         CorefCluster from)
        merge 2 clusters: to = to + from
      • printCorefCluster

        public void printCorefCluster()
        Print cluster information
      • isSinglePronounCluster

        public boolean isSinglePronounCluster​(Dictionaries dict)