|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.illinois.cs.cogcomp.lbj.coref.features.EntityTypeFeatures
public class EntityTypeFeatures
A collection of features related to the entity type of a mention or the relationship between the entity types of mentions. An entity type is one of "PER" (person), "ORG" (organization), "GPE" (Geo-Political Entity), "LOC" (location), "VEH" (vehicle), "FAC" (facility), or "WEA" (weapon).
| Field Summary | |
|---|---|
private static java.util.Map<java.lang.String,java.lang.String> |
m_wneTypeBetterCache
|
| Constructor Summary | |
|---|---|
protected |
EntityTypeFeatures()
No need to construct collection of static features. |
| Method Summary | |
|---|---|
static java.lang.String |
doETypesMatch(CExample ex)
Determines whether the entity types of two mentions match, as determined by getEType(edu.illinois.cs.cogcomp.lbj.coref.ir.Mention). |
static java.lang.String |
doETypesMatch(CExample ex,
boolean useCache)
Determines whether the entity types of two mentions match, as determined by getEType(edu.illinois.cs.cogcomp.lbj.coref.ir.Mention). |
static java.lang.String |
getEType(Mention m)
Determines the entity type of the mention m. |
static java.lang.String |
getEType(Mention m,
boolean useCache)
Determines the entity type of the mention m. |
static java.lang.String |
getNameEType(Mention m)
Determines the entity type of a mention, assuming that the mention is a proper name (ACE mention type "NAM"). |
static java.lang.String |
getNominalEType(Mention m)
Determines the Entity Type of a mention, assuming that the mention is a common name phrase (ACE mention type "NOM"). |
static java.lang.String |
getPronounEType(Mention m)
Determine the entity type of the mention, assuming it is a pronoun. |
static java.lang.String |
predETypeOrProWord(CExample ex)
Gets the predicted entity type, or the pronoun word if a pronoun. |
static java.lang.String |
predETypeOrProWord(CExample ex,
boolean useCache)
Gets the predicted entity type, or the pronoun word if a pronoun. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static java.util.Map<java.lang.String,java.lang.String> m_wneTypeBetterCache
| Constructor Detail |
|---|
protected EntityTypeFeatures()
| Method Detail |
|---|
public static java.lang.String doETypesMatch(CExample ex)
getEType(edu.illinois.cs.cogcomp.lbj.coref.ir.Mention).
No caching is used.
ex - The example containing the mentions in question.
public static java.lang.String doETypesMatch(CExample ex,
boolean useCache)
getEType(edu.illinois.cs.cogcomp.lbj.coref.ir.Mention).
ex - The example containing the mentions in question.useCache - Whether caching should be done.
public static java.lang.String getEType(Mention m)
m.
If the m_predwnEType caches the predicted entity type,
return that value; otherwise, depending on the mention type,
delegate to the appropriate method. In the case of "PRE", determine
whether a proper noun based on case (if the document is case sensitive)
or else try considering it as both a "NAM" and "NOM" and if only
one returns non-"unknown", return that; finally, if both return a value,
choose the value determined assuming it is a "NAM".
Caching will not be done.
m - The mention whose entity type should be determined.
public static java.lang.String getEType(Mention m,
boolean useCache)
m.
If the Mention.m_predwnEType caches the predicted entity type,
return that value; otherwise, depending on the mention type,
delegate to the appropriate method. In the case of "PRE", determine
whether a proper noun based on case (if the document is case sensitive)
or else try considering it as both a "NAM" and "NOM" and if only
one returns non-"unknown", return that; finally, if both return a value,
choose the value determined assuming it is a "NAM".
m - The mention whose entity type should be determined.useCache - Whether caching should be done.
public static java.lang.String getNameEType(Mention m)
m - A mention assumed to be a "NAM".
public static java.lang.String getNominalEType(Mention m)
m - A mention assumed to be a "NOM".
public static java.lang.String getPronounEType(Mention m)
m - A mention assumed to be a "PRO".
public static java.lang.String predETypeOrProWord(CExample ex)
getEType(edu.illinois.cs.cogcomp.lbj.coref.ir.Mention).
Uses the default mention types, which may be gold.
Does not cache results.
ex - The example.
public static java.lang.String predETypeOrProWord(CExample ex,
boolean useCache)
getEType(edu.illinois.cs.cogcomp.lbj.coref.ir.Mention).
Uses the default mention types, which may be gold.
ex - The example.useCache - Whether caching should be done.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||