Package 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 java.lang.Object implements Stemmer, TermPipeline
Abstract base class for Stemmers that are also TermPipeline instances- Since:
- 3.0
- Author:
- Craig Macdonald and Giovanni Stilo
-
-
Field Summary
Fields Modifier and Type Field Description protected TermPipeline
next
-
Constructor Summary
Constructors Modifier Constructor Description protected
StemmerTermPipeline()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processTerm(java.lang.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.
-
-
-
Field Detail
-
next
protected TermPipeline next
-
-
Method Detail
-
processTerm
public void processTerm(java.lang.String t)
Stems the given term and passes onto the next object in the term pipeline.- Specified by:
processTerm
in interfaceTermPipeline
- 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 interfaceTermPipeline
- Returns:
- return how the reset has gone
-
-