Package opennlp.tools.util.normalizer
Enum Class EmojiCategory
- All Implemented Interfaces:
Serializable,Comparable<EmojiCategory>,Constable
The document-category hint of an annotated emoji, one constant per group header of the upstream
Unicode
emoji-test.txt (Emoji Keyboard/Display Test Data for
UTS #51). The group level of that file
is already a document-category-shaped taxonomy, so this enum mirrors it one to one rather than
inventing a competing one; the constant a bundled record carries is provenance-tagged
UCD:emoji-test in emoji-annotations.txt.
All upstream groups are represented, including those the bundled data does not populate yet,
so growing the data never needs an enum change. See EmojiEntityType for the finer,
subgroup-derived projection of the same upstream table.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUpstream groupActivities: events, sports, games, and arts.Upstream groupAnimals & Nature: animals, plants, and nature symbols.Upstream groupComponent: skin tone and hair components, not free-standing symbols.Upstream groupFlags: flag emoji; assigned by the derived layer, not by bundled rows.Upstream groupFood & Drink: food, drink, and dishware.Upstream groupObjects: clothing, tools, instruments, and other objects.Upstream groupPeople & Body: people, body parts, hand gestures, roles.Upstream groupSmileys & Emotion: faces, hearts, and other emotion symbols.Upstream groupSymbols: signs, arrows, punctuation-like and abstract symbols.Upstream groupTravel & Places: places, buildings, transport, sky and weather. -
Method Summary
Modifier and TypeMethodDescriptionstatic EmojiCategoryReturns the enum constant of this class with the specified name.static EmojiCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SMILEYS_AND_EMOTION
Upstream groupSmileys & Emotion: faces, hearts, and other emotion symbols. -
PEOPLE_AND_BODY
Upstream groupPeople & Body: people, body parts, hand gestures, roles. -
COMPONENT
Upstream groupComponent: skin tone and hair components, not free-standing symbols. -
ANIMALS_AND_NATURE
Upstream groupAnimals & Nature: animals, plants, and nature symbols. -
FOOD_AND_DRINK
Upstream groupFood & Drink: food, drink, and dishware. -
TRAVEL_AND_PLACES
Upstream groupTravel & Places: places, buildings, transport, sky and weather. -
ACTIVITIES
Upstream groupActivities: events, sports, games, and arts. -
OBJECTS
Upstream groupObjects: clothing, tools, instruments, and other objects. -
SYMBOLS
Upstream groupSymbols: signs, arrows, punctuation-like and abstract symbols. -
FLAGS
Upstream groupFlags: flag emoji; assigned by the derived layer, not by bundled rows.
-
-
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
-