Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
fxsjy committed May 2, 2013
1 parent a9f92e3 commit c1bf815
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/test_userdict.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
jieba.load_userdict("userdict.txt")
import jieba.posseg as pseg

test_sent = "李小福是创新办主任也是云计算方面的专家"
test_sent = "李小福是创新办主任也是云计算方面的专家;"
test_sent += "例如我输入一个带“韩玉赏鉴”的标题,在自定义词库中也增加了此词为N类型"
words = jieba.cut(test_sent)
for w in words:
print w
Expand Down
3 changes: 2 additions & 1 deletion test/userdict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
李小福 2 nr
创新办 3 i
easy_install 3 eng
好用 300
好用 300
韩玉赏鉴 3 nz

0 comments on commit c1bf815

Please sign in to comment.