public class CorefCluster extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
Set<Dictionaries.Animacy> |
animacies |
int |
clusterID |
Set<Mention> |
corefMentions |
protected Mention |
firstMention
The first mention in this cluster
|
Set<Dictionaries.Gender> |
genders |
Set<String> |
heads |
Set<String> |
nerStrings |
Set<Dictionaries.Number> |
numbers |
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()
Print cluster information
|
int |
size() |
String |
toString() |
public final int clusterID
public final Set<Dictionaries.Number> numbers
public final Set<Dictionaries.Gender> genders
public final Set<Dictionaries.Animacy> animacies
protected Mention firstMention
public Mention representative
public int getClusterID()
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)