|
||||||||||
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.Synset
public class Synset
A Synset
, or synonym set, represents a
line of a WordNet pos.data
file. A Synset
represents a concept, and contains a set of Word
s, each of
which has a sense that names that concept (and each of which is therefore
synonymous with the other words in the Synset
).
Synset
's are linked by Pointer
s into a network of related
concepts; this is the getTargets
retrieves the targets of these links, and getPointers
retrieves the pointers themselves.
Field Summary | |
---|---|
protected net.sf.extjwnl.data.Synset.PointerList |
pointers
|
protected POS |
pos
|
Fields inherited from class net.sf.extjwnl.data.PointerTarget |
---|
dictionary |
Constructor Summary | |
---|---|
Synset(Dictionary dictionary,
POS pos)
|
|
Synset(Dictionary dictionary,
POS pos,
long offset)
|
Method Summary | |
---|---|
boolean |
containsWord(String lemma)
Returns true if lemma is one of the words contained in this synset. |
boolean |
equals(Object object)
Two Synsets are equal if their POS's and offsets are equal |
String |
getGloss()
|
int |
getIndex()
|
Object |
getKey()
Returns a key that can be used to index this element. |
String |
getLexFileName()
Returns the lexicographer file name. |
long |
getLexFileNum()
Returns the lexicographer file name containing this synset. |
long |
getOffset()
|
List<Pointer> |
getPointers()
Returns a list of Target's pointers. |
POS |
getPOS()
Returns element's part of speech. |
Synset |
getSynset()
|
DictionaryElementType |
getType()
Returns the element's type. |
BitSet |
getVerbFrameFlags()
|
int[] |
getVerbFrameIndices()
|
String[] |
getVerbFrames()
Returns all Verb Frames that are valid for all the words in this synset. |
List<Word> |
getWords()
|
int |
hashCode()
|
int |
indexOfWord(String lemma)
Returns the index of the word which has the lemma or -1 if not found. |
boolean |
isAdjectiveCluster()
|
void |
setDictionary(Dictionary dictionary)
Sets the dictionary this object belongs to. |
void |
setGloss(String gloss)
|
void |
setIsAdjectiveCluster(boolean isAdjectiveCluster)
|
void |
setLexFileNum(long lexFileNum)
Sets the lexicographer file name containing this synset. |
void |
setOffset(long offset)
|
void |
setVerbFrameFlags(BitSet verbFrameFlags)
|
String |
toString()
|
Methods inherited from class net.sf.extjwnl.data.PointerTarget |
---|
getDictionary, getPointers, getTargets, getTargets |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.extjwnl.util.factory.Owned |
---|
getDictionary |
Field Detail |
---|
protected POS pos
protected net.sf.extjwnl.data.Synset.PointerList pointers
Constructor Detail |
---|
public Synset(Dictionary dictionary, POS pos) throws JWNLException
JWNLException
public Synset(Dictionary dictionary, POS pos, long offset) throws JWNLException
JWNLException
Method Detail |
---|
public DictionaryElementType getType()
DictionaryElement
getType
in interface DictionaryElement
public Object getKey()
DictionaryElement
getKey
in interface DictionaryElement
public POS getPOS()
DictionaryElement
getPOS
in interface DictionaryElement
getPOS
in class PointerTarget
public boolean equals(Object object)
equals
in class PointerTarget
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class PointerTarget
public Synset getSynset()
getSynset
in class PointerTarget
public int getIndex()
getIndex
in class PointerTarget
public List<Pointer> getPointers()
PointerTarget
getPointers
in class PointerTarget
public String getGloss()
public void setGloss(String gloss)
public List<Word> getWords()
public long getOffset()
public void setOffset(long offset)
public boolean isAdjectiveCluster()
public void setIsAdjectiveCluster(boolean isAdjectiveCluster)
public String[] getVerbFrames()
public BitSet getVerbFrameFlags()
public void setVerbFrameFlags(BitSet verbFrameFlags)
public int[] getVerbFrameIndices()
public boolean containsWord(String lemma)
lemma
- lemma to check
public int indexOfWord(String lemma)
lemma
- lemma to check
public long getLexFileNum()
public void setLexFileNum(long lexFileNum)
lexFileNum
- - the lexicographer file name numberpublic String getLexFileName()
public void setDictionary(Dictionary dictionary) throws JWNLException
Owned
setDictionary
in interface Owned
setDictionary
in class PointerTarget
dictionary
- the dictionary this object belongs to
JWNLException
- JWNLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |