|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MWEPOS>
edu.mit.jmwe.data.MWEPOS
public enum MWEPOS
Represents the part of speech of a multi-word expression.
Enum Constant Summary | |
---|---|
ADJECTIVE
|
|
ADVERB
|
|
NOUN
|
|
OTHER
|
|
PROPER_NOUN
|
|
VERB
|
Method Summary | |
---|---|
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. |
Set<String> |
getPrefixes()
Returns the set of prefixes for the part-of-speech. |
static MWEPOS |
toMWEPOS(String tag)
This convenience method allows retrieval of the MWEPOS object
given the part of speech tag as a String. |
static MWEPOS |
valueOf(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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
public static final MWEPOS[] values()
for(MWEPOS c : MWEPOS.values()) System.out.println(c);
public static MWEPOS valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic char getIdentifier()
public Set<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(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
object
OTHER
object;
will never return null
NullPointerException
- if the argument is null
IllegalArgumentException
- if the argument is empty or all whitespace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |