Exemple #1
0
        public void TestTokenizer()
        {
            var model     = TokenizerTestUtil.CreateMaxentTokenModel();
            var tokenizer = new TokenizerME(model);

            TestTokenizer(tokenizer);
        }
Exemple #2
0
        public void TestTokenizerSimpleModel()
        {
            var model     = TokenizerTestUtil.CreateMaxentTokenModel();
            var tokenizer = new TokenizerME(model);
            var tokens    = tokenizer.Tokenize("test,");

            Assert.AreEqual(2, tokens.Length);
            Assert.AreEqual("test", tokens[0]);
            Assert.AreEqual(",", tokens[1]);
        }