|
Java Access to WordNet | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--danbikel.wordnet.WNPointer
Container of all information about a pointer in the WordNet database.
| Field Summary | |
static String |
alsoSee
A pointer type of the same name. |
static String |
antonym
A pointer type of the same name. |
static String |
attribute
A pointer type of the same name. |
static String |
cause
A pointer type of the same name. |
static String |
derivedFromAdjective
A pointer type of the same name. |
static String |
entailment
A pointer type of the same name. |
static String |
hypernym
A pointer type of the same name. |
static String |
hyponym
A pointer type of the same name. |
static String |
memberHolonym
A pointer type of the same name. |
static String |
memberMeronym
A pointer type of the same name. |
static String |
partHolonym
A pointer type of the same name. |
static String |
participle
A pointer type of the same name. |
static String |
partMeronym
A pointer type of the same name. |
static String |
pertainym
A pointer type of the same name. |
protected String |
pos
The part of speech of the source and target of this pointer. |
static String |
similarTo
A pointer type of the same name. |
protected short |
sourceWord
The source word of this pointer. |
static String |
substanceHolonym
A pointer type of the same name. |
static String |
substanceMeronym
A pointer type of the same name. |
protected int |
synset
The source synset of this pointer. |
protected int |
targetSynset
The target synset of this pointer. |
protected short |
targetWord
The target word of this pointer. |
protected String |
type
The type of this pointer. |
static String |
verbGroup
A pointer type of the same name. |
| Method Summary | |
boolean |
equals(Object o)
Returns true if the object o is of type
WNPointer and if it is equal to this object. |
static String |
getCanonical(String ptr,
int posIdx)
|
static String |
getCanonical(String ptr,
String pos)
|
String |
getPos()
Gets the part of speech of the source and target of this pointer. |
int |
getSourceWordIdx()
Gets the index of the source word of this pointer, or 0 if this pointer has the entire source synset as its source. |
int |
getSynset()
Gets the source synset of this pointer. |
int |
getTargetSynset()
Gets the target synset of this pointer. |
int |
getTargetWordIdx()
Gets the index of the target word of this pointer, or 0 if this poitner has the entire target synset as its target. |
String |
getType()
Gets the type of this pointer. |
int |
hashCode()
|
boolean |
isChildPointer()
Returns true if this pointer is a hyponym. |
boolean |
isLexicalRelation()
Returns true if either the source of the target of this pointer is a lemma, making this pointer a lexical relation, in WordNet parlance. |
boolean |
isParentPointer()
Returns true if this pointer is a hypernym. |
boolean |
isSemanticRelation()
Returns true if this pointer's source is the entire source synset and if this pointer's target is the entire target synset, making this a semantic relation, in WordNet parlance. |
String |
toString()
Returns a string representation of this pointer. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String antonym
public static final String hypernym
public static final String hyponym
public static final String memberMeronym
public static final String substanceMeronym
public static final String partMeronym
public static final String memberHolonym
public static final String substanceHolonym
public static final String partHolonym
public static final String attribute
public static final String entailment
public static final String cause
public static final String alsoSee
public static final String verbGroup
public static final String similarTo
public static final String participle
public static final String pertainym
public static final String derivedFromAdjective
protected int synset
protected String pos
protected String type
protected int targetSynset
protected short sourceWord
protected short targetWord
| Method Detail |
public static final String getCanonical(String ptr,
String pos)
public static final String getCanonical(String ptr,
int posIdx)
public int getSynset()
public int getTargetSynset()
public String getPos()
public String getType()
public int getSourceWordIdx()
public int getTargetWordIdx()
public boolean isSemanticRelation()
public boolean isLexicalRelation()
public boolean isChildPointer()
public boolean isParentPointer()
public String toString()
toString in class Objectpublic boolean equals(Object o)
o is of type
WNPointer and if it is equal to this object. Two
WNPointer objects are equal if they have the same synset,
the same part of speech, the same type, the same target synset the same
source word and the same target word.
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Java Access to WordNet | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||