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
-
Method Summary
Modifier and TypeMethodDescriptionstatic UrlCharSequenceNormalizer
normalize
(CharSequence text) Normalizes a sequence of characters.
-
Constructor Details
-
UrlCharSequenceNormalizer
public UrlCharSequenceNormalizer()
-
-
Method Details
-
getInstance
-
normalize
Description copied from interface:CharSequenceNormalizer
Normalizes a sequence of characters.- Specified by:
normalize
in interfaceCharSequenceNormalizer
- Parameters:
text
- TheCharSequence
to normalize.- Returns:
- The normalized
CharSequence
.
-