|
|||||||||
| 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()
|
|
CorefCluster(int ID)
|
|
CorefCluster(int ID,
java.util.Set<Mention> mentions)
|
|
| Method Summary | |
|---|---|
static boolean |
alias(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Semantics semantics,
Dictionaries dict)
|
static boolean |
attributesAgree(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
|
static boolean |
bothHaveProper(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
|
static boolean |
exactStringMatch(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict,
java.util.Set<Mention> roleSet)
|
int |
getClusterID()
|
java.util.Set<Mention> |
getCorefMentions()
|
Mention |
getFirstMention()
|
Mention |
getRepresentativeMention()
|
static boolean |
haveIncompatibleModifier(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
Compatible modifier only |
static boolean |
headsAgree(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m,
Mention ant,
Dictionaries dict)
|
static boolean |
isAcronym(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
|
static boolean |
isApposition(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2)
|
static boolean |
isPredicateNominatives(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2)
|
static boolean |
isRelativePronoun(Mention m1,
Mention m2)
|
static boolean |
isRoleAppositive(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2,
Dictionaries dict)
|
boolean |
isSinglePronounCluster(Dictionaries dict)
|
static boolean |
iWithini(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict)
|
static void |
mergeClusters(CorefCluster to,
CorefCluster from)
merge 2 clusters: to = to + from |
static boolean |
personDisagree(Document document,
CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict)
|
void |
printCorefCluster(java.util.logging.Logger logger)
Print cluster information |
static boolean |
relaxedExactStringMatch(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant,
Dictionaries dict,
java.util.Set<Mention> roleSet)
Exact string match except phrase after head (only for proper noun): For dealing with a error like "[Mr. |
static boolean |
relaxedHeadsAgreeBetweenMentions(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m,
Mention ant)
|
static boolean |
sameProperHeadLastWord(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant)
|
static boolean |
wordsIncluded(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant)
Word inclusion except stop words |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Set<Mention> corefMentions
protected int clusterID
protected java.util.Set<Dictionaries.Number> numbers
protected java.util.Set<Dictionaries.Gender> genders
protected java.util.Set<Dictionaries.Animacy> animacies
protected java.util.Set<java.lang.String> nerStrings
protected java.util.Set<java.lang.String> heads
public java.util.Set<java.lang.String> words
protected Mention firstMention
protected Mention representative
| Constructor Detail |
|---|
public CorefCluster(int ID)
public CorefCluster()
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 static boolean personDisagree(Document document,
CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict)
public static boolean wordsIncluded(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant)
public static boolean haveIncompatibleModifier(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
public static boolean isRoleAppositive(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2,
Dictionaries dict)
public static boolean isRelativePronoun(Mention m1,
Mention m2)
public static boolean isAcronym(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
public static boolean isPredicateNominatives(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2)
public static boolean isApposition(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2)
public static boolean attributesAgree(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
public static boolean relaxedHeadsAgreeBetweenMentions(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m,
Mention ant)
public static boolean headsAgree(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m,
Mention ant,
Dictionaries dict)
public static boolean exactStringMatch(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict,
java.util.Set<Mention> roleSet)
public static boolean relaxedExactStringMatch(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant,
Dictionaries dict,
java.util.Set<Mention> roleSet)
public void printCorefCluster(java.util.logging.Logger logger)
public boolean isSinglePronounCluster(Dictionaries dict)
public static boolean bothHaveProper(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
public static boolean sameProperHeadLastWord(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant)
public static boolean alias(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Semantics semantics,
Dictionaries dict)
throws java.lang.Exception
java.lang.Exception
public static boolean iWithini(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||