|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.dcoref.Mention
public class Mention
One mention for the SieveCoreferenceSystem
| Constructor Summary | |
|---|---|
Mention()
|
|
Mention(int mentionID,
int startIndex,
int endIndex,
SemanticGraph dependency)
|
|
Mention(int mentionID,
int startIndex,
int endIndex,
SemanticGraph dependency,
java.util.List<CoreLabel> mentionSpan)
|
|
Mention(int mentionID,
int startIndex,
int endIndex,
SemanticGraph dependency,
java.util.List<CoreLabel> mentionSpan,
Tree mentionTree)
|
|
| Method Summary | |
|---|---|
void |
addApposition(Mention m)
Find apposition |
void |
addPredicateNominatives(Mention m)
Find predicate nominatives |
void |
addRelativePronoun(Mention m)
Find relative pronouns |
boolean |
animaciesAgree(Mention m)
|
boolean |
animaciesAgree(Mention m,
boolean strict)
|
boolean |
appearEarlierThan(Mention m)
Find which mention appears first in a document |
boolean |
attributesAgree(Mention potentialAntecedent,
Dictionaries dict)
Detects if the mention and candidate antecedent agree on all attributes respectively. |
java.lang.String |
buildQueryText(java.util.List<java.lang.String> terms)
|
boolean |
entityTypesAgree(Mention m,
Dictionaries dict)
|
boolean |
entityTypesAgree(Mention m,
Dictionaries dict,
boolean strict)
|
boolean |
gendersAgree(Mention m)
|
boolean |
gendersAgree(Mention m,
boolean strict)
|
java.lang.Class<Mention> |
getType()
Returns the type associated with this annotation. |
static boolean |
haveDifferentLocation(Mention m,
Mention a,
Dictionaries dict)
Check whether two mentions have different locations |
static boolean |
haveExtraProperNoun(Mention m,
Mention a,
java.util.Set<java.lang.String> exceptWords)
Have extra proper noun except strings involved in semantic match |
boolean |
haveIncompatibleModifier(Mention ant)
Check whether later mention has incompatible modifier |
protected boolean |
headsAgree(Mention m)
|
boolean |
includedIn(Mention m)
Verifies if this mention's tree is dominated by the tree of the given mention |
boolean |
insideIn(Mention m)
|
boolean |
isAcronym(Mention m)
|
boolean |
isApposition(Mention m)
Check apposition |
boolean |
isDemonym(Mention m,
Dictionaries dict)
|
boolean |
isPredicateNominatives(Mention m)
Check predicate nominatives |
boolean |
isPronominal()
|
boolean |
isRelativePronoun(Mention m)
Check relative pronouns |
boolean |
isRoleAppositive(Mention m,
Dictionaries dict)
|
static boolean |
isSpeaker(Document document,
Mention mention,
Mention ant,
Dictionaries dict)
|
protected boolean |
isTheCommonNoun()
|
static boolean |
iWithini(Mention m1,
Mention m2,
Dictionaries dict)
Check whether two mentions are in i-within-i relation (Chomsky, 1981) |
java.lang.String |
longestNNPEndsWithHead()
|
java.lang.String |
lowestNPIncludesHead()
|
protected boolean |
moreRepresentativeThan(Mention m)
|
static boolean |
numberInLaterMention(Mention mention,
Mention ant)
Check whether there is a new number in later mention |
boolean |
numbersAgree(Mention m)
|
static boolean |
personDisagree(Document document,
Mention m,
Mention ant,
Dictionaries dict)
|
java.util.List<java.lang.String> |
preprocessSearchTerm()
|
void |
process(Dictionaries dict,
Semantics semantics,
MentionExtractor mentionExtractor)
Set attributes of a mention: head string, mention type, NER label, Number, Gender, Animacy |
static java.lang.String |
removeParenthesis(java.lang.String text)
|
java.lang.String |
removePhraseAfterHead()
Remove any clause after headword |
static boolean |
sameProperHeadLastWord(Mention m,
Mention a)
Check whether two mentions have the same proper head words |
boolean |
sameSentence(Mention m)
|
static boolean |
sameSpeaker(Document document,
Mention m,
Mention ant)
|
java.lang.String |
spanToString()
|
java.lang.String |
stringWithoutArticle(java.lang.String str)
|
static boolean |
subjectObject(Mention m1,
Mention m2)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Dictionaries.MentionType mentionType
public Dictionaries.Number number
public Dictionaries.Gender gender
public Dictionaries.Animacy animacy
public Dictionaries.Person person
public java.lang.String headString
public java.lang.String nerString
public int startIndex
public int endIndex
public int headIndex
public int mentionID
public int originalRef
public int goldCorefClusterID
public int corefClusterID
public int sentNum
public int utter
public int paragraph
public boolean isSubject
public boolean isDirectObject
public boolean isIndirectObject
public boolean isPrepositionObject
public IndexedWord dependingVerb
public boolean twinless
public boolean generic
public java.util.List<CoreLabel> sentenceWords
public java.util.List<CoreLabel> originalSpan
public Tree mentionSubTree
public Tree contextParseTree
public CoreLabel headWord
public SemanticGraph dependency
public java.util.Set<java.lang.String> dependents
public java.util.List<java.lang.String> preprocessedTerms
public java.lang.Object synsets
public java.util.Set<Mention> appositions
public java.util.Set<Mention> predicateNominatives
public java.util.Set<Mention> relativePronouns
| Constructor Detail |
|---|
public Mention()
public Mention(int mentionID,
int startIndex,
int endIndex,
SemanticGraph dependency)
public Mention(int mentionID,
int startIndex,
int endIndex,
SemanticGraph dependency,
java.util.List<CoreLabel> mentionSpan)
public Mention(int mentionID,
int startIndex,
int endIndex,
SemanticGraph dependency,
java.util.List<CoreLabel> mentionSpan,
Tree mentionTree)
| Method Detail |
|---|
public java.lang.Class<Mention> getType()
CoreAnnotation
getType in interface CoreAnnotation<Mention>public boolean isPronominal()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String spanToString()
public void process(Dictionaries dict,
Semantics semantics,
MentionExtractor mentionExtractor)
throws java.lang.Exception
java.lang.Exceptionpublic boolean sameSentence(Mention m)
protected boolean headsAgree(Mention m)
public boolean numbersAgree(Mention m)
public boolean gendersAgree(Mention m)
public boolean gendersAgree(Mention m,
boolean strict)
public boolean animaciesAgree(Mention m)
public boolean animaciesAgree(Mention m,
boolean strict)
public boolean entityTypesAgree(Mention m,
Dictionaries dict)
public boolean entityTypesAgree(Mention m,
Dictionaries dict,
boolean strict)
public boolean includedIn(Mention m)
public boolean attributesAgree(Mention potentialAntecedent,
Dictionaries dict)
potentialAntecedent -
public void addApposition(Mention m)
public boolean isApposition(Mention m)
public void addPredicateNominatives(Mention m)
public boolean isPredicateNominatives(Mention m)
public void addRelativePronoun(Mention m)
public boolean isRelativePronoun(Mention m)
public boolean isAcronym(Mention m)
public boolean isRoleAppositive(Mention m,
Dictionaries dict)
public boolean isDemonym(Mention m,
Dictionaries dict)
public static boolean iWithini(Mention m1,
Mention m2,
Dictionaries dict)
public boolean haveIncompatibleModifier(Mention ant)
public boolean appearEarlierThan(Mention m)
public static boolean haveDifferentLocation(Mention m,
Mention a,
Dictionaries dict)
public static boolean sameProperHeadLastWord(Mention m,
Mention a)
public java.lang.String removePhraseAfterHead()
public static boolean numberInLaterMention(Mention mention,
Mention ant)
public static boolean haveExtraProperNoun(Mention m,
Mention a,
java.util.Set<java.lang.String> exceptWords)
public java.lang.String longestNNPEndsWithHead()
public java.lang.String lowestNPIncludesHead()
public java.lang.String stringWithoutArticle(java.lang.String str)
public java.util.List<java.lang.String> preprocessSearchTerm()
public java.lang.String buildQueryText(java.util.List<java.lang.String> terms)
public static java.lang.String removeParenthesis(java.lang.String text)
protected boolean isTheCommonNoun()
public static boolean isSpeaker(Document document,
Mention mention,
Mention ant,
Dictionaries dict)
public static boolean personDisagree(Document document,
Mention m,
Mention ant,
Dictionaries dict)
public static boolean sameSpeaker(Document document,
Mention m,
Mention ant)
public static boolean subjectObject(Mention m1,
Mention m2)
public boolean insideIn(Mention m)
protected boolean moreRepresentativeThan(Mention m)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||