|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.didion.jwnl.data.PointerTarget
net.didion.jwnl.data.Word
public class Word
A Word represents the lexical information related to a specific sense of an IndexWord.
Word's are linked by Pointers into a network of lexically related words.
getTargets retrieves the targets of these links, and
getPointers retrieves the pointers themselves.
| Field Summary | |
|---|---|
protected int |
lexId
The lexicographer id that identifies this lemma. |
| Constructor Summary | |
|---|---|
Word(Synset synset,
int index,
String lemma)
Constructs a word tied to a synset, it's position within the synset, and the lemma. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Two words are equal if their parent Synsets are equal and they have the same index |
int |
getIndex()
Gets the index of this word. |
String |
getLemma()
Gets the lemma of this word. |
int |
getLexId()
|
Pointer[] |
getPointers()
returns all the pointers of the synset that contains this word whose source is this word |
POS |
getPOS()
Gets the part of speech of this word. |
Synset |
getSynset()
Gets the synset associated with this word. |
int |
hashCode()
|
void |
setLexId(int lexId)
|
String |
toString()
|
| Methods inherited from class net.didion.jwnl.data.PointerTarget |
|---|
getPointers, getTargets, getTargets |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int lexId
| Constructor Detail |
|---|
public Word(Synset synset,
int index,
String lemma)
synset - - the synset this word is contained inindex - - the position of the word in the synset (usage)lemma - - the lemma of this word| Method Detail |
|---|
public int getLexId()
public void setLexId(int lexId)
public boolean equals(Object object)
equals in class PointerTargetpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class PointerTargetpublic Synset getSynset()
public POS getPOS()
getPOS in class PointerTargetpublic int getIndex()
public String getLemma()
public Pointer[] getPointers()
getPointers in class PointerTarget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||