|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.coref.CachedMention
public class CachedMention
A CachedMention stores all of the retun values
specified by the Mention interface.
Cached mentions are individuated by reference.
| Constructor Summary | |
|---|---|
CachedMention(String phrase,
String entityType,
Set<String> honorifics,
String[] normalTokens,
String gender,
boolean isPronominal)
Construct a cached mention from the specified return values. |
|
| Method Summary | |
|---|---|
String |
entityType()
Returns the type of entity recognized for this mention. |
String |
gender()
Returns a string representing the gender of this mention. |
Set<String> |
honorifics()
Returns the set of honorifics which occur in this mention. |
boolean |
isPronominal()
Returns true if this mention is a pronoun. |
String |
normalPhrase()
Returns a normalized version of the phrase, defined to be the concatenation of the normal tokens by a single whitespace. |
String[] |
normalTokens()
Returns an array of normalized tokens for this phrase. |
String |
phrase()
Returns the original phrase underlying this mention. |
String |
toString()
Returns a string-based representation of this mention. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CachedMention(String phrase,
String entityType,
Set<String> honorifics,
String[] normalTokens,
String gender,
boolean isPronominal)
phrase - Underlying phrase for the mention.entityType - The type of the mention.honorifics - The honorifics for the mention.normalTokens - The sequence of normal tokens for the mention.gender - The gender of the mention constructed.isPronominal - true if this mention is a
pronoun.| Method Detail |
|---|
public String phrase()
phrase in interface Mentionpublic String entityType()
entityType in interface Mentionpublic Set<String> honorifics()
honorifics in interface Mentionpublic String normalPhrase()
normalPhrase in interface Mentionpublic String[] normalTokens()
normalTokens in interface Mentionpublic boolean isPronominal()
true if this mention is a pronoun.
isPronominal in interface Mentiontrue if this mention is a pronoun.public String gender()
gender in interface Mentionpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||