Class StemmerImpl

java.lang.Object
com.yahoo.language.process.StemmerImpl
All Implemented Interfaces:
Stemmer

public class StemmerImpl extends Object implements Stemmer
Author:
Simon Thoresen Hult
  • Constructor Details

    • StemmerImpl

      public StemmerImpl(Tokenizer tokenizer)
  • Method Details

    • stem

      public List<StemList> stem(String input, LinguisticsParameters parameters)
      Description copied from interface: Stemmer
      Stems the given input.
      Specified by:
      stem in interface Stemmer
      Returns:
      the stems for each segment of the input. Each segment is an entry in the outer list, where that entry contains the possible stems of that segment. For most text there will be a single entry in the returned list, containing either a single stem or (if given StemMode.ALL), multiple alternative stems.