Package opennlp.tools.tokenize.uax29
Enum Class WordType
- All Implemented Interfaces:
Serializable,Comparable<WordType>,Constable
The category of a word token.
ALPHANUMERIC and
NUMERIC cover letter and digit words; the remaining categories identify scripts and
emoji that benefit from script-specific handling. The boundaries themselves follow the Unicode
release shipped with WordSegmenter.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA token that contains at least one letter (optionally mixed with digits and connectors).An emoji, emoji sequence, or regional-indicator flag.A Hangul token.A Hiragana token.A token containing a Han ideograph (one ideograph per token under UAX #29 segmentation).A Katakana token.A token made up entirely of digits and numeric connectors.A token in a Southeast Asian script that requires dictionary segmentation (Thai, Lao, ...). -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ALPHANUMERIC
A token that contains at least one letter (optionally mixed with digits and connectors). -
NUMERIC
A token made up entirely of digits and numeric connectors. -
IDEOGRAPHIC
A token containing a Han ideograph (one ideograph per token under UAX #29 segmentation). -
HIRAGANA
A Hiragana token. -
KATAKANA
A Katakana token. -
HANGUL
A Hangul token. -
SOUTHEAST_ASIAN
A token in a Southeast Asian script that requires dictionary segmentation (Thai, Lao, ...). -
EMOJI
An emoji, emoji sequence, or regional-indicator flag.
-
-
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
-