edu.brandeis.cs.steele.wn
Class Word
java.lang.Object
|
+--edu.brandeis.cs.steele.wn.Word
- All Implemented Interfaces:
- PointerTarget
- public class Word
- extends java.lang.Object
- implements PointerTarget
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.
- See Also:
Pointer,
Synset
|
Constructor Summary |
Word(Synset synset,
int index,
java.lang.String lemma,
int flags)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NONE
public static final int NONE
PREDICATIVE
public static final int PREDICATIVE
ATTRIBUTIVE
public static final int ATTRIBUTIVE
IMMEDIATE_POSTNOMINAL
public static final int IMMEDIATE_POSTNOMINAL
synset
protected Synset synset
index
protected int index
lemma
protected java.lang.String lemma
flags
protected int flags
verbFrameFlags
protected long verbFrameFlags
Word
public Word(Synset synset,
int index,
java.lang.String lemma,
int flags)
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getSynset
public Synset getSynset()
getPOS
public POS getPOS()
- Specified by:
getPOS in interface PointerTarget
getIndex
public int getIndex()
getLemma
public java.lang.String getLemma()
getFlags
public long getFlags()
getVerbFrameFlags
public long getVerbFrameFlags()
getDescription
public java.lang.String getDescription()
- Description copied from interface:
PointerTarget
- Return a description of the target. For a
Word, this is it's lemma;
for a Synset, it's the concatenated lemma's of its Words.
- Specified by:
getDescription in interface PointerTarget
getLongDescription
public java.lang.String getLongDescription()
- Description copied from interface:
PointerTarget
- Return the long description of the target. This is its description, appended by,
if it exists, a dash and it's gloss.
- Specified by:
getLongDescription in interface PointerTarget
restrictPointers
protected Pointer[] restrictPointers(Pointer[] source)
getPointers
public Pointer[] getPointers()
- Description copied from interface:
PointerTarget
- Return the outgoing
Pointers from the target -- those Pointers
that have this object as their source.
- Specified by:
getPointers in interface PointerTarget
getPointers
public Pointer[] getPointers(PointerType type)
- Description copied from interface:
PointerTarget
- Return the outgoing
Pointers of type type.
- Specified by:
getPointers in interface PointerTarget
getTargets
public PointerTarget[] getTargets()
- Description copied from interface:
PointerTarget
- Return the targets of the outgoing
Pointers.
- Specified by:
getTargets in interface PointerTarget
getTargets
public PointerTarget[] getTargets(PointerType type)
- Description copied from interface:
PointerTarget
- Return the targets of the outgoing
Pointers that have type type.
- Specified by:
getTargets in interface PointerTarget