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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShrinkCharSequenceNormalizernormalize(CharSequence text) Normalizes a sequence of characters.
-
Constructor Details
-
ShrinkCharSequenceNormalizer
public ShrinkCharSequenceNormalizer()
-
-
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.
-