public class CorefCluster
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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 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(java.util.logging.Logger logger)
Print cluster information
|
protected final java.util.Set<Mention> corefMentions
protected final int clusterID
protected final java.util.Set<Dictionaries.Number> numbers
protected final java.util.Set<Dictionaries.Gender> genders
protected final java.util.Set<Dictionaries.Animacy> animacies
protected final java.util.Set<java.lang.String> nerStrings
protected final java.util.Set<java.lang.String> heads
public final java.util.Set<java.lang.String> words
protected Mention firstMention
protected 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 Mention getFirstMention()
public Mention getRepresentativeMention()
public static void mergeClusters(CorefCluster to, CorefCluster from)
public void printCorefCluster(java.util.logging.Logger logger)
public boolean isSinglePronounCluster(Dictionaries dict)