|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.gwu.jworddrivers.JWordDriver
edu.gwu.jworddrivers.WordNetDriver
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 |
public WordNetDriver()
Method Detail |
public java.lang.String getTitle()
JWordDriver
getTitle
in class JWordDriver
public void initDictionary()
initDictionary
in class JWordDriver
public void returnPOS(javax.swing.tree.DefaultMutableTreeNode posRoot, int POSv, java.lang.String searchWord)
returnPOS
in class JWordDriver
public void returnSearch(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String searchWord)
returnSearch
in class JWordDriver
public java.lang.String getLemma(java.lang.String word, int pos)
public static java.lang.Object[] getExampleSentences(java.lang.String word, int pos)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |