|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.didion.jwnl.data.IndexWord
An IndexWord represents a line of the pos.index file.
An IndexWord is created or retrieved via lookupIndexWord.
| Constructor Summary | |
IndexWord(java.lang.String lemma,
POS pos,
long[] synsetOffsets)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
|
java.lang.Object |
getKey()
Get a key that can be used to index this element. |
java.lang.String |
getLemma()
Return the word's |
POS |
getPOS()
Get the word's part-of-speech. |
Synset |
getSense(int index)
Get a particular sense of this word. |
int |
getSenseCount()
Get the word's sense count. |
Synset[] |
getSenses()
Get an array of all the senses of this word. |
long[] |
getSynsetOffsets()
|
DictionaryElementType |
getType()
Get the element's type. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IndexWord(java.lang.String lemma,
POS pos,
long[] synsetOffsets)
| Method Detail |
public DictionaryElementType getType()
DictionaryElement
getType in interface DictionaryElementpublic boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
public POS getPOS()
public java.lang.String getLemma()
"dog" or "get up".
public long[] getSynsetOffsets()
public java.lang.Object getKey()
DictionaryElement
getKey in interface DictionaryElementpublic int getSenseCount()
public Synset[] getSenses()
throws JWNLException
JWNLException
public Synset getSense(int index)
throws JWNLException
JWNLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||