Interface TermPipeline

All Known Implementing Classes:
BaseTermPipelineAccessor, CropTerm, DanishSnowballStemmer, DumpTerm, DutchSnowballStemmer, EnglishSnowballStemmer, FinnishSnowballStemmer, FrenchSnowballStemmer, GermanSnowballStemmer, HungarianSnowballStemmer, ItalianSnowballStemmer, NoOp, NorwegianSnowballStemmer, PorterStemmer, PortugueseSnowballStemmer, RemoveDiacritics, 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

    Modifier and Type Method Description
    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 Details

    • 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