|
||||||||||
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 Pointer
s 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 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. |
java.util.List<Pointer> |
getPointersList()
Return the outgoing Pointer s from the target -- those Pointer s
that have this object as their source. |
java.util.List<Pointer> |
getPointersList(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. |
java.util.List<PointerTarget> |
getTargetsList()
Return the targets of the outgoing Pointer s. |
java.util.List<PointerTarget> |
getTargetsList(PointerType type)
Return the targets of the outgoing Pointer s 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
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)
protected java.util.List<Pointer> restrictPointersList(java.util.List<Pointer> source)
public java.util.List<Pointer> getPointersList()
PointerTarget
Pointer
s from the target -- those Pointer
s
that have this object as their source.
getPointersList
in interface PointerTarget
public java.util.List<Pointer> getPointersList(PointerType type)
PointerTarget
Pointer
s of type type.
getPointersList
in interface PointerTarget
public java.util.List<PointerTarget> getTargetsList()
PointerTarget
Pointer
s.
getTargetsList
in interface PointerTarget
public java.util.List<PointerTarget> getTargetsList(PointerType type)
PointerTarget
Pointer
s that have type type.
getTargetsList
in interface PointerTarget
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 |