|
||||||||||
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 Pointer
s 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 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()
|
Synset |
getSynset()
|
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. |
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 PointerTarget
public int getIndex()
public java.lang.String getLemma()
public long getFlags()
public long getVerbFrameFlags()
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 Pointer[] restrictPointers(Pointer[] source)
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 |