|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.core.Filter
public class Filter
This object works as a tokenizer filter. It can be used for filtering stop words.
Field Summary | |
---|---|
Sequence<Token> |
prev
The Tokenizer used by Filter. |
Constructor Summary | |
---|---|
Filter(Sequence<Token> prev)
Constructor for the Filter object. |
Method Summary | |
---|---|
Token |
action(Token t)
Used for changing tokens of the input tokenizer. |
Sequence<Token> |
getPrevTokenizer()
Return the tokenizer this filter reads from. |
Token |
next()
The next token of input tokenizer is modified by action(org.egothor.core.Token) and the product is also the product of
this method. |
void |
setPrevTokenizer(Sequence<Token> prev)
Set the tokenizer this filter reads from. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Sequence<Token> prev
Constructor Detail |
---|
public Filter(Sequence<Token> prev)
prev
- this object's TokenizerMethod Detail |
---|
public final void setPrevTokenizer(Sequence<Token> prev)
prev
- the new Tokenizerpublic final Sequence<Token> getPrevTokenizer()
public Token next()
action(org.egothor.core.Token)
and the product is also the product of
this method.
next
in interface Sequence<Token>
public Token action(Token t)
t
- the Token
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |