org.terrier.terms
Class StemmerTermPipeline

java.lang.Object
  extended by 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
protected  TermPipeline next
           
 
Constructor Summary
protected StemmerTermPipeline()
           
 
Method Summary
 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.
 
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
 

Field Detail

next

protected TermPipeline next
Constructor Detail

StemmerTermPipeline

protected StemmerTermPipeline()
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 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.5. Copyright © 2004-2011 University of Glasgow