|
||||||||||
| 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 Words, 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 Pointers 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 Pointers from the target -- those Pointers
that have this object as their source. |
Pointer[] |
getPointers(PointerType type)
Return the outgoing Pointers of type type. |
POS |
getPOS()
|
PointerTarget[] |
getTargets()
Return the targets of the outgoing Pointers. |
PointerTarget[] |
getTargets(PointerType type)
Return the targets of the outgoing Pointers 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 PointerTargetpublic java.lang.String getGloss()
public Word[] getWords()
public Word getWord(int index)
public java.lang.String getDescription()
PointerTargetWord, this is it's lemma;
for a Synset, it's the concatenated lemma's of its Words.
getDescription in interface PointerTargetpublic java.lang.String getLongDescription()
PointerTarget
getLongDescription in interface PointerTargetprotected static PointerTarget[] collectTargets(Pointer[] pointers)
public Pointer[] getPointers()
PointerTargetPointers from the target -- those Pointers
that have this object as their source.
getPointers in interface PointerTargetpublic Pointer[] getPointers(PointerType type)
PointerTargetPointers of type type.
getPointers in interface PointerTargetpublic PointerTarget[] getTargets()
PointerTargetPointers.
getTargets in interface PointerTargetpublic PointerTarget[] getTargets(PointerType type)
PointerTargetPointers that have type type.
getTargets in interface PointerTarget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||