Package opennlp.tools.util.normalizer

# Class UrlCharSequenceNormalizer

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

All Implemented Interfaces:
  `Serializable`, `CharSequenceNormalizer`

public class UrlCharSequenceNormalizer extends Object implements CharSequenceNormalizer
A `UrlCharSequenceNormalizer` implementation that normalizes text in terms of URls and email addresses. Every encounter will be replaced by a whitespace.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UrlCharSequenceNormalizer()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static UrlCharSequenceNormalizer`
  `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

  - ### UrlCharSequenceNormalizer

    public UrlCharSequenceNormalizer()

- ## Method Details

  - ### getInstance

    public static UrlCharSequenceNormalizer 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`.