Package com.optimaize.langdetect.text
Class UrlTextFilter
java.lang.Object
com.optimaize.langdetect.text.UrlTextFilter
- All Implemented Interfaces:
TextFilter
Removes URLs and email addresses from the text.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final UrlTextFilter
private static final Pattern
private static final Pattern
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
URL_REGEX
-
MAIL_REGEX
-
INSTANCE
-
-
Constructor Details
-
UrlTextFilter
private UrlTextFilter()
-
-
Method Details
-
getInstance
-
filter
- Specified by:
filter
in interfaceTextFilter
-