Package opennlp.tools.util.normalizer
Class ShrinkCharSequenceNormalizer
- java.lang.Object
-
- opennlp.tools.util.normalizer.ShrinkCharSequenceNormalizer
-
- All Implemented Interfaces:
Serializable
,CharSequenceNormalizer
public class ShrinkCharSequenceNormalizer extends Object implements CharSequenceNormalizer
AShrinkCharSequenceNormalizer
implementation that shrinks repeated spaces / chars in text.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShrinkCharSequenceNormalizer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ShrinkCharSequenceNormalizer
getInstance()
CharSequence
normalize(CharSequence text)
Normalizes a sequence of characters.
-
-
-
Method Detail
-
getInstance
public static ShrinkCharSequenceNormalizer 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
.
-
-