|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gwu.wordnet.Word
A Word represents the lexical information related to a specific sense of an IndexWord.
Word's are linked by Pointers into a network of lexically related words.
getTarget retrieves the targets of these links, and
getPointer retrieves the pointers themselves.
Pointer,
Synset| Field Summary | |
static int |
ATTRIBUTIVE
|
protected int |
flags
|
static int |
IMMEDIATE_POSTNOMINAL
|
protected int |
index
|
protected java.lang.String |
lemma
|
static int |
NONE
|
static int |
PREDICATIVE
|
protected Synset |
synset
|
protected long |
verbFrameFlags
|
| Constructor Summary | |
Word(Synset synset,
int index,
java.lang.String lemma,
int flags)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getDescription()
Return a description of the target. |
long |
getFlags()
|
int |
getIndex()
|
java.lang.String |
getLemma()
|
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()
|
Synset |
getSynset()
|
PointerTarget[] |
getTargets()
Return the targets of the outgoing Pointers. |
PointerTarget[] |
getTargets(PointerType type)
Return the targets of the outgoing Pointers that have type type. |
long |
getVerbFrameFlags()
|
int |
hashCode()
|
protected Pointer[] |
restrictPointers(Pointer[] source)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NONE
public static final int PREDICATIVE
public static final int ATTRIBUTIVE
public static final int IMMEDIATE_POSTNOMINAL
protected Synset synset
protected int index
protected java.lang.String lemma
protected int flags
protected long verbFrameFlags
| Constructor Detail |
public Word(Synset synset,
int index,
java.lang.String lemma,
int flags)
| Method Detail |
public boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
public Synset getSynset()
public POS getPOS()
getPOS in interface PointerTargetpublic int getIndex()
public java.lang.String getLemma()
public long getFlags()
public long getVerbFrameFlags()
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 Pointer[] restrictPointers(Pointer[] source)
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 | |||||||||