/// <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("feirmeoireacht"), false);
     Analyzer a = new IrishAnalyzer(TEST_VERSION_CURRENT, IrishAnalyzer.DefaultStopSet, exclusionSet);
     checkOneTerm(a, "feirmeoireacht", "feirmeoireacht");
     checkOneTerm(a, "siopadóireacht", "siopadóir");
 }
Beispiel #2
0
        /// <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("feirmeoireacht"), false);
            Analyzer     a            = new IrishAnalyzer(TEST_VERSION_CURRENT, IrishAnalyzer.DefaultStopSet, exclusionSet);

            checkOneTerm(a, "feirmeoireacht", "feirmeoireacht");
            checkOneTerm(a, "siopadóireacht", "siopadóir");
        }
 /// <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 IrishAnalyzer(TEST_VERSION_CURRENT);
     // stemming
     checkOneTerm(a, "siopadóireacht", "siopadóir");
     checkOneTerm(a, "síceapatacha", "síceapaite");
     // stopword
     assertAnalyzesTo(a, "le", new string[] { });
 }
Beispiel #4
0
        /// <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 IrishAnalyzer(TEST_VERSION_CURRENT);

            // stemming
            checkOneTerm(a, "siopadóireacht", "siopadóir");
            checkOneTerm(a, "síceapatacha", "síceapaite");
            // stopword
            assertAnalyzesTo(a, "le", new string[] { });
        }
 /// <summary>
 /// test special hyphen handling </summary>
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void testHyphens() throws java.io.IOException
 public virtual void testHyphens()
 {
     Analyzer a = new IrishAnalyzer(TEST_VERSION_CURRENT);
     assertAnalyzesTo(a, "n-athair", new string[] {"athair"}, new int[] {2});
 }
 /// <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 IrishAnalyzer(TEST_VERSION_CURRENT);
     assertAnalyzesTo(a, "b'fhearr m'athair", new string[] {"fearr", "athair"});
 }
Beispiel #7
0
        /// <summary>
        /// test special hyphen handling </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testHyphens() throws java.io.IOException
        public virtual void testHyphens()
        {
            Analyzer a = new IrishAnalyzer(TEST_VERSION_CURRENT);

            assertAnalyzesTo(a, "n-athair", new string[] { "athair" }, new int[] { 2 });
        }
Beispiel #8
0
        /// <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 IrishAnalyzer(TEST_VERSION_CURRENT);

            assertAnalyzesTo(a, "b'fhearr m'athair", new string[] { "fearr", "athair" });
        }