|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.core.Filter
org.egothor.parser.filter.LowerCase
public final class LowerCase
This filter transforms all words to lower case.
Field Summary |
---|
Fields inherited from class org.egothor.core.Filter |
---|
prev |
Constructor Summary | |
---|---|
LowerCase(Sequence<Token> prev)
Constructor for the LowerCase object. |
|
LowerCase(Sequence<Token> prev,
java.util.Locale locale)
Construct a LowerCase object using the given localization setting. |
Method Summary | |
---|---|
Token |
action(Token t)
If the name/type of the token is not <EMAIL/PUNCT/NUM> then
transform the text of the token to lower case. |
Methods inherited from class org.egothor.core.Filter |
---|
getPrevTokenizer, next, setPrevTokenizer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LowerCase(Sequence<Token> prev)
prev
- this filter's Tokenizerpublic LowerCase(Sequence<Token> prev, java.util.Locale locale)
prev
- this filter's Tokenizerlocale
- the desired localizationMethod Detail |
---|
public Token action(Token t)
<EMAIL/PUNCT/NUM>
then
transform the text of the token to lower case. In other cases the
token remains untouched.
action
in class Filter
t
- the Token
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |