edu.gwu.jworddrivers
Class WordNetDriver

java.lang.Object
  |
  +--edu.gwu.jworddrivers.JWordDriver
        |
        +--edu.gwu.jworddrivers.WordNetDriver

public class WordNetDriver
extends JWordDriver


Field Summary
 
Fields inherited from class edu.gwu.jworddrivers.JWordDriver
POS_ADJECTIVE, POS_ADVERB, POS_NOUN, POS_VERB
 
Constructor Summary
WordNetDriver()
           
 
Method Summary
static java.lang.String[] getExampleSentences(java.lang.String word)
          Returns WordNet's example sentences that are in the SynSet of the lemma of the word, and where the word is found in the example sentence
static java.lang.String getLemma(java.lang.String word)
          Returns the WordNet's 'lemma' of a word.
static void initDictionary()
          Load the dictionary file into memory
static void returnPOS(javax.swing.tree.DefaultMutableTreeNode posRoot, int POS, java.lang.String searchWord)
          This method is identical to that of returnSearch except that it generates the tree starting at the Part of Speech level rather than the dictionary level
static void returnSearch(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String searchWord)
          Given a DefaultMutableTreeNode to start at and a word to search for this will build the tree based on the WordNet's word relationship using the
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordNetDriver

public WordNetDriver()
Method Detail

initDictionary

public static void initDictionary()
Load the dictionary file into memory


returnPOS

public static void returnPOS(javax.swing.tree.DefaultMutableTreeNode posRoot,
                             int POS,
                             java.lang.String searchWord)
This method is identical to that of returnSearch except that it generates the tree starting at the Part of Speech level rather than the dictionary level


returnSearch

public static void returnSearch(javax.swing.tree.DefaultMutableTreeNode root,
                                java.lang.String searchWord)
Given a DefaultMutableTreeNode to start at and a word to search for this will build the tree based on the WordNet's word relationship using the


getLemma

public static java.lang.String getLemma(java.lang.String word)
Returns the WordNet's 'lemma' of a word. For example Weekends would return Weekend and Clearly would return Clear


getExampleSentences

public static java.lang.String[] getExampleSentences(java.lang.String word)
Returns WordNet's example sentences that are in the SynSet of the lemma of the word, and where the word is found in the example sentence