Analyzer for Hungarian.
Наследование: Lucene.Net.Analysis.Util.StopwordAnalyzerBase
 public virtual void TestExclude()
 {
     CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, AsSet("babakocsi"), false);
     Analyzer a = new HungarianAnalyzer(TEST_VERSION_CURRENT, HungarianAnalyzer.DefaultStopSet, exclusionSet);
     CheckOneTerm(a, "babakocsi", "babakocsi");
     CheckOneTerm(a, "babakocsijáért", "babakocs");
 }
Пример #2
0
        public virtual void TestExclude()
        {
            CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, AsSet("babakocsi"), false);
            Analyzer     a            = new HungarianAnalyzer(TEST_VERSION_CURRENT, HungarianAnalyzer.DefaultStopSet, exclusionSet);

            CheckOneTerm(a, "babakocsi", "babakocsi");
            CheckOneTerm(a, "babakocsijáért", "babakocs");
        }
 public virtual void TestBasics()
 {
     Analyzer a = new HungarianAnalyzer(TEST_VERSION_CURRENT);
     // stemming
     CheckOneTerm(a, "babakocsi", "babakocs");
     CheckOneTerm(a, "babakocsijáért", "babakocs");
     // stopword
     AssertAnalyzesTo(a, "által", new string[] { });
 }
Пример #4
0
        public virtual void TestBasics()
        {
            Analyzer a = new HungarianAnalyzer(TEST_VERSION_CURRENT);

            // stemming
            CheckOneTerm(a, "babakocsi", "babakocs");
            CheckOneTerm(a, "babakocsijáért", "babakocs");
            // stopword
            AssertAnalyzesTo(a, "által", new string[] { });
        }