示例#1
0
 public virtual void test30StemOverrides()
 {
     DutchAnalyzer a = new DutchAnalyzer(Version.LUCENE_30);
     checkOneTerm(a, "fiets", "fiets");
     a = new DutchAnalyzer(Version.LUCENE_30, CharArraySet.EMPTY_SET);
     checkOneTerm(a, "fiets", "fiet"); // only the default ctor populates the dict
 }
示例#2
0
        public virtual void test30StemOverrides()
        {
            DutchAnalyzer a = new DutchAnalyzer(Version.LUCENE_30);

            checkOneTerm(a, "fiets", "fiets");
            a = new DutchAnalyzer(Version.LUCENE_30, CharArraySet.EMPTY_SET);
            checkOneTerm(a, "fiets", "fiet");     // only the default ctor populates the dict
        }
示例#3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testSnowballCorrectness() throws Exception
        public virtual void testSnowballCorrectness()
        {
            Analyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT);

            checkOneTerm(a, "opheffen", "opheff");
            checkOneTerm(a, "opheffende", "opheff");
            checkOneTerm(a, "opheffing", "opheff");
        }
示例#4
0
        public virtual void testOldBuggyStemmer()
        {
            Analyzer a = new DutchAnalyzer(Version.LUCENE_30);

            checkOneTerm(a, "opheffen", "ophef");     // versus snowball 'opheff'
            checkOneTerm(a, "opheffende", "ophef");   // versus snowball 'opheff'
            checkOneTerm(a, "opheffing", "ophef");    // versus snowball 'opheff'
        }
示例#5
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testReusableTokenStream() throws Exception
        public virtual void testReusableTokenStream()
        {
            Analyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT);

            checkOneTerm(a, "lichaamsziek", "lichaamsziek");
            checkOneTerm(a, "lichamelijk", "licham");
            checkOneTerm(a, "lichamelijke", "licham");
            checkOneTerm(a, "lichamelijkheden", "licham");
        }
示例#6
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testExclusionTableViaCtor() throws java.io.IOException
        public virtual void testExclusionTableViaCtor()
        {
            CharArraySet set = new CharArraySet(Version.LUCENE_30, 1, true);

            set.add("lichamelijk");
            DutchAnalyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET, set);

            assertAnalyzesTo(a, "lichamelijk lichamelijke", new string[] { "lichamelijk", "licham" });

            a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET, set);
            assertAnalyzesTo(a, "lichamelijk lichamelijke", new string[] { "lichamelijk", "licham" });
        }
示例#7
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testEmptyStemDictionary() throws java.io.IOException
        public virtual void testEmptyStemDictionary()
        {
            DutchAnalyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET, CharArraySet.EMPTY_SET, CharArrayMap.emptyMap <string>());

            checkOneTerm(a, "fiets", "fiet");
        }
示例#8
0
        /// <summary>
        /// check that the default stem overrides are used
        /// even if you use a non-default ctor.
        /// </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testStemOverrides() throws java.io.IOException
        public virtual void testStemOverrides()
        {
            DutchAnalyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET);

            checkOneTerm(a, "fiets", "fiets");
        }
示例#9
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testReusableTokenStream() throws Exception
 public virtual void testReusableTokenStream()
 {
     Analyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT);
     checkOneTerm(a, "lichaamsziek", "lichaamsziek");
     checkOneTerm(a, "lichamelijk", "licham");
     checkOneTerm(a, "lichamelijke", "licham");
     checkOneTerm(a, "lichamelijkheden", "licham");
 }
示例#10
0
        //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
        //ORIGINAL LINE: public void testExclusionTableViaCtor() throws java.io.IOException
        public virtual void testExclusionTableViaCtor()
        {
            CharArraySet set = new CharArraySet(Version.LUCENE_30, 1, true);
            set.add("lichamelijk");
            DutchAnalyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET, set);
            assertAnalyzesTo(a, "lichamelijk lichamelijke", new string[] {"lichamelijk", "licham"});

            a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET, set);
            assertAnalyzesTo(a, "lichamelijk lichamelijke", new string[] {"lichamelijk", "licham"});
        }
示例#11
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testEmptyStemDictionary() throws java.io.IOException
 public virtual void testEmptyStemDictionary()
 {
     DutchAnalyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET, CharArraySet.EMPTY_SET, CharArrayMap.emptyMap<string>());
     checkOneTerm(a, "fiets", "fiet");
 }
示例#12
0
 public virtual void testBuggyStopwordsCasing()
 {
     DutchAnalyzer a = new DutchAnalyzer(Version.LUCENE_30);
     assertAnalyzesTo(a, "Zelf", new string[] {"zelf"});
 }
示例#13
0
 public virtual void testBuggyStemOverrides()
 {
     DutchAnalyzer a = new DutchAnalyzer(Version.LUCENE_35, CharArraySet.EMPTY_SET);
     checkOneTerm(a, "fiets", "fiet");
 }
示例#14
0
 /// <summary>
 /// check that the default stem overrides are used
 /// even if you use a non-default ctor.
 /// </summary>
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testStemOverrides() throws java.io.IOException
 public virtual void testStemOverrides()
 {
     DutchAnalyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT, CharArraySet.EMPTY_SET);
     checkOneTerm(a, "fiets", "fiets");
 }
示例#15
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testSnowballCorrectness() throws Exception
 public virtual void testSnowballCorrectness()
 {
     Analyzer a = new DutchAnalyzer(TEST_VERSION_CURRENT);
     checkOneTerm(a, "opheffen", "opheff");
     checkOneTerm(a, "opheffende", "opheff");
     checkOneTerm(a, "opheffing", "opheff");
 }
示例#16
0
        public virtual void testBuggyStemOverrides()
        {
            DutchAnalyzer a = new DutchAnalyzer(Version.LUCENE_35, CharArraySet.EMPTY_SET);

            checkOneTerm(a, "fiets", "fiet");
        }
示例#17
0
        /// <summary>
        /// Test that stopwords are not case sensitive
        /// </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testStopwordsCasing() throws java.io.IOException
        public virtual void testStopwordsCasing()
        {
            DutchAnalyzer a = new DutchAnalyzer(Version.LUCENE_31);

            assertAnalyzesTo(a, "Zelf", new string[] { });
        }
示例#18
0
 public virtual void testOldBuggyStemmer()
 {
     Analyzer a = new DutchAnalyzer(Version.LUCENE_30);
     checkOneTerm(a, "opheffen", "ophef"); // versus snowball 'opheff'
     checkOneTerm(a, "opheffende", "ophef"); // versus snowball 'opheff'
     checkOneTerm(a, "opheffing", "ophef"); // versus snowball 'opheff'
 }