|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Synset.Relation>
gov.llnl.ontology.wordnet.Synset.Relation
public static enum Synset.Relation
The set of relations that can connect any two Synset
s. Each
relation is attributed with the character symbols used in the WordNet
dictionary files to identify instances of each relation. Most relations
have a corresponding reflexive type, such as HYPERNYM
is
the reflexive relation of Relation:HYPONYM
.
Enum Constant Summary | |
---|---|
ALSO_SEE
|
|
ANTONYM
An opposite of relation. |
|
ATTRIBUTE
A relation signifying that the current Synset is a required
attribute to some other Synset . |
|
CAUSE
A causal relation. |
|
DERIVATIONALLY_RELATED_FORMS
|
|
ENTAILMENT
A relation for entailments. |
|
HYPERNYM
A parent of relation. |
|
HYPONYM
A child of relation. |
|
INSTANCE_HYPERNYM
A parent of relation. |
|
INSTANCE_HYPONYM
A child of relation. |
|
MEMBER_HOLONYM
A part of relation. |
|
MEMBER_MERONYM
A part of relation. |
|
PART_HOLONYM
A part of relation. |
|
PART_MERONYM
A part of relation. |
|
SIMILAR_TO
|
|
SUBSTANCE_HOLONYM
A part of relation. |
|
SUBSTANCE_MERONYM
A part of relation. |
|
VERB_GROUPS
|
Method Summary | |
---|---|
static Synset.Relation |
fromId(String label)
Returns the Synset.Relation corresponding to one of the symbols used
in the WordNet dictionary files. |
Synset.Relation |
reflexive()
Returns the reflexive Synset.Relation . |
String |
toId()
The label or identifier for this Synset.Relation |
String |
toString()
|
static Synset.Relation |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Synset.Relation[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Synset.Relation HYPERNYM
Synset
s of a given Synset
.
public static final Synset.Relation INSTANCE_HYPERNYM
public static final Synset.Relation HYPONYM
public static final Synset.Relation INSTANCE_HYPONYM
public static final Synset.Relation ANTONYM
public static final Synset.Relation MEMBER_HOLONYM
public static final Synset.Relation SUBSTANCE_HOLONYM
public static final Synset.Relation PART_HOLONYM
public static final Synset.Relation MEMBER_MERONYM
public static final Synset.Relation SUBSTANCE_MERONYM
public static final Synset.Relation PART_MERONYM
public static final Synset.Relation ATTRIBUTE
Synset
is a required
attribute to some other Synset
. For example, "accurate" is
an attribute of "truth".
public static final Synset.Relation ENTAILMENT
Synset
has an entailment
relation if it entails or implies another Synset
. For
example, "snore" entails "sleep".
public static final Synset.Relation CAUSE
Synset
has a cause relation if it
is a cause of another Synset
.
public static final Synset.Relation ALSO_SEE
public static final Synset.Relation VERB_GROUPS
public static final Synset.Relation SIMILAR_TO
public static final Synset.Relation DERIVATIONALLY_RELATED_FORMS
Method Detail |
---|
public static Synset.Relation[] values()
for (Synset.Relation c : Synset.Relation.values()) System.out.println(c);
public static Synset.Relation valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic Synset.Relation reflexive()
Synset.Relation
.
public String toId()
Synset.Relation
public String toString()
toString
in class Enum<Synset.Relation>
public static Synset.Relation fromId(String label)
Synset.Relation
corresponding to one of the symbols used
in the WordNet dictionary files.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |