Package opennlp.tools.util.normalizer
Class TwitterCharSequenceNormalizer
- java.lang.Object
-
- opennlp.tools.util.normalizer.TwitterCharSequenceNormalizer
-
- All Implemented Interfaces:
Serializable
,CharSequenceNormalizer
public class TwitterCharSequenceNormalizer extends Object implements CharSequenceNormalizer
ATwitterCharSequenceNormalizer
implementation that normalizes text in terms of Twitter character patterns. Every encounter will be replaced by a whitespace.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TwitterCharSequenceNormalizer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TwitterCharSequenceNormalizer
getInstance()
CharSequence
normalize(CharSequence text)
Normalizes a sequence of characters.
-
-
-
Method Detail
-
getInstance
public static TwitterCharSequenceNormalizer getInstance()
-
normalize
public CharSequence normalize(CharSequence text)
Description copied from interface:CharSequenceNormalizer
Normalizes a sequence of characters.- Specified by:
normalize
in interfaceCharSequenceNormalizer
- Parameters:
text
- TheCharSequence
to normalize.- Returns:
- The normalized
CharSequence
.
-
-