Package opennlp.tools.util.normalizer
Class EmojiCharSequenceNormalizer
java.lang.Object
opennlp.tools.util.normalizer.EmojiCharSequenceNormalizer
- All Implemented Interfaces:
Serializable
,CharSequenceNormalizer
A
EmojiCharSequenceNormalizer
implementation that normalizes text
in terms of emojis. Every encounter will be replaced by a whitespace.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EmojiCharSequenceNormalizer
normalize
(CharSequence text) Normalizes a sequence of characters.
-
Constructor Details
-
EmojiCharSequenceNormalizer
public EmojiCharSequenceNormalizer()
-
-
Method Details
-
getInstance
-
normalize
Description copied from interface:CharSequenceNormalizer
Normalizes a sequence of characters.- Specified by:
normalize
in interfaceCharSequenceNormalizer
- Parameters:
text
- TheCharSequence
to normalize.- Returns:
- The normalized
CharSequence
.
-