Enum Class ConlluTagset

java.lang.Object
java.lang.Enum<ConlluTagset>
opennlp.tools.formats.conllu.ConlluTagset
All Implemented Interfaces:
Serializable, Comparable<ConlluTagset>, Constable

public enum ConlluTagset extends Enum<ConlluTagset>
The part-of-speech tag column of a CoNLL-U file: the universal tags or the language-specific tags.
  • Enum Constant Details

    • U

      public static final ConlluTagset U
      The universal part-of-speech tags, the UPOS column.
    • X

      public static final ConlluTagset X
      The language-specific part-of-speech tags, the XPOS column.
  • Method Details

    • values

      public static ConlluTagset[] 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

      public static ConlluTagset valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromParameter

      public static ConlluTagset fromParameter(String parameter)
      Resolves the value of a command line tagset parameter.
      Parameters:
      parameter - u for the universal tags or x for the language-specific tags.
      Returns:
      The matching ConlluTagset. Never null.
      Throws:
      IllegalArgumentException - Thrown if parameter is neither u nor x.