edu.stanford.nlp.dcoref
Class CorefCluster

java.lang.Object
  extended by edu.stanford.nlp.dcoref.CorefCluster
All Implemented Interfaces:
java.io.Serializable

public class CorefCluster
extends java.lang.Object
implements java.io.Serializable

One cluster for the SieveCoreferenceSystem.

Author:
Heeyoung Lee
See Also:
Serialized Form

Field Summary
protected  java.util.Set<Dictionaries.Animacy> animacies
           
protected  int clusterID
           
protected  java.util.Set<Mention> corefMentions
           
protected  Mention firstMention
          The first mention in this cluster
protected  java.util.Set<Dictionaries.Gender> genders
           
protected  java.util.Set<java.lang.String> heads
           
protected  java.util.Set<java.lang.String> nerStrings
           
protected  java.util.Set<Dictionaries.Number> numbers
           
protected  Mention representative
          Return the most representative mention in the chain.
 java.util.Set<java.lang.String> words
          All words in this cluster - for word inclusion feature
 
Constructor Summary
CorefCluster(int ID)
           
CorefCluster(int ID, java.util.Set<Mention> mentions)
           
 
Method Summary
 int getClusterID()
           
 java.util.Set<Mention> getCorefMentions()
           
 Mention getFirstMention()
           
 Mention getRepresentativeMention()
           
 boolean isSinglePronounCluster(Dictionaries dict)
           
static void mergeClusters(CorefCluster to, CorefCluster from)
          merge 2 clusters: to = to + from
 void printCorefCluster(java.util.logging.Logger logger)
          Print cluster information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

corefMentions

protected final java.util.Set<Mention> corefMentions

clusterID

protected final int clusterID

numbers

protected final java.util.Set<Dictionaries.Number> numbers

genders

protected final java.util.Set<Dictionaries.Gender> genders

animacies

protected final java.util.Set<Dictionaries.Animacy> animacies

nerStrings

protected final java.util.Set<java.lang.String> nerStrings

heads

protected final java.util.Set<java.lang.String> heads

words

public final java.util.Set<java.lang.String> words
All words in this cluster - for word inclusion feature


firstMention

protected Mention firstMention
The first mention in this cluster


representative

protected 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,
                    java.util.Set<Mention> mentions)
Method Detail

getClusterID

public int getClusterID()

getCorefMentions

public java.util.Set<Mention> getCorefMentions()

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(java.util.logging.Logger logger)
Print cluster information


isSinglePronounCluster

public boolean isSinglePronounCluster(Dictionaries dict)


Stanford NLP Group