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