mirror of
https://github.com/fxsjy/jieba.git
synced 2025-07-10 00:01:33 +08:00
update test case
This commit is contained in:
parent
a9f92e37ce
commit
c1bf815343
@ -5,7 +5,8 @@ import jieba
|
|||||||
jieba.load_userdict("userdict.txt")
|
jieba.load_userdict("userdict.txt")
|
||||||
import jieba.posseg as pseg
|
import jieba.posseg as pseg
|
||||||
|
|
||||||
test_sent = "李小福是创新办主任也是云计算方面的专家"
|
test_sent = "李小福是创新办主任也是云计算方面的专家;"
|
||||||
|
test_sent += "例如我输入一个带“韩玉赏鉴”的标题,在自定义词库中也增加了此词为N类型"
|
||||||
words = jieba.cut(test_sent)
|
words = jieba.cut(test_sent)
|
||||||
for w in words:
|
for w in words:
|
||||||
print w
|
print w
|
||||||
|
@ -2,4 +2,5 @@
|
|||||||
李小福 2 nr
|
李小福 2 nr
|
||||||
创新办 3 i
|
创新办 3 i
|
||||||
easy_install 3 eng
|
easy_install 3 eng
|
||||||
好用 300
|
好用 300
|
||||||
|
韩玉赏鉴 3 nz
|
Loading…
x
Reference in New Issue
Block a user