MCPcopy Create free account
hub / github.com/hankcs/HanLP / test_transform

Method test_transform

tests/test_mtl.py:84–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 ['如何', '评价', 'iPad Pro', '?', 'iPad Pro', '有', '2个空格'])
83
84 def test_transform(self):
85 task = 'tok/fine'
86 mtl[task].dict_force = {'用户ID'}
87 self.assertSequenceEqual(mtl("我的用户ID跟你的用户id不同", tasks=task)[task],
88 ['我', '的', '用户ID', '跟', '你', '的', '用户', 'id', '不同'])
89
90 def test_tok_offset(self):
91 task = 'tok/fine'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected