Package opennlp.tools.util.normalizer
Class UrlCharSequenceNormalizer
java.lang.Object
opennlp.tools.util.normalizer.UrlCharSequenceNormalizer
- All Implemented Interfaces:
Serializable,CharSequenceNormalizer
A
UrlCharSequenceNormalizer implementation that normalizes text
in terms of URls and email addresses. Every encounter will be replaced by a whitespace.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UrlCharSequenceNormalizernormalize(CharSequence text) Normalizes a sequence of characters.
-
Constructor Details
-
UrlCharSequenceNormalizer
public UrlCharSequenceNormalizer()
-
-
Method Details
-
getInstance
-
normalize
Description copied from interface:CharSequenceNormalizerNormalizes a sequence of characters.- Specified by:
normalizein interfaceCharSequenceNormalizer- Parameters:
text- TheCharSequenceto normalize.- Returns:
- The normalized
CharSequence.
-