public class LowerCaseConvertor extends java.lang.Object implements TextProcessor
LowerCaseConvertor
converts every character of the input tokens to it's respective lower
case character.Constructor and Description |
---|
LowerCaseConvertor()
Creates a
TextProcessor that converts input text into lower case character with the
default english Locale . |
LowerCaseConvertor(java.util.Locale locale)
Creates a
TextProcessor that converts input text into lower case character given the
Locale . |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
preprocess(java.util.List<java.lang.String> tokens)
Applies the preprocessing defined to the given input tokens.
|
public LowerCaseConvertor(java.util.Locale locale)
TextProcessor
that converts input text into lower case character given the
Locale
.locale
- the expected Locale
of the input textpublic LowerCaseConvertor()
TextProcessor
that converts input text into lower case character with the
default english Locale
.public java.util.List<java.lang.String> preprocess(java.util.List<java.lang.String> tokens)
preprocess
in interface TextProcessor
tokens
- the tokens created after the input text is tokenized