|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.didion.jwnl.data.IndexWord
public class 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)
Returns true if the lemma and the part of speech both match. |
java.lang.Object |
getKey()
Gets the lemma of this word. |
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 |
---|
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 DictionaryElement
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public POS getPOS()
public java.lang.String getLemma()
"dog"
or "get up"
.
public long[] getSynsetOffsets()
public java.lang.Object getKey()
getKey
in interface DictionaryElement
public 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 |