|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.brandeis.cs.steele.wn.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 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 Net in WordNet.
Pointer.getTarget() retrieves the targets of these links, and
parsePointer
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
|
| Constructor Summary | |
|---|---|
Synset(FileBackedDictionary dictionary)
|
|
| Method Summary | |
|---|---|
protected static PointerTarget[] |
collectTargets(Pointer[] pointers)
|
protected static java.util.List<PointerTarget> |
collectTargetsList(java.util.List<Pointer> pointersIn)
|
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. |
java.util.List<Pointer> |
getPointersList()
Return the outgoing Pointers from the target -- those Pointers
that have this object as their source. |
java.util.List<Pointer> |
getPointersList(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. |
java.util.List<PointerTarget> |
getTargetsList()
Return the targets of the outgoing Pointers. |
java.util.List<PointerTarget> |
getTargetsList(PointerType type)
Return the targets of the outgoing Pointers that have type type. |
Word |
getWord(int index)
|
Word[] |
getWords()
|
int |
hashCode()
|
(package private) Synset |
initializeFrom(java.lang.String line)
|
(package private) static Synset |
parseSynset(FileBackedDictionary dictionary,
java.lang.String line)
|
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
| Constructor Detail |
|---|
Synset(FileBackedDictionary dictionary)
| Method Detail |
|---|
Synset initializeFrom(java.lang.String line)
static Synset parseSynset(FileBackedDictionary dictionary,
java.lang.String line)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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 java.util.List<PointerTarget> collectTargetsList(java.util.List<Pointer> pointersIn)
public java.util.List<PointerTarget> getTargetsList()
PointerTargetPointers.
getTargetsList in interface PointerTargetpublic java.util.List<PointerTarget> getTargetsList(PointerType type)
PointerTargetPointers that have type type.
getTargetsList in interface PointerTargetpublic java.util.List<Pointer> getPointersList()
PointerTargetPointers from the target -- those Pointers
that have this object as their source.
getPointersList in interface PointerTargetpublic java.util.List<Pointer> getPointersList(PointerType type)
PointerTargetPointers of type type.
getPointersList 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 | |||||||||