Modifier and Type | Method and Description |
---|---|
static PosTag |
fromUniversal(java.lang.String universalTag)
Utility method to convert from the universal pos tags set to our pos tags set.
|
static PosTag |
getTag(char c) |
static PosTag |
getTag(java.lang.String s) |
char |
getValue() |
boolean |
isAdjective() |
boolean |
isAdverb() |
boolean |
isNoun() |
boolean |
isNull() |
boolean |
isVerb() |
java.lang.String |
toUniversal()
Utility method to convert from our pos tags set to the universal pos tags set.
|
char |
value() |
static PosTag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PosTag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PosTag NOUN
public static final PosTag VERB
public static final PosTag ADJECTIVE
public static final PosTag ADVERB
public static final PosTag OTHER
public static PosTag[] values()
for (PosTag c : PosTag.values()) System.out.println(c);
public static PosTag 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 value()
public static PosTag getTag(java.lang.String s)
public static PosTag getTag(char c)
public char getValue()
public boolean isNoun()
public boolean isVerb()
public boolean isAdjective()
public boolean isAdverb()
public boolean isNull()
public java.lang.String toUniversal()
public static PosTag fromUniversal(java.lang.String universalTag)
universalTag
- the tag to be converted