|
||||||||||
| 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.TokenFeatures
public class TokenFeatures
Collection of feature generating functions that return tokens (word strings) in or around the mentions of a CExample.
| Constructor Summary | |
|---|---|
protected |
TokenFeatures()
Should not need to construct this static feature collection. |
| Method Summary | |
|---|---|
static java.lang.String |
getLastHeadWordPair(CExample ex)
Gets the last word of each mention's head, where each word by conjoining the ordered pair of words with "_AND_". |
static java.lang.String[] |
getSharedWords(CExample ex,
boolean useHead)
Gets the set of all words that are contained in both mentions. |
static java.lang.String |
lastWordPair(CExample ex,
boolean useHead)
Gets the last word of each mention, conjoined by "_AND_". |
static java.lang.String |
mTypeProWord(CExample ex)
Gets the mention types of both mentions, conjoined by "&&", except that if the second mention is a pronoun, the last word of its head is substituted for its mention type. |
static java.lang.String[] |
preWordPairs(CExample ex)
Get the pairs of words preceding the heads, by conjoining the ordered pair of words with "_AND_". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TokenFeatures()
| Method Detail |
|---|
public static java.lang.String[] preWordPairs(CExample ex)
ex - The example whose mentions will be processed.
public static java.lang.String[] getSharedWords(CExample ex,
boolean useHead)
ex - The example whose mentions are processed.useHead - Should the heads or the extents of the mentions be used?
public static java.lang.String lastWordPair(CExample ex,
boolean useHead)
ex - The example whose words are retrieved.useHead - Whether the last word of the head or the extent
should be retrieved.
public static java.lang.String mTypeProWord(CExample ex)
ex - The example whose types are retrieved.
public static java.lang.String getLastHeadWordPair(CExample ex)
ex - The example whose mentions will be processed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||