jmrc
Enum MRCPoS

java.lang.Object
  extended by java.lang.Enum<MRCPoS>
      extended by jmrc.MRCPoS
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MRCPoS>, PoS

public enum MRCPoS
extends java.lang.Enum<MRCPoS>
implements PoS

MRC part-of-speech tags.

Author:
Francois Mairesse, http://www.dcs.shef.ac.uk/~francois

Enum Constant Summary
ADJECTIVE
           
ADVERB
           
CONJUNCTION
           
INTERJECTION
           
NOUN
           
OTHER
           
PAST_PARTICIPLE
           
PREPOSITION
           
PRONOUN
           
VERB
           
 
Method Summary
static java.util.Set<MRCPoS> getAll()
           
static MRCPoS getMRCPoS(java.lang.String pos)
          Returns the MRCPoS associated with the string, if it exists, else returns null.
static void init()
          Initialization procedure required using this class.
static int posCount()
          Returns the number of part-of-speech tags in the database.
 java.lang.String toString()
          Returns the string symbol of the part-of-speech.
static MRCPoS valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MRCPoS[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, 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 MRCPoS NOUN

ADJECTIVE

public static final MRCPoS ADJECTIVE

ADVERB

public static final MRCPoS ADVERB

VERB

public static final MRCPoS VERB

PAST_PARTICIPLE

public static final MRCPoS PAST_PARTICIPLE

PREPOSITION

public static final MRCPoS PREPOSITION

CONJUNCTION

public static final MRCPoS CONJUNCTION

PRONOUN

public static final MRCPoS PRONOUN

INTERJECTION

public static final MRCPoS INTERJECTION

OTHER

public static final MRCPoS OTHER
Method Detail

values

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

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

valueOf

public static MRCPoS valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

init

public static void init()
Initialization procedure required using this class.


posCount

public static int posCount()
Returns the number of part-of-speech tags in the database.


getAll

public static java.util.Set<MRCPoS> getAll()

getMRCPoS

public static MRCPoS getMRCPoS(java.lang.String pos)
Returns the MRCPoS associated with the string, if it exists, else returns null.

Parameters:
pos - part-of-speech string.
Returns:

toString

public java.lang.String toString()
Returns the string symbol of the part-of-speech.

Specified by:
toString in interface PoS
Overrides:
toString in class java.lang.Enum<MRCPoS>
Returns: