Class PersianStemmer

  • public class PersianStemmer
    extends Object
    Stemmer for Persian.

    Stemming is done in-place for efficiency, operating on a termbuffer.

    Stemming is defined as:

    • Removal of attached definite article, conjunction, and prepositions.
    • Stemming of common suffixes.
    • Constructor Detail

      • PersianStemmer

        public PersianStemmer()
    • Method Detail

      • stem

        public int stem​(char[] s,
                        int len)
        Stem an input buffer of Persian text.
        s - input buffer
        len - length of input buffer
        length of input buffer after normalization