|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MentionChain
A MentionChain represents a set of mentions that have
been resolved as coreferent in that they refer to the same
underlying entity. Mention chains are created with a MentionFactory by promoting mentions to mention chains.
| Method Summary | |
|---|---|
void |
add(Mention mention,
int sentenceOffset)
Adds the specified mention appearing at the specified sentence offset to this mention chain. |
String |
entityType()
Returns the entity type associated with this mention chain. |
String |
gender()
Returns the gender for this mention chain. |
Set<String> |
honorifics()
Honorific phrases attached to instances of this mention chain. |
int |
identifier()
The unique identifier for this mention chain (within a document). |
boolean |
killed(Mention mention)
Returns true if there is a killing function that
defeats the match of the mention against the mention chain. |
int |
matchScore(Mention mention)
Returns the best match score of the mention versus the mention chain according to the matching functions determined by the antecedent. |
int |
maxSentenceOffset()
Offset of the last sentence in which a mention belonging to this mention chain appears. |
Set<Mention> |
mentions()
Returns the set of mentions underlying this mention chain. |
| Method Detail |
|---|
Set<Mention> mentions()
int maxSentenceOffset()
String entityType()
void add(Mention mention,
int sentenceOffset)
mention - Mention to add to this chain.sentenceOffset - Offset of mention added.int identifier()
boolean killed(Mention mention)
true if there is a killing function that
defeats the match of the mention against the mention chain. A
true return means that the mention will not
be allowed to match against the antecedent no matter what other
matching functions return.
mention - Mention to test against antecedent.
true if there is a killing function that
defeats the match of the mention against the mention chain.int matchScore(Mention mention)
Matcher.NO_MATCH_SCORE
indicates that all matching functions failed. Otherwise, the
score will fall in the range 0 to Matcher.MAX_SCORE, with a lower score being better.
mention - Mention to score against antecedent.
String gender()
Set<String> honorifics()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||