Package opennlp.tools.util.normalizer
Class TwitterCharSequenceNormalizer
java.lang.Object
opennlp.tools.util.normalizer.TwitterCharSequenceNormalizer
- All Implemented Interfaces:
Serializable
,CharSequenceNormalizer
A
TwitterCharSequenceNormalizer
implementation that normalizes text
in terms of Twitter character patterns. Every encounter will be replaced by a whitespace.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnormalize
(CharSequence text) Normalizes a sequence of characters.
-
Constructor Details
-
TwitterCharSequenceNormalizer
public TwitterCharSequenceNormalizer()
-
-
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
.
-