| Constructor and Description |
|---|
CachedMention(String phrase,
String entityType,
Set<String> honorifics,
String[] normalTokens,
String gender,
boolean isPronominal)
Construct a cached mention from the specified return values.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.public String phrase()
public 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()
Copyright © 2016 Alias-i, Inc.. All rights reserved.