|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Synset.PartsOfSpeech>
gov.llnl.ontology.wordnet.Synset.PartsOfSpeech
public static enum Synset.PartsOfSpeech
The set of valid parts of speech encoded by the WordNet dictionary.
Enum Constant Summary | |
---|---|
ADJECTIVE
|
|
ADJECTIVE_SAT
|
|
ADVERB
|
|
NOUN
|
|
VERB
|
Method Summary | |
---|---|
static Synset.PartsOfSpeech |
fromId(String label)
Returns the Synset.PartsOfSpeech corresponding to one of the symbols
used in the WordNet dictionary files. |
static Synset.PartsOfSpeech |
fromPennTag(String pos)
Returns the Synset.PartsOfSpeech form of the part of speech tag for
the given penn tree bank part of speech tag. |
String |
toString()
The label or identifier for this Synset.PartsOfSpeech |
static Synset.PartsOfSpeech |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Synset.PartsOfSpeech[] |
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.PartsOfSpeech NOUN
public static final Synset.PartsOfSpeech VERB
public static final Synset.PartsOfSpeech ADJECTIVE
public static final Synset.PartsOfSpeech ADVERB
public static final Synset.PartsOfSpeech ADJECTIVE_SAT
Method Detail |
---|
public static Synset.PartsOfSpeech[] values()
for (Synset.PartsOfSpeech c : Synset.PartsOfSpeech.values()) System.out.println(c);
public static Synset.PartsOfSpeech 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 String toString()
Synset.PartsOfSpeech
toString
in class Enum<Synset.PartsOfSpeech>
public static Synset.PartsOfSpeech fromPennTag(String pos)
Synset.PartsOfSpeech
form of the part of speech tag for
the given penn tree bank part of speech tag.
public static Synset.PartsOfSpeech fromId(String label)
Synset.PartsOfSpeech
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 |