|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.data.BaseDictionaryElement
net.sf.extjwnl.data.IndexWord
public class IndexWord
An IndexWord
represents a line of the pos.index
file.
An IndexWord
is created or retrieved via lookupIndexWord
.
Field Summary |
---|
Fields inherited from class net.sf.extjwnl.data.BaseDictionaryElement |
---|
dictionary |
Constructor Summary | |
---|---|
protected |
IndexWord(Dictionary dictionary,
String lemma,
POS pos)
|
|
IndexWord(Dictionary dictionary,
String lemma,
POS pos,
long[] synsetOffsets)
|
|
IndexWord(Dictionary dictionary,
String lemma,
POS pos,
Synset synset)
|
Method Summary | |
---|---|
boolean |
equals(Object object)
Returns true if the lemma and the part of speech both match. |
Object |
getKey()
Returns the lemma of this word. |
String |
getLemma()
Return the word's |
POS |
getPOS()
Returns the word's part-of-speech. |
List<Synset> |
getSenses()
Returns the senses of this word. |
long[] |
getSynsetOffsets()
|
DictionaryElementType |
getType()
Returns the element's type. |
int |
hashCode()
|
int |
sortSenses()
Sorts senses according to their use count. |
String |
toString()
|
Methods inherited from class net.sf.extjwnl.data.BaseDictionaryElement |
---|
getDictionary, setDictionary |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected IndexWord(Dictionary dictionary, String lemma, POS pos) throws JWNLException
JWNLException
public IndexWord(Dictionary dictionary, String lemma, POS pos, Synset synset) throws JWNLException
JWNLException
public IndexWord(Dictionary dictionary, String lemma, POS pos, long[] synsetOffsets) throws JWNLException
JWNLException
Method Detail |
---|
public DictionaryElementType getType()
DictionaryElement
public Object getKey()
public POS getPOS()
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public String getLemma()
"dog"
or "get up"
.
public long[] getSynsetOffsets()
public List<Synset> getSenses()
public int sortSenses()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |