edu.gwu.jworddrivers
Class WordNetDriver

java.lang.Object
  extended byedu.gwu.jworddrivers.JWordDriver
      extended byedu.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.Object[] getExampleSentences(java.lang.String word, int pos)
          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
 java.lang.String getLemma(java.lang.String word, int pos)
          Returns the WordNet's 'lemma' of a word.
 java.lang.String getTitle()
          This method should return the title of the dictionary
 void initDictionary()
          Load the dictionary file into memory
static void main(java.lang.String[] args)
           
 void returnPOS(javax.swing.tree.DefaultMutableTreeNode posRoot, int POSv, 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
 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

getTitle

public java.lang.String getTitle()
Description copied from class: JWordDriver
This method should return the title of the dictionary

Specified by:
getTitle in class JWordDriver

initDictionary

public void initDictionary()
Load the dictionary file into memory

Specified by:
initDictionary in class JWordDriver

returnPOS

public void returnPOS(javax.swing.tree.DefaultMutableTreeNode posRoot,
                      int POSv,
                      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

Specified by:
returnPOS in class JWordDriver

returnSearch

public 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

Specified by:
returnSearch in class JWordDriver

getLemma

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


getExampleSentences

public static java.lang.Object[] getExampleSentences(java.lang.String word,
                                                     int pos)
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


main

public static void main(java.lang.String[] args)