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
Normalizer that removes URls and email addresses.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UrlCharSequenceNormalizer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UrlCharSequenceNormalizergetInstance()CharSequencenormalize(CharSequence text)normalize a sequence of characters
-
-
-
Method Detail
-
getInstance
public static UrlCharSequenceNormalizer getInstance()
-
normalize
public CharSequence normalize(CharSequence text)
Description copied from interface:CharSequenceNormalizernormalize a sequence of characters- Specified by:
normalizein interfaceCharSequenceNormalizer- Parameters:
text- the char sequence to normalize- Returns:
- the normalized char sequence
-
-