MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_text_split

Method test_text_split

tests/test_jieba.py:8–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class TestJieba(unittest.TestCase):
8 def test_text_split(self):
9 sentence = "我爱北京天安门"
10 seg_list = jieba.cut(sentence)
11 seg_list = list(seg_list)
12
13 self.assertEqual(4, len(seg_list))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected