|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.dcoref.CorefCluster
public class CorefCluster
One cluster for the SieveCoreferenceSystem.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
CorefCluster(int ID)
|
|
CorefCluster(int ID,
java.util.Set<Mention> mentions)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public CorefCluster(int ID)
public CorefCluster(int ID,
java.util.Set<Mention> mentions)
| Method Detail |
|---|
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||