|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.dcoref.Rules
public class Rules
Rules for coref system (mention detection, entity coref, event coref) The name of the method for mention detection starts with detection, for entity coref starts with entity, and for event coref starts with event.
| Field Summary | |
|---|---|
static java.util.regex.Pattern |
WHITESPACE_PATTERN
|
| Constructor Summary | |
|---|---|
Rules()
|
|
| Method Summary | |
|---|---|
static boolean |
contextIncompatible(Mention men,
Mention ant,
Dictionaries dict)
|
static boolean |
entityAlias(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Semantics semantics,
Dictionaries dict)
|
static boolean |
entityAttributesAgree(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
|
static boolean |
entityBothHaveProper(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
|
static boolean |
entityClusterAllCorefDictionary(CorefCluster menCluster,
CorefCluster antCluster,
Dictionaries dict,
int dictColumn,
int freq)
|
static boolean |
entityCorefDictionary(Mention men,
Mention ant,
Dictionaries dict,
int dictVersion,
int freq)
|
static boolean |
entityExactStringMatch(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict,
java.util.Set<Mention> roleSet)
|
static boolean |
entityHaveDifferentLocation(Mention m,
Mention a,
Dictionaries dict)
Check whether two mentions have different locations |
static boolean |
entityHaveExtraProperNoun(Mention m,
Mention a,
java.util.Set<java.lang.String> exceptWords)
Have extra proper noun except strings involved in semantic match |
static boolean |
entityHaveIncompatibleModifier(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
Compatible modifier only |
static boolean |
entityHaveIncompatibleModifier(Mention m,
Mention ant)
Check whether later mention has incompatible modifier |
static boolean |
entityHeadsAgree(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m,
Mention ant,
Dictionaries dict)
|
static boolean |
entityIsAcronym(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
|
static boolean |
entityIsApposition(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2)
|
static boolean |
entityIsPredicateNominatives(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2)
|
static boolean |
entityIsRelativePronoun(Mention m1,
Mention m2)
|
static boolean |
entityIsRoleAppositive(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2,
Dictionaries dict)
|
static boolean |
entityIsSpeaker(Document document,
Mention mention,
Mention ant,
Dictionaries dict)
|
static boolean |
entityIWithinI(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict)
|
static boolean |
entityIWithinI(Mention m1,
Mention m2,
Dictionaries dict)
Check whether two mentions are in i-within-i relation (Chomsky, 1981) |
static boolean |
entityNumberInLaterMention(Mention mention,
Mention ant)
Check whether there is a new number in later mention |
static boolean |
entityPersonDisagree(Document document,
CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict)
|
static boolean |
entityPersonDisagree(Document document,
Mention m,
Mention ant,
Dictionaries dict)
|
static boolean |
entityRelaxedExactStringMatch(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 |
entityRelaxedHeadsAgreeBetweenMentions(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m,
Mention ant)
|
static boolean |
entitySameProperHeadLastWord(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant)
|
static boolean |
entitySameProperHeadLastWord(Mention m,
Mention a)
Check whether two mentions have the same proper head words |
static boolean |
entitySameSpeaker(Document document,
Mention m,
Mention ant)
|
static boolean |
entitySubjectObject(Mention m1,
Mention m2)
|
static boolean |
entityTokenDistance(Mention m1,
Mention m2)
|
static boolean |
entityWordsIncluded(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant)
Word inclusion except stop words |
static boolean |
isAcronym(java.util.List<CoreLabel> first,
java.util.List<CoreLabel> second)
|
static boolean |
mentionMatchesSpeakerAnnotation(Mention mention,
Mention ant)
|
static boolean |
sentenceContextIncompatible(Mention men,
Mention ant,
Dictionaries dict)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.regex.Pattern WHITESPACE_PATTERN
| Constructor Detail |
|---|
public Rules()
| Method Detail |
|---|
public static boolean entityBothHaveProper(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
public static boolean entitySameProperHeadLastWord(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant)
public static boolean entityAlias(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Semantics semantics,
Dictionaries dict)
throws java.lang.Exception
java.lang.Exception
public static boolean entityIWithinI(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict)
public static boolean entityPersonDisagree(Document document,
CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict)
public static boolean entityWordsIncluded(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant)
public static boolean entityHaveIncompatibleModifier(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
public static boolean entityIsRoleAppositive(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2,
Dictionaries dict)
public static boolean entityIsRelativePronoun(Mention m1,
Mention m2)
public static boolean entityIsAcronym(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
public static boolean isAcronym(java.util.List<CoreLabel> first,
java.util.List<CoreLabel> second)
public static boolean entityIsPredicateNominatives(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2)
public static boolean entityIsApposition(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m1,
Mention m2)
public static boolean entityAttributesAgree(CorefCluster mentionCluster,
CorefCluster potentialAntecedent)
public static boolean entityRelaxedHeadsAgreeBetweenMentions(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m,
Mention ant)
public static boolean entityHeadsAgree(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention m,
Mention ant,
Dictionaries dict)
public static boolean entityExactStringMatch(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Dictionaries dict,
java.util.Set<Mention> roleSet)
public static boolean entityRelaxedExactStringMatch(CorefCluster mentionCluster,
CorefCluster potentialAntecedent,
Mention mention,
Mention ant,
Dictionaries dict,
java.util.Set<Mention> roleSet)
public static boolean entityIWithinI(Mention m1,
Mention m2,
Dictionaries dict)
public static boolean entityHaveIncompatibleModifier(Mention m,
Mention ant)
public static boolean entityHaveDifferentLocation(Mention m,
Mention a,
Dictionaries dict)
public static boolean entitySameProperHeadLastWord(Mention m,
Mention a)
public static boolean entityNumberInLaterMention(Mention mention,
Mention ant)
public static boolean entityHaveExtraProperNoun(Mention m,
Mention a,
java.util.Set<java.lang.String> exceptWords)
public static boolean entityIsSpeaker(Document document,
Mention mention,
Mention ant,
Dictionaries dict)
public static boolean mentionMatchesSpeakerAnnotation(Mention mention,
Mention ant)
public static boolean entityPersonDisagree(Document document,
Mention m,
Mention ant,
Dictionaries dict)
public static boolean entitySameSpeaker(Document document,
Mention m,
Mention ant)
public static boolean entitySubjectObject(Mention m1,
Mention m2)
public static boolean entityTokenDistance(Mention m1,
Mention m2)
public static boolean entityClusterAllCorefDictionary(CorefCluster menCluster,
CorefCluster antCluster,
Dictionaries dict,
int dictColumn,
int freq)
public static boolean entityCorefDictionary(Mention men,
Mention ant,
Dictionaries dict,
int dictVersion,
int freq)
public static boolean contextIncompatible(Mention men,
Mention ant,
Dictionaries dict)
public static boolean sentenceContextIncompatible(Mention men,
Mention ant,
Dictionaries dict)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||