Package opennlp.tools.util.normalizer

# Class NumberCharSequenceNormalizer

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

All Implemented Interfaces:
  `Serializable`, `CharSequenceNormalizer`

public class NumberCharSequenceNormalizer extends Object implements CharSequenceNormalizer
A `NumberCharSequenceNormalizer` implementation that normalizes text in terms of numbers. Every encounter will be replaced by a whitespace.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NumberCharSequenceNormalizer()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static NumberCharSequenceNormalizer`
  `getInstance()`
  `CharSequence`
  `normalize(CharSequence text)`
  Normalizes a sequence of characters.

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

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

- ## Constructor Details

  - ### NumberCharSequenceNormalizer

    public NumberCharSequenceNormalizer()

- ## Method Details

  - ### getInstance

    public static NumberCharSequenceNormalizer getInstance()

  - ### normalize

    public CharSequence normalize(CharSequence text)
    Description copied from interface: `CharSequenceNormalizer`
    Normalizes a sequence of characters.
    Specified by:
      `normalize` in interface `CharSequenceNormalizer`
    Parameters:
      `text` - The `CharSequence` to normalize.
    Returns:
      The normalized `CharSequence`.