|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJet.Refres.Resolve
contains static procedures for reference resolution within a document.
Field Summary | |
static boolean |
trace
|
Constructor Summary | |
Resolve()
|
Method Summary | |
static java.lang.String |
concat(java.lang.String[] s)
append strings in 's', separated by blanks |
static boolean |
equalArray(java.lang.Object[] first,
java.lang.Object[] second)
|
static java.util.Vector |
gatherMentions(Document doc,
Span span)
collects and returns the set of all mentions -- constituents which are subject to reference resolution. |
static java.util.HashMap |
gatherSyntacticCoref(Document doc,
java.util.Vector mentions)
gatherSyntacticCoref looks for particular syntactic patterns in the text which indicate coreference, and returns a Map with one entry for each such syntactic coreference, linking the anaphor to the antecedent. |
static Annotation |
getHeadC(Annotation ann)
returns the head constituent associated with constituent 'ann'. |
static java.lang.String[] |
getHeadTokens(Document doc,
Annotation constit)
|
static java.lang.String[] |
getNameTokens(Document doc,
Annotation constit)
returns the name associated with a noun phrase, as an array of token strings, or null if the np does not have a name. |
static Annotation |
getNgHead(Annotation ng)
|
static boolean |
in(java.lang.Object o,
java.lang.Object[] array)
|
static boolean |
intersect(java.lang.Object[] setA,
java.lang.Object[] setB)
|
static int |
isAbbreviation(java.lang.String[] name,
java.lang.String abbrev)
returns true if 'abbrev' is an acronym-style abbreviation for 'name' -- i.e., an acronym with periods, such as U.S.A. |
static int |
isAcronym(java.lang.String[] name,
java.lang.String acronym)
returns true if 'acronym' is a possible acronym for 'name', such as 'USA' for 'United States of America'. |
static boolean |
isName(Annotation constit)
returns true if 'consit' is a name. |
static int |
matchFullName(java.lang.String[] mentionName,
java.lang.String mentionHead,
java.lang.String[] entityName,
java.lang.String entityHead)
returns true if 'mentionName' is a possible reference to 'entityName'. |
static boolean |
matchPronoun(Document doc,
Annotation anaphor,
java.lang.String mentionHead,
Annotation ent)
return true if pronoun 'mentionHead' is a possible anaphor for entity 'ent' (this also includes possessive pronouns of category 'det', and headless noun phrases of category 'np'). |
static boolean |
nameNomCoref(Document doc,
java.lang.String det,
java.lang.String mentionHead,
Annotation mention,
Annotation entity)
return true if a common noun phrase headed by 'mentionHead' is a possible anaphoric reference to the (named) entity 'entity'. |
static boolean |
nomInName(Document doc,
Annotation mention,
Annotation entity)
|
static java.lang.String[] |
normalizeGazName(java.lang.String[] name,
boolean notNP,
boolean trace)
returns a standardized country name, using the gazetteer. |
static java.lang.String |
normalizeName(java.lang.String name)
replaces whitespace between tokens with a single blank. |
static void |
references(Document doc,
Span span)
Resolve.references resolves the mentions (noun groups) in
span of Document doc . |
static void |
references(Document doc,
Span span,
java.util.Vector mentions)
|
static int |
sentenceNumber(int posn)
returns the number of the sentence containing character 'posn' |
static void |
updateEvents(Document doc,
Span span)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean trace
Constructor Detail |
public Resolve()
Method Detail |
public static void references(Document doc, Span span)
Resolve.references
resolves the mentions (noun groups) in
span
of Document doc
. It generates
entity annotations, corresponding to one or more mentions in the
document which are coreferential. In addition, for every event
annotation in span
, it generates an r-event
annotation in which each feature pointing to a mention is replaced by
the entity to which that mention has been resolved.
public static void references(Document doc, Span span, java.util.Vector mentions)
public static java.util.Vector gatherMentions(Document doc, Span span)
public static java.util.HashMap gatherSyntacticCoref(Document doc, java.util.Vector mentions)
public static void updateEvents(Document doc, Span span)
public static java.lang.String[] normalizeGazName(java.lang.String[] name, boolean notNP, boolean trace)
public static Annotation getNgHead(Annotation ng)
public static boolean nameNomCoref(Document doc, java.lang.String det, java.lang.String mentionHead, Annotation mention, Annotation entity)
public static boolean nomInName(Document doc, Annotation mention, Annotation entity)
public static int matchFullName(java.lang.String[] mentionName, java.lang.String mentionHead, java.lang.String[] entityName, java.lang.String entityHead)
public static int isAcronym(java.lang.String[] name, java.lang.String acronym)
public static int isAbbreviation(java.lang.String[] name, java.lang.String abbrev)
public static boolean matchPronoun(Document doc, Annotation anaphor, java.lang.String mentionHead, Annotation ent)
public static java.lang.String normalizeName(java.lang.String name)
public static java.lang.String concat(java.lang.String[] s)
public static boolean isName(Annotation constit)
public static Annotation getHeadC(Annotation ann)
public static java.lang.String[] getNameTokens(Document doc, Annotation constit)
public static java.lang.String[] getHeadTokens(Document doc, Annotation constit)
public static boolean in(java.lang.Object o, java.lang.Object[] array)
public static boolean intersect(java.lang.Object[] setA, java.lang.Object[] setB)
public static boolean equalArray(java.lang.Object[] first, java.lang.Object[] second)
public static int sentenceNumber(int posn)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |