|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.coref.AbstractMentionFactory
com.aliasi.coref.EnglishMentionFactory
public class EnglishMentionFactory
A mention factory for English phrases. Defines genders and honorifics in lists, which are accessible to other modules.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
EnglishMentionFactory()
Constructs a new English mention factory. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.aliasi.coref.AbstractMentionFactory |
|---|
create, promote |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MALE_GENDER
public static final String FEMALE_GENDER
public static final String NEUTER_GENDER
public static final Set<String> MALE_HONORIFICS
public static final Set<String> FEMALE_HONORIFICS
public static final Set<String> HONORIFICS
| Constructor Detail |
|---|
public EnglishMentionFactory()
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||