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");
 }
示例#2
0
        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");
        }
 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[] { });
 }
示例#4
0
        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[] { });
        }
 public virtual void TestHyphens()
 {
     Analyzer a = new IrishAnalyzer(TEST_VERSION_CURRENT);
     AssertAnalyzesTo(a, "n-athair", new string[] { "athair" }, new int[] { 2 });
 }
 public virtual void TestContractions()
 {
     Analyzer a = new IrishAnalyzer(TEST_VERSION_CURRENT);
     AssertAnalyzesTo(a, "b'fhearr m'athair", new string[] { "fearr", "athair" });
 }
示例#7
0
        public virtual void TestHyphens()
        {
            Analyzer a = new IrishAnalyzer(TEST_VERSION_CURRENT);

            AssertAnalyzesTo(a, "n-athair", new string[] { "athair" }, new int[] { 2 });
        }
示例#8
0
        public virtual void TestContractions()
        {
            Analyzer a = new IrishAnalyzer(TEST_VERSION_CURRENT);

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