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
Constructors -
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:CharSequenceNormalizerNormalizes a sequence of characters.- Specified by:
normalizein interfaceCharSequenceNormalizer- Parameters:
text- TheCharSequenceto normalize.- Returns:
- The normalized
CharSequence.
-