/// <summary> /// Create filter using the supplied stemming table. /// </summary> /// <param name="in">input token stream</param> /// <param name="stemmer">stemmer</param> /// <param name="minLength">For performance reasons words shorter than minLength /// characters are not processed, but simply returned.</param> public StempelFilter(TokenStream @in, StempelStemmer stemmer, int minLength) : base(@in) { this.stemmer = stemmer; this.minLength = minLength; this.termAtt = AddAttribute<ICharTermAttribute>(); this.keywordAtt = AddAttribute<IKeywordAttribute>(); }
/// <summary> /// Create filter using the supplied stemming table. /// </summary> /// <param name="in">input token stream</param> /// <param name="stemmer">stemmer</param> public StempelFilter(TokenStream @in, StempelStemmer stemmer) : this(@in, stemmer, DEFAULT_MIN_LENGTH) { }