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 }
//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"); }
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' }
//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"); }
//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" }); }
//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"); }
/// <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"); }
//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"}); }
//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"); }
public virtual void testBuggyStopwordsCasing() { DutchAnalyzer a = new DutchAnalyzer(Version.LUCENE_30); assertAnalyzesTo(a, "Zelf", new string[] {"zelf"}); }
public virtual void testBuggyStemOverrides() { DutchAnalyzer a = new DutchAnalyzer(Version.LUCENE_35, CharArraySet.EMPTY_SET); checkOneTerm(a, "fiets", "fiet"); }
/// <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[] { }); }