Lucene.Net.Analysis.Hunspell.HunspellStemFilter.HunspellStemFilter C# (CSharp) Method

HunspellStemFilter() public method

Creates a new HunspellStemFilter that will stem tokens from the given TokenStream using affix rules in the provided HunspellDictionary.
public HunspellStemFilter ( TokenStream input, HunspellDictionary dictionary, System.Boolean dedup = true ) : System
input TokenStream TokenStream whose tokens will be stemmed.
dictionary HunspellDictionary HunspellDictionary containing the affix rules and words that will be used to stem the tokens.
dedup System.Boolean true if only unique terms should be output.
return System
        public HunspellStemFilter(TokenStream input, HunspellDictionary dictionary, Boolean dedup = true)
            : base(input) {
            _posIncAtt = (PositionIncrementAttribute)AddAttribute(typeof(PositionIncrementAttribute));
            _termAtt = (TermAttribute)AddAttribute(typeof(TermAttribute));

            _dedup = dedup;
            _stemmer = new HunspellStemmer(dictionary);
        }