|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.gwu.wordnet.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 getTarget
retrieves the targets of these links, and
getPointer
retrieves the pointers themselves.
Word
,
Pointer
Field Summary | |
protected FileBackedDictionary |
dictionary
|
protected java.lang.String |
gloss
|
protected boolean |
isAdjectiveCluster
|
protected long |
offset
|
protected Pointer[] |
pointers
|
protected POS |
pos
|
protected Word[] |
words
|
Method Summary | |
protected static PointerTarget[] |
collectTargets(Pointer[] pointers)
|
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getDescription()
Return a description of the target. |
java.lang.String |
getGloss()
|
java.lang.String |
getLongDescription()
Return the long description of the target. |
Pointer[] |
getPointers()
Return the outgoing Pointer s from the target -- those Pointer s
that have this object as their source. |
Pointer[] |
getPointers(PointerType type)
Return the outgoing Pointer s of type type. |
POS |
getPOS()
|
PointerTarget[] |
getTargets()
Return the targets of the outgoing Pointer s. |
PointerTarget[] |
getTargets(PointerType type)
Return the targets of the outgoing Pointer s that have type type. |
Word |
getWord(int index)
|
Word[] |
getWords()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected FileBackedDictionary dictionary
protected POS pos
protected long offset
protected boolean isAdjectiveCluster
protected Word[] words
protected Pointer[] pointers
protected java.lang.String gloss
Method Detail |
public boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
public POS getPOS()
getPOS
in interface PointerTarget
public java.lang.String getGloss()
public Word[] getWords()
public Word getWord(int index)
public java.lang.String getDescription()
PointerTarget
Word
, this is it's lemma;
for a Synset
, it's the concatenated lemma's of its Word
s.
getDescription
in interface PointerTarget
public java.lang.String getLongDescription()
PointerTarget
getLongDescription
in interface PointerTarget
protected static PointerTarget[] collectTargets(Pointer[] pointers)
public Pointer[] getPointers()
PointerTarget
Pointer
s from the target -- those Pointer
s
that have this object as their source.
getPointers
in interface PointerTarget
public Pointer[] getPointers(PointerType type)
PointerTarget
Pointer
s of type type.
getPointers
in interface PointerTarget
public PointerTarget[] getTargets()
PointerTarget
Pointer
s.
getTargets
in interface PointerTarget
public PointerTarget[] getTargets(PointerType type)
PointerTarget
Pointer
s that have type type.
getTargets
in interface PointerTarget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |