23 using System.Collections.Generic;
25 using System.Collections;
26 using Lucene.Net.Analysis.Tokenattributes;
27 using Lucene.Net.Support;
29 namespace Lucene.Net.Analysis.Nl
49 private ISet<string> exclusions = null;
57 termAtt = AddAttribute<ITermAttribute>();
66 exclusions = exclusiontable;
73 : this(_in, exclusiontable)
75 stemmer.SetStemDictionary(stemdictionary);
81 public override bool IncrementToken()
83 if (input.IncrementToken())
85 String term = termAtt.Term;
88 if (exclusions == null || !exclusions.Contains(term))
90 String s = stemmer.Stem(term);
92 if ((s != null) && !s.Equals(term))
93 termAtt.SetTermBuffer(s);
110 this.stemmer = stemmer;
117 public void SetExclusionTable(ISet<string> exclusiontable)
119 exclusions = exclusiontable;
126 public void SetStemDictionary(IDictionary<string, string> dict)
129 stemmer.SetStemDictionary(dict);