Package opennlp.tools.formats.conllu
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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ConlluTagsetfromFactoryParameter(String parameter) Reads the-tagsetparameter of a command line format factory.static 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.
-
Enum Constant Details
-
U
The universal part-of-speech tags, theUPOScolumn. -
X
The language-specific part-of-speech tags, theXPOScolumn.
-
-
Field Details
-
parameter
The value of the command linetagsetparameter that selects this tagset.
-
-
Constructor Details
-
ConlluTagset
- Parameters:
parameter- The command line value that selects this tagset.
-
-
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.
-
fromFactoryParameter
Reads the-tagsetparameter of a command line format factory.- Parameters:
parameter- The parameter value,uorx.- Returns:
- The tagset.
- Throws:
TerminateToolException- Thrown if the parameter is unknown.
-