public enum MWEPOS extends java.lang.Enum<MWEPOS>
Enum Constant and Description |
---|
ADJECTIVE |
ADVERB |
NOUN |
OTHER |
PROPER_NOUN |
VERB |
Modifier and Type | Method and Description |
---|---|
static MWEPOS |
fromChar(char identifier)
This convenience method allows retrieval of the
MWEPOS object
given the part of speech character. |
char |
getIdentifier()
Returns the character identifier for the part-of-speech.
|
java.util.Set<java.lang.String> |
getPrefixes()
Returns the set of prefixes for the part-of-speech.
|
static MWEPOS |
toMWEPOS(java.lang.String tag)
This convenience method allows retrieval of the
MWEPOS object
given the part of speech tag as a String. |
static MWEPOS |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MWEPOS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MWEPOS ADJECTIVE
public static final MWEPOS NOUN
public static final MWEPOS OTHER
public static final MWEPOS PROPER_NOUN
public static final MWEPOS ADVERB
public static final MWEPOS VERB
public static MWEPOS[] values()
for (MWEPOS c : MWEPOS.values()) System.out.println(c);
public static MWEPOS valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic char getIdentifier()
public java.util.Set<java.lang.String> getPrefixes()
null
, but may return an empty set.public static MWEPOS fromChar(char identifier)
MWEPOS
object
given the part of speech character.identifier
- the identifier for which the MWEPOS is needed; if no MWEPOS
object corresponds to the specified identifier, this method
returns null
public static MWEPOS toMWEPOS(java.lang.String tag)
MWEPOS
object
given the part of speech tag as a String.tag
- the part-of-speech tag to be converted to an
MWEPOS
objectOTHER
object;
will never return null
java.lang.NullPointerException
- if the argument is null
java.lang.IllegalArgumentException
- if the argument is empty or all whitespaceCopyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.