Package opennlp.tools.util.normalizer

# Class ShrinkCharSequenceNormalizer

java.lang.Object
opennlp.tools.util.normalizer.ShrinkCharSequenceNormalizer

All Implemented Interfaces:
  `Serializable`, `opennlp.tools.util.normalizer.CharSequenceNormalizer`

public class ShrinkCharSequenceNormalizer extends Object implements opennlp.tools.util.normalizer.CharSequenceNormalizer
A `ShrinkCharSequenceNormalizer` implementation that shrinks repeated spaces / chars in text.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ShrinkCharSequenceNormalizer()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static ShrinkCharSequenceNormalizer`
  `getInstance()`
  `CharSequence`
  `normalize(CharSequence text)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ShrinkCharSequenceNormalizer

    public ShrinkCharSequenceNormalizer()

- ## Method Details

  - ### getInstance

    public static ShrinkCharSequenceNormalizer getInstance()

  - ### normalize

    public CharSequence normalize(CharSequence text)
    Specified by:
      `normalize` in interface `opennlp.tools.util.normalizer.CharSequenceNormalizer`