|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.terms.SkipTermPipeline
public class SkipTermPipeline
Class that identified tokens which should not be passed down the entire term pipeline, and instead passed onto a specified stage instead. Tokens are autmatically lowercased if lowercase is set (as it is by default). If no tokens are specified, then no tokens are omitted from the term pipeline.
Properties
Constructor Summary | |
---|---|
SkipTermPipeline(TermPipeline _next,
TermPipeline _last)
Instantiate this object, using properties to define tokens. |
|
SkipTermPipeline(TermPipeline _next,
TermPipeline _last,
java.lang.String[] _skipTokens)
Instantiate this object. |
Method Summary | |
---|---|
void |
processTerm(java.lang.String term)
Processes this token. |
boolean |
reset()
Implements the default operation for all TermPipeline subclasses; By default do nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SkipTermPipeline(TermPipeline _next, TermPipeline _last)
public SkipTermPipeline(TermPipeline _next, TermPipeline _last, java.lang.String[] _skipTokens)
Method Detail |
---|
public void processTerm(java.lang.String term)
processTerm
in interface TermPipeline
term
- public boolean reset()
reset
in interface TermPipeline
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |