Package edu.stanford.nlp.coref.data
Class CorefCluster
- java.lang.Object
-
- edu.stanford.nlp.coref.data.CorefCluster
-
- All Implemented Interfaces:
Serializable
public class CorefCluster extends Object implements Serializable
One cluster for the SieveCoreferenceSystem.- Author:
- Heeyoung Lee
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Set<Dictionaries.Animacy>animaciesintclusterIDSet<Mention>corefMentionsprotected MentionfirstMentionThe first mention in this clusterSet<Dictionaries.Gender>gendersSet<String>headsSet<String>nerStringsSet<Dictionaries.Number>numbersMentionrepresentativeReturn the most representative mention in the chain.Set<String>wordsAll words in this cluster - for word inclusion feature
-
Constructor Summary
Constructors Constructor Description CorefCluster(int ID)CorefCluster(int ID, Set<Mention> mentions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetClusterID()Set<Mention>getCorefMentions()MentiongetFirstMention()MentiongetRepresentativeMention()booleanisSinglePronounCluster(Dictionaries dict)static voidmergeClusters(CorefCluster to, CorefCluster from)merge 2 clusters: to = to + fromvoidprintCorefCluster()Print cluster informationintsize()StringtoString()
-
-
-
Field Detail
-
clusterID
public final int clusterID
-
numbers
public final Set<Dictionaries.Number> numbers
-
genders
public final Set<Dictionaries.Gender> genders
-
animacies
public final Set<Dictionaries.Animacy> animacies
-
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.
-
-
Method Detail
-
getClusterID
public int getClusterID()
-
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)
-
-