23 using System.Collections.Generic;
26 using System.Collections;
28 using Lucene.Net.Analysis;
29 using Lucene.Net.Analysis.Tokenattributes;
31 namespace Lucene.Net.Analysis.Fr
52 private ISet<string> exclusions = null;
61 termAtt = AddAttribute<ITermAttribute>();
68 exclusions = exclusiontable;
74 public override bool IncrementToken()
76 if (input.IncrementToken())
78 String term = termAtt.Term;
81 if (exclusions == null || !exclusions.Contains(term))
83 String s = stemmer.Stem(term);
85 if ((s != null) && !s.Equals(term))
86 termAtt.SetTermBuffer(s);
102 this.stemmer = stemmer;
108 public void SetExclusionTable(IDictionary<string, string> exclusiontable)
110 exclusions = Support.Compatibility.SetFactory.CreateHashSet(exclusiontable.Keys);