edu.illinois.cs.cogcomp.lbj.coref.features
Class WordNetFeatures

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.features.WordNetFeatures

public class WordNetFeatures
extends java.lang.Object

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

WordNetFeatures

public WordNetFeatures()
Method Detail

areSynonyms

public static boolean areSynonyms(CExample ex,
                                  boolean useHead)
Determines whether one mention is the synonym of another mention. This method is case sensitive to the extent that the WordNet library is.

Parameters:
ex - The example containing the mentions being compared.
useHead - Whether the heads or extents of the mentions should be compared.
Returns:
Whether one mention is the synonym of the other mention.

areAntonyms

public static boolean areAntonyms(CExample ex,
                                  boolean useHead)
Determines whether one mention is the antonym of another mention.

Parameters:
ex - The example containing the mentions being compared.
useHead - Whether the heads or extents of the mentions should be compared.
Returns:
Whether one mention is the antonym of the other mention.

areHypernyms

public static boolean areHypernyms(CExample ex,
                                   boolean useHead)
Determines whether one mention is the hypernym of another mention. This method is case sensitive to the extent that the WordNet library is.

Parameters:
ex - The example containing the mentions being compared.
useHead - Whether the heads or extents of the mentions should be compared.
Returns:
Whether one mention is the hypernym of the other mention.

doShareHypernyms

public static boolean doShareHypernyms(CExample ex,
                                       boolean useHead)
Determines whether two mentions have the same hypernym. This method is case sensitive to the extent that the WordNet library is.

Parameters:
ex - The example containing the mentions being compared.
useHead - Whether the heads or extents of the mentions should be compared.
Returns:
Whether two mention share a hypernym.