|
||||||||||
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.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.
Constructor Summary | |
---|---|
Synset(POS pos,
long offset,
Word[] words,
Pointer[] pointers,
java.lang.String gloss,
java.util.BitSet verbFrames)
|
|
Synset(POS pos,
long offset,
Word[] words,
Pointer[] pointers,
java.lang.String gloss,
java.util.BitSet verbFrames,
boolean isAdjectiveCluster)
Deprecated. |
Method Summary | |
---|---|
boolean |
containsWord(java.lang.String lemma)
Returns true if lemma is one of the words contained in this synset. |
boolean |
equals(java.lang.Object object)
Two Synsets are equal if their POS's and offsets are equal |
java.lang.String |
getGloss()
|
java.lang.Object |
getKey()
Get a key that can be used to index this element. |
long |
getLexFileId()
Gets the lexicographer file name containing this synset. |
java.lang.String |
getLexFileName()
Gets the lex file name. |
long |
getOffset()
|
Pointer[] |
getPointers()
Return a list of Target's pointers |
POS |
getPOS()
Return this target's POS |
DictionaryElementType |
getType()
Get the element's type. |
java.util.BitSet |
getVerbFrameFlags()
|
int[] |
getVerbFrameIndicies()
|
java.lang.String[] |
getVerbFrames()
Returns all Verb Frames that are valid for all the words in this synset |
Word |
getWord(int index)
|
Word[] |
getWords()
|
int |
getWordsSize()
|
int |
hashCode()
|
boolean |
isAdjectiveCluster()
|
void |
setLexFileId(long lexFileId)
Sets the lexicographer file name containing this synset. |
java.lang.String |
toString()
|
Methods inherited from class net.didion.jwnl.data.PointerTarget |
---|
getPointers, getTargets, getTargets |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Synset(POS pos, long offset, Word[] words, Pointer[] pointers, java.lang.String gloss, java.util.BitSet verbFrames)
public Synset(POS pos, long offset, Word[] words, Pointer[] pointers, java.lang.String gloss, java.util.BitSet verbFrames, boolean isAdjectiveCluster)
Method Detail |
---|
public DictionaryElementType getType()
DictionaryElement
getType
in interface DictionaryElement
public boolean equals(java.lang.Object object)
equals
in class PointerTarget
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class PointerTarget
public POS getPOS()
PointerTarget
getPOS
in class PointerTarget
public Pointer[] getPointers()
PointerTarget
getPointers
in class PointerTarget
public java.lang.String getGloss()
public Word[] getWords()
public int getWordsSize()
public Word getWord(int index)
public long getOffset()
public java.lang.Object getKey()
DictionaryElement
getKey
in interface DictionaryElement
public boolean isAdjectiveCluster()
public java.lang.String[] getVerbFrames()
public java.util.BitSet getVerbFrameFlags()
public int[] getVerbFrameIndicies()
public boolean containsWord(java.lang.String lemma)
lemma
is one of the words contained in this synset.
public long getLexFileId()
public void setLexFileId(long lexFileId)
lexFileId
- - the lexicographer file name idpublic java.lang.String getLexFileName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |