|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.illinois.cs.cogcomp.lbj.coref.features.NumberFeatures
public class NumberFeatures
A collection of features related to the number (singular or plural) of a phrase or mention.
Constructor Summary | |
---|---|
NumberFeatures()
|
Method Summary | |
---|---|
static java.lang.String |
doNumbersMatchStrong(CExample ex,
boolean useDicts)
Determines if the number (singular or plural) of two mentions match. |
static char |
getNumber(java.lang.String phrase)
Determines the number of a phrase in a simpler way, for use in baseline systems. |
static char |
getNumberStrong(Mention m,
boolean useDicts)
Determines the number (singular or plural) of a mention. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberFeatures()
Method Detail |
---|
public static java.lang.String doNumbersMatchStrong(CExample ex, boolean useDicts)
getNumberStrong(edu.illinois.cs.cogcomp.lbj.coref.ir.Mention, boolean)
match or extent texts match.
ex
- The example containing the mentions in question.useDicts
- Determines whether lists of singular and plural words
should be consulted.
public static char getNumberStrong(Mention m, boolean useDicts)
NAM
,
assume singular if "and" does not occur in the head; otherwise unknown.
If NOM
or PRE
, the head is looked up
in lists of singular and plural words; if in only one list, return
the appropriate number; otherwise unknown.
If PRO
, use a table of pronouns and their number.
Caches the predicted number in Mention.m_predNumber
.
m
- The mention to be examined.useDicts
- Determines whether
extensive lists of singular and plural words should be consulted.
public static char getNumber(java.lang.String phrase)
phrase
- The phrase in question.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |