|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.terms.CropTerm
public final class CropTerm
Reduces the size of terms passing through the term pipeline to the maximum allowed size for this indexing run. The crop term pipeline class has been provided as some term pipeline implementators (eg SnowballGermanStemmer) may actually lengthen words that did previously fit in the indexing.
Field Summary | |
---|---|
protected static int |
maxLen
Maximum length a term can be |
protected TermPipeline |
next
The next object in the term pipeline |
Constructor Summary | |
---|---|
CropTerm(TermPipeline _next)
Creates a new CropTerm pipeline object, which can be used in the term pipeline |
Method Summary | |
---|---|
void |
processTerm(java.lang.String t)
Reduces the term to the maximum allowed size for this indexing run |
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 |
Field Detail |
---|
protected static final int maxLen
protected final TermPipeline next
Constructor Detail |
---|
public CropTerm(TermPipeline _next)
_next
- The next termpipeline object to pass the term onto.Method Detail |
---|
public void processTerm(java.lang.String t)
processTerm
in interface TermPipeline
t
- String the term to check the length of.public boolean reset()
reset
in interface TermPipeline
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |