public class CorefCluster extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Set<Dictionaries.Animacy> |
animacies |
protected int |
clusterID |
protected Set<Mention> |
corefMentions |
protected Mention |
firstMention
The first mention in this cluster
|
protected Set<Dictionaries.Gender> |
genders |
protected Set<String> |
heads |
protected Set<String> |
nerStrings |
protected Set<Dictionaries.Number> |
numbers |
protected Mention |
representative
Return the most representative mention in the chain.
|
Set<String> |
words
All words in this cluster - for word inclusion feature
|
Constructor and Description |
---|
CorefCluster(int ID) |
CorefCluster(int ID,
Set<Mention> mentions) |
Modifier and Type | Method and Description |
---|---|
int |
getClusterID() |
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(Logger logger)
Print cluster information
|
protected final int clusterID
protected final Set<Dictionaries.Number> numbers
protected final Set<Dictionaries.Gender> genders
protected final Set<Dictionaries.Animacy> animacies
protected Mention firstMention
protected Mention representative
public int getClusterID()
public Mention getFirstMention()
public Mention getRepresentativeMention()
public static void mergeClusters(CorefCluster to, CorefCluster from)
public void printCorefCluster(Logger logger)
public boolean isSinglePronounCluster(Dictionaries dict)