コード例 #1
0
        public void TestInitialize()
        {
            var lemmatizer = new LemmatizerRussian();
            var morph      = new Morpher(lemmatizer);

            morph.Initialize();

            Assert.AreEqual(1, lemmatizer.UseStatistic);
        }
コード例 #2
0
        public void TestGetAccent()
        {
            var lemmatizer = new LemmatizerRussian();
            var morph      = new Morpher(lemmatizer);

            morph.Initialize();

            var accent = morph.GetAccent("переплетено");

            Assert.AreEqual(10, accent);
        }