gate.wordnet
Class WordImpl
java.lang.Object
|
+--gate.wordnet.WordImpl
- All Implemented Interfaces:
- Word
- public class WordImpl
- extends Object
- implements Word
Constructor Summary |
WordImpl(String _lemma,
int _senseCount,
net.didion.jwnl.dictionary.Dictionary _wnDictionary)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lemma
private String lemma
senseCount
private int senseCount
wordSenses
private ArrayList wordSenses
wnDictionary
private net.didion.jwnl.dictionary.Dictionary wnDictionary
WordImpl
public WordImpl(String _lemma,
int _senseCount,
net.didion.jwnl.dictionary.Dictionary _wnDictionary)
getWordSenses
public List getWordSenses()
throws WordNetException
- returns the senses of this word
- Specified by:
getWordSenses
in interface Word
WordNetException
_loadWordSenses
private void _loadWordSenses()
throws WordNetException
WordNetException
getLemma
public String getLemma()
- returns the lemma of this word
- Specified by:
getLemma
in interface Word
getSenseCount
public int getSenseCount()
- returns the number of senses of this word (not necessarily loading them from storage)
- Specified by:
getSenseCount
in interface Word