org.terrier.terms
Interface TermPipeline

All Known Implementing Classes:
BaseTermPipelineAccessor, BasicIndexer.BasicTermProcessor, BasicIndexer.FieldTermProcessor, BlockIndexer.BasicTermProcessor, BlockIndexer.DelimFieldTermProcessor, BlockIndexer.DelimTermProcessor, BlockIndexer.FieldTermProcessor, BlockSinglePassIndexer.BasicTermProcessor, BlockSinglePassIndexer.DelimFieldTermProcessor, BlockSinglePassIndexer.DelimTermProcessor, BlockSinglePassIndexer.FieldTermProcessor, CropTerm, DanishSnowballStemmer, DumpTerm, DutchSnowballStemmer, EnglishSnowballStemmer, FinnishSnowballStemmer, FrenchSnowballStemmer, GermanSnowballStemmer, Hadoop_BlockSinglePassIndexer.BasicTermProcessor, Hadoop_BlockSinglePassIndexer.DelimFieldTermProcessor, Hadoop_BlockSinglePassIndexer.DelimTermProcessor, Hadoop_BlockSinglePassIndexer.FieldTermProcessor, HungarianSnowballStemmer, ItalianSnowballStemmer, NoOp, NorwegianSnowballStemmer, PorterStemmer, PortugueseSnowballStemmer, RomanianSnowballStemmer, RussianSnowballStemmer, SkipTermPipeline, SnowballStemmer, SpanishSnowballStemmer, StemmerTermPipeline, Stopwords, SwedishSnowballStemmer, TRv2PorterStemmer, TRv2WeakPorterStemmer, TurkishSnowballStemmer, WeakPorterStemmer

public interface TermPipeline

Models the concept of a component in a pipeline of term processors. Classes that implement this interface could be stemming algorithms, stopwords removers, or acronym expanders just to mention few examples.

Author:
Craig Macdonald

Method Summary
 void processTerm(java.lang.String t)
          Processes a term using the current term pipeline component and passes the output to the next pipeline component, if the term has not been discarded.
 boolean reset()
          This method implements the specific rest option needed to implements query or doc oriented policy.
 

Method Detail

processTerm

void processTerm(java.lang.String t)
Processes a term using the current term pipeline component and passes the output to the next pipeline component, if the term has not been discarded.

Parameters:
t - String the term to process.

reset

boolean reset()
This method implements the specific rest option needed to implements query or doc oriented policy.

Returns:
results of the operation


Terrier 3.5. Copyright © 2004-2011 University of Glasgow