Enum Class ConlluTagset
- All Implemented Interfaces:
Serializable, Comparable<ConlluTagset>, Constable
The part-of-speech tag column of a CoNLL-U file: the universal tags or the
language-specific tags.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ConlluTagsetfromParameter(String parameter) Resolves the value of a command linetagsetparameter.static ConlluTagsetReturns the enum constant of this class with the specified name.static ConlluTagset[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
U
The universal part-of-speech tags, theUPOScolumn. -
X
The language-specific part-of-speech tags, theXPOScolumn.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
fromParameter
Resolves the value of a command linetagsetparameter.- Parameters:
parameter-ufor the universal tags orxfor the language-specific tags.- Returns:
- The matching
ConlluTagset. Nevernull. - Throws:
IllegalArgumentException- Thrown ifparameteris neitherunorx.
-