/// <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("արծիվներ"), false);
     Analyzer a = new ArmenianAnalyzer(TEST_VERSION_CURRENT, ArmenianAnalyzer.DefaultStopSet, exclusionSet);
     checkOneTerm(a, "արծիվներ", "արծիվներ");
     checkOneTerm(a, "արծիվ", "արծ");
 }
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("արծիվներ"), false);
            Analyzer     a            = new ArmenianAnalyzer(TEST_VERSION_CURRENT, ArmenianAnalyzer.DefaultStopSet, exclusionSet);

            checkOneTerm(a, "արծիվներ", "արծիվներ");
            checkOneTerm(a, "արծիվ", "արծ");
        }
 /// <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 ArmenianAnalyzer(TEST_VERSION_CURRENT);
     // stemming
     checkOneTerm(a, "արծիվ", "արծ");
     checkOneTerm(a, "արծիվներ", "արծ");
     // stopword
     assertAnalyzesTo(a, "է", 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 ArmenianAnalyzer(TEST_VERSION_CURRENT);

            // stemming
            checkOneTerm(a, "արծիվ", "արծ");
            checkOneTerm(a, "արծիվներ", "արծ");
            // stopword
            assertAnalyzesTo(a, "է", new string[] { });
        }