public class CorefCluster
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.util.Set<Dictionaries.Animacy> |
animacies |
int |
clusterID |
java.util.Set<Mention> |
corefMentions |
protected Mention |
firstMention
The first mention in this cluster
|
java.util.Set<Dictionaries.Gender> |
genders |
java.util.Set<java.lang.String> |
heads |
java.util.Set<java.lang.String> |
nerStrings |
java.util.Set<Dictionaries.Number> |
numbers |
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 and Description |
---|
CorefCluster(int ID) |
CorefCluster(int ID,
java.util.Set<Mention> mentions) |
Modifier and Type | Method and Description |
---|---|
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()
Print cluster information
|
int |
size() |
java.lang.String |
toString() |
public final java.util.Set<Mention> corefMentions
public final int clusterID
public final java.util.Set<Dictionaries.Number> numbers
public final java.util.Set<Dictionaries.Gender> genders
public final java.util.Set<Dictionaries.Animacy> animacies
public final java.util.Set<java.lang.String> nerStrings
public final java.util.Set<java.lang.String> heads
public final java.util.Set<java.lang.String> words
protected Mention firstMention
public Mention representative
public CorefCluster(int ID)
public CorefCluster(int ID, java.util.Set<Mention> mentions)
public int getClusterID()
public java.util.Set<Mention> getCorefMentions()
public int size()
public Mention getFirstMention()
public Mention getRepresentativeMention()
public static void mergeClusters(CorefCluster to, CorefCluster from)
public void printCorefCluster()
public boolean isSinglePronounCluster(Dictionaries dict)
public java.lang.String toString()
toString
in class java.lang.Object