|
||||||||||
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.WordNetFeatures
public class WordNetFeatures
Collection of features that determine the relationship of two mentions using WordNet. Determines whether mentions are synonyms, antonyms, hypernyms, or whether they share a hypernym. Relies on WordNetTools, which wraps JWordNet, which ultimately accesses a local-file based WordNet library.
Constructor Summary | |
---|---|
WordNetFeatures()
|
Method Summary | |
---|---|
static boolean |
areAntonyms(CExample ex,
boolean useHead)
Determines whether one mention is the antonym of another mention. |
static boolean |
areHypernyms(CExample ex,
boolean useHead)
Determines whether one mention is the hypernym of another mention. |
static boolean |
areSynonyms(CExample ex,
boolean useHead)
Determines whether one mention is the synonym of another mention. |
static boolean |
doShareHypernyms(CExample ex,
boolean useHead)
Determines whether two mentions have the same hypernym. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WordNetFeatures()
Method Detail |
---|
public static boolean areSynonyms(CExample ex, boolean useHead)
ex
- The example containing the mentions being compared.useHead
- Whether the heads or extents of the mentions
should be compared.
public static boolean areAntonyms(CExample ex, boolean useHead)
ex
- The example containing the mentions being compared.useHead
- Whether the heads or extents of the mentions
should be compared.
public static boolean areHypernyms(CExample ex, boolean useHead)
ex
- The example containing the mentions being compared.useHead
- Whether the heads or extents of the mentions
should be compared.
public static boolean doShareHypernyms(CExample ex, boolean useHead)
ex
- The example containing the mentions being compared.useHead
- Whether the heads or extents of the mentions
should be compared.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |