Class TRv2WeakPorterStemmer

  • All Implemented Interfaces:
    Stemmer, TermPipeline

    public class TRv2WeakPorterStemmer
    extends TRv2PorterStemmer
    An implementation of the Porter stemming algorithm that uses only the first step of the algorithm.
    Author:
    Craig Macdonald & Gianni Amati & Vassilis Plachouras
    • Constructor Detail

      • TRv2WeakPorterStemmer

        public TRv2WeakPorterStemmer​(TermPipeline next)
        Constructs an instance of the TRv2WeakPorterStemmer.
        Parameters:
        next -
    • Method Detail

      • stem

        public java.lang.String stem​(java.lang.String s)
        Returns the stem of a given term, after applying the first step of Porter's stemming algorithm.
        Specified by:
        stem in interface Stemmer
        Overrides:
        stem in class TRv2PorterStemmer
        Parameters:
        s - String the term to be stemmed.
        Returns:
        String the stem of a given term.