|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.data.PointerTarget
net.sf.extjwnl.data.Word
public class Word
A 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.
Field Summary |
---|
Fields inherited from class net.sf.extjwnl.data.PointerTarget |
---|
dictionary |
Constructor Summary | |
---|---|
Word(Dictionary dictionary,
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 lemma |
int |
getIndex()
Returns the index of this word. |
String |
getLemma()
Returns the lemma of this word. |
long |
getLexId()
Returns the lexicographer id that identifies this lemma |
List<Pointer> |
getPointers()
Returns all the pointers of the synset that contains this word whose source is this word. |
POS |
getPOS()
Returns the part of speech of this word. |
String |
getSenseKey()
Returns the sense key of a lemma. |
String |
getSenseKeyWithAdjClass()
Returns the sense key of a lemma, taking into account adjective class (position). |
String |
getSummary()
Returns the summary calculated among all senses. |
String |
getSummary(List<Synset> senses)
Returns the summary, calculated among given set of senses. |
Synset |
getSynset()
Returns the synset associated with this word. |
int |
getUseCount()
Returns the number of times each tagged sense occurs in a semantic concordance. |
int |
hashCode()
|
void |
setIndex(int index)
Sets the index of this word. |
void |
setLexId(long lexId)
Sets the lexicographer id that identifies this lemma. |
void |
setSummary(String summary)
|
void |
setUseCount(int useCount)
Sets the number of times each tagged sense occurs in a semantic concordance. |
String |
toString()
|
Methods inherited from class net.sf.extjwnl.data.PointerTarget |
---|
getDictionary, getPointers, getTargets, getTargets, setDictionary |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Word(Dictionary dictionary, Synset synset, int index, String lemma)
dictionary
- ownersynset
- the synset this word is contained inindex
- the position of the word in the synset (usage)lemma
- the lemma of this wordMethod Detail |
---|
public boolean equals(Object object)
equals
in class PointerTarget
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class PointerTarget
public long getLexId()
public void setLexId(long lexId)
lexId
- the lexicographer id that identifies this lemmapublic Synset getSynset()
getSynset
in class PointerTarget
public POS getPOS()
getPOS
in class PointerTarget
public int getIndex()
getIndex
in class PointerTarget
public void setIndex(int index)
index
- the index of this wordpublic String getLemma()
public int getUseCount()
public void setUseCount(int useCount)
useCount
- number of times each tagged sense occurs in a semantic concordancepublic List<Pointer> getPointers()
getPointers
in class PointerTarget
public String getSummary() throws JWNLException
JWNLException
- JWNLExceptionpublic String getSummary(List<Synset> senses) throws JWNLException
senses
- set of senses
JWNLException
- JWNLExceptionpublic void setSummary(String summary)
public String getSenseKey()
public String getSenseKeyWithAdjClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |