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[] { });
        }