Class SnowballFilter

    • Constructor Detail

      • SnowballFilter

        public SnowballFilter​(TokenStream input,
                              org.tartarus.snowball.SnowballProgram stemmer)
      • SnowballFilter

        public SnowballFilter​(TokenStream in,
                              String name)
        Construct the named stemming filter. Available stemmers are listed in org.tartarus.snowball.ext. The name of a stemmer is the part of the class name before "Stemmer", e.g., the stemmer in EnglishStemmer is named "English".
        in - the input tokens to stem
        name - the name of a stemmer
    • Method Detail

      • incrementToken

        public final boolean incrementToken()
                                     throws IOException
        Returns the next input Token, after being stemmed
        Specified by:
        incrementToken in class TokenStream
        false for end of stream; true otherwise