|
||||||||||
| 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(String lemma,
POS pos,
long[] synsetOffsets)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Returns true if the lemma and the part of speech both match. |
Object |
getKey()
Gets the lemma of this word. |
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()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IndexWord(String lemma,
POS pos,
long[] synsetOffsets)
| Method Detail |
|---|
public DictionaryElementType getType()
DictionaryElement
getType in interface DictionaryElementpublic boolean equals(Object object)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic POS getPOS()
public String getLemma()
"dog" or "get up".
public long[] getSynsetOffsets()
public Object getKey()
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 | |||||||||