public class Word extends PointerTarget
Word
represents the lexical information related to a specific sense of an IndexWord
.
Word
's are linked by Pointer
s into a network of lexically related words.
getTargets
retrieves the targets of these links, and
getPointers
retrieves the pointers themselves.Modifier and Type | Field and Description |
---|---|
protected int |
lexId
The lexicographer id that identifies this lemma.
|
Constructor and Description |
---|
Word(Synset synset,
int index,
String lemma)
Constructs a word tied to a synset, it's position within the synset, and the lemma.
|
Modifier and Type | Method and Description |
---|---|
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() |
getPointers, getTargets, getTargets
public int getLexId()
public void setLexId(int lexId)
public boolean equals(Object object)
equals
in class PointerTarget
public String toString()
toString
in class PointerTarget
public Synset getSynset()
public POS getPOS()
getPOS
in class PointerTarget
public int getIndex()
public String getLemma()
public Pointer[] getPointers()
getPointers
in class PointerTarget
Copyright © 2022. All rights reserved.