gov.llnl.ontology.wordnet
Enum Synset.PartsOfSpeech

java.lang.Object
  extended by java.lang.Enum<Synset.PartsOfSpeech>
      extended by gov.llnl.ontology.wordnet.Synset.PartsOfSpeech
All Implemented Interfaces:
Serializable, Comparable<Synset.PartsOfSpeech>
Enclosing interface:
Synset

public static enum Synset.PartsOfSpeech
extends 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

NOUN

public static final Synset.PartsOfSpeech NOUN

VERB

public static final Synset.PartsOfSpeech VERB

ADJECTIVE

public static final Synset.PartsOfSpeech ADJECTIVE

ADVERB

public static final Synset.PartsOfSpeech ADVERB

ADJECTIVE_SAT

public static final Synset.PartsOfSpeech ADJECTIVE_SAT
Method Detail

values

public static Synset.PartsOfSpeech[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Synset.PartsOfSpeech c : Synset.PartsOfSpeech.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Synset.PartsOfSpeech valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()
The label or identifier for this Synset.PartsOfSpeech

Overrides:
toString in class Enum<Synset.PartsOfSpeech>

fromPennTag

public 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.


fromId

public static Synset.PartsOfSpeech fromId(String label)
Returns the Synset.PartsOfSpeech corresponding to one of the symbols used in the WordNet dictionary files.



Copyright © 2010-2011. All Rights Reserved.