public class EnglishMentionFactory extends AbstractMentionFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
FEMALE_GENDER
The gender for females.
|
static Set<String> |
FEMALE_HONORIFICS
The set of female honorifics.
|
static Set<String> |
HONORIFICS
The complete set of male, female, and generic honorifics.
|
static String |
MALE_GENDER
The gender for males.
|
static Set<String> |
MALE_HONORIFICS
The set of male honorifics.
|
static String |
NEUTER_GENDER
The gender for neuters.
|
| Constructor and Description |
|---|
EnglishMentionFactory()
Constructs a new English mention factory.
|
| Modifier and Type | Method and Description |
|---|---|
String |
gender(String entityType)
Returns a string rerpesenting the gender entities
with the specified entity type.
|
boolean |
isHonorific(String normalizedToken)
Returns
true if the specified token is an
honorific. |
boolean |
isPronominal(String entityType)
Returns
true if the specified entity type
is a pronominal type. |
String |
normalizeToken(String token)
Returns a normalized version of the specified token.
|
create, promotepublic static final String MALE_GENDER
public static final String FEMALE_GENDER
public static final String NEUTER_GENDER
public EnglishMentionFactory()
public boolean isHonorific(String normalizedToken)
AbstractMentionFactorytrue if the specified token is an
honorific.isHonorific in class AbstractMentionFactorynormalizedToken - Token to test.true if the specified token is an
honorific.public boolean isPronominal(String entityType)
true if the specified entity type
is a pronominal type.isPronominal in class AbstractMentionFactoryentityType - Type of entity to test.true if the specified entity type is
pronominal.public String normalizeToken(String token)
null
if the token is entirely punctuation.normalizeToken in class AbstractMentionFactorytoken - Token to normalize.public String gender(String entityType)
gender in class AbstractMentionFactoryentityType - Entity type from which to extract gender.Copyright © 2016 Alias-i, Inc.. All rights reserved.