Package opennlp.tools.util.normalizer
Class ShrinkCharSequenceNormalizer
java.lang.Object
opennlp.tools.util.normalizer.ShrinkCharSequenceNormalizer
- All Implemented Interfaces:
Serializable
,CharSequenceNormalizer
A
ShrinkCharSequenceNormalizer
implementation that shrinks repeated spaces / chars in text.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ShrinkCharSequenceNormalizer
normalize
(CharSequence text) Normalizes a sequence of characters.
-
Constructor Details
-
ShrinkCharSequenceNormalizer
public ShrinkCharSequenceNormalizer()
-
-
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
.
-