org.terrier.terms
Class StemmerTermPipeline
java.lang.Object
org.terrier.terms.StemmerTermPipeline
- All Implemented Interfaces:
- Stemmer, TermPipeline
- Direct Known Subclasses:
- PorterStemmer, SnowballStemmer, TRv2PorterStemmer
public abstract class StemmerTermPipeline
- extends Object
- implements Stemmer, TermPipeline
Abstract base class for Stemmers that are also TermPipeline instances
- Since:
- 3.0
- Author:
- Craig Macdonald and Giovanni Stilo
Method Summary |
void |
processTerm(String t)
Stems the given term and passes onto the next object in the term pipeline. |
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 |
Methods inherited from interface org.terrier.terms.Stemmer |
stem |
next
protected TermPipeline next
StemmerTermPipeline
protected StemmerTermPipeline()
processTerm
public void processTerm(String t)
- Stems the given term and passes onto the next object in the term pipeline.
- Specified by:
processTerm
in interface TermPipeline
- Parameters:
t
- String the term to stem.
reset
public boolean reset()
- Implements the default operation for all TermPipeline subclasses;
By default do nothing.
This method should be overrided by any TermPipeline that want to implements doc/query
oriented lifecycle.
- Specified by:
reset
in interface TermPipeline
- Returns:
- return how the reset has gone
Terrier 3.6. Copyright © 2004-2011 University of Glasgow