/// <summary> /// test use of exclusion set </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void testExclude() throws java.io.IOException 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"); }
/// <summary> /// test use of exclusion set </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void testExclude() throws java.io.IOException 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"); }
/// <summary> /// test stopwords and stemming </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void testBasics() throws java.io.IOException 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[] { }); }
/// <summary> /// test stopwords and stemming </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void testBasics() throws java.io.IOException 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[] { }); }
/// <summary> /// test use of elisionfilter </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void testContractions() throws java.io.IOException 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" }); }
/// <summary> /// test use of elisionfilter </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void testContractions() throws java.io.IOException 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"}); }