23 using System.Collections.Generic;
25 using System.Collections;
26 using Lucene.Net.Analysis.Tokenattributes;
28 namespace Lucene.Net.Analysis.De
41 private ISet<string> exclusionSet = null;
50 : this(_in, null, useDin2Stemmer)
59 : this(_in, exclusiontable, false)
73 exclusionSet = exclusiontable;
75 termAtt = AddAttribute<ITermAttribute>();
81 public override bool IncrementToken()
83 if (input.IncrementToken())
85 String term = termAtt.Term;
87 if (exclusionSet == null || !exclusionSet.Contains(term))
89 String s = stemmer.Stem(term);
91 if ((s != null) && !s.Equals(term))
92 termAtt.SetTermBuffer(s);
110 this.stemmer = stemmer;
118 public void SetExclusionTable(ISet<string> exclusiontable)
120 exclusionSet = exclusiontable;