Analyzer for Turkish.
Inheritance: Lucene.Net.Analysis.Util.StopwordAnalyzerBase
 public virtual void TestExclude()
 {
     CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, AsSet("ağacı"), false);
     Analyzer a = new TurkishAnalyzer(TEST_VERSION_CURRENT, TurkishAnalyzer.DefaultStopSet, exclusionSet);
     CheckOneTerm(a, "ağacı", "ağacı");
     CheckOneTerm(a, "ağaç", "ağaç");
 }
Ejemplo n.º 2
0
        public virtual void TestExclude()
        {
            CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, AsSet("ağacı"), false);
            Analyzer     a            = new TurkishAnalyzer(TEST_VERSION_CURRENT, TurkishAnalyzer.DefaultStopSet, exclusionSet);

            CheckOneTerm(a, "ağacı", "ağacı");
            CheckOneTerm(a, "ağaç", "ağaç");
        }
 public virtual void TestBasics()
 {
     Analyzer a = new TurkishAnalyzer(TEST_VERSION_CURRENT);
     // stemming
     CheckOneTerm(a, "ağacı", "ağaç");
     CheckOneTerm(a, "ağaç", "ağaç");
     // stopword
     AssertAnalyzesTo(a, "dolayı", new string[] { });
     // apostrophes
     CheckOneTerm(a, "Kıbrıs'ta", "kıbrıs");
     AssertAnalyzesTo(a, "Van Gölü'ne", new string[] { "van", "göl" });
 }
Ejemplo n.º 4
0
        public virtual void TestBasics()
        {
            Analyzer a = new TurkishAnalyzer(TEST_VERSION_CURRENT);

            // stemming
            CheckOneTerm(a, "ağacı", "ağaç");
            CheckOneTerm(a, "ağaç", "ağaç");
            // stopword
            AssertAnalyzesTo(a, "dolayı", new string[] { });
            // apostrophes
            CheckOneTerm(a, "Kıbrıs'ta", "kıbrıs");
            AssertAnalyzesTo(a, "Van Gölü'ne", new string[] { "van", "göl" });
        }