コード例 #1
0
 public virtual void TestExclude()
 {
     CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, AsSet("llengües"), false);
     Analyzer a = new CatalanAnalyzer(TEST_VERSION_CURRENT, CatalanAnalyzer.DefaultStopSet, exclusionSet);
     CheckOneTerm(a, "llengües", "llengües");
     CheckOneTerm(a, "llengua", "llengu");
 }
コード例 #2
0
        public virtual void TestExclude()
        {
            CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, AsSet("llengües"), false);
            Analyzer     a            = new CatalanAnalyzer(TEST_VERSION_CURRENT, CatalanAnalyzer.DefaultStopSet, exclusionSet);

            CheckOneTerm(a, "llengües", "llengües");
            CheckOneTerm(a, "llengua", "llengu");
        }
コード例 #3
0
 public virtual void TestBasics()
 {
     Analyzer a = new CatalanAnalyzer(TEST_VERSION_CURRENT);
     // stemming
     CheckOneTerm(a, "llengües", "llengu");
     CheckOneTerm(a, "llengua", "llengu");
     // stopword
     AssertAnalyzesTo(a, "un", new string[] { });
 }
コード例 #4
0
        public virtual void TestBasics()
        {
            Analyzer a = new CatalanAnalyzer(TEST_VERSION_CURRENT);

            // stemming
            CheckOneTerm(a, "llengües", "llengu");
            CheckOneTerm(a, "llengua", "llengu");
            // stopword
            AssertAnalyzesTo(a, "un", new string[] { });
        }
コード例 #5
0
        public virtual void TestContractions()
        {
            Analyzer a = new CatalanAnalyzer(TEST_VERSION_CURRENT);

            AssertAnalyzesTo(a, "Diccionari de l'Institut d'Estudis Catalans", new string[] { "diccion", "inst", "estud", "catalan" });
        }
コード例 #6
0
 public virtual void TestContractions()
 {
     Analyzer a = new CatalanAnalyzer(TEST_VERSION_CURRENT);
     AssertAnalyzesTo(a, "Diccionari de l'Institut d'Estudis Catalans", new string[] { "diccion", "inst", "estud", "catalan" });
 }