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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ShrinkCharSequenceNormalizernormalize(CharSequence text) Normalizes a sequence of characters.
- 
Constructor Details- 
ShrinkCharSequenceNormalizerpublic ShrinkCharSequenceNormalizer()
 
- 
- 
Method Details- 
getInstance
- 
normalizeDescription copied from interface:CharSequenceNormalizerNormalizes a sequence of characters.- Specified by:
- normalizein interface- CharSequenceNormalizer
- Parameters:
- text- The- CharSequenceto normalize.
- Returns:
- The normalized CharSequence.
 
 
-