|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.brandeis.cs.steele.wn.Word
public class 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
parsePointer
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. |
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()
|
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. |
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. |
long |
getVerbFrameFlags()
|
int |
hashCode()
|
protected Pointer[] |
restrictPointers(Pointer[] source)
|
protected java.util.List<Pointer> |
restrictPointersList(java.util.List<Pointer> source)
|
(package private) void |
setVerbFrameFlag(int fnum)
|
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 |
|---|
void setVerbFrameFlag(int fnum)
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 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)
protected java.util.List<Pointer> restrictPointersList(java.util.List<Pointer> source)
public 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 PointerTargetpublic 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 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 | |||||||||