diff --git a/test/test_userdict.py b/test/test_userdict.py index 4b62d424..7a512e5e 100644 --- a/test/test_userdict.py +++ b/test/test_userdict.py @@ -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 diff --git a/test/userdict.txt b/test/userdict.txt index 4632566b..73d2d58c 100644 --- a/test/userdict.txt +++ b/test/userdict.txt @@ -2,4 +2,5 @@ 李小福 2 nr 创新办 3 i easy_install 3 eng -好用 300 \ No newline at end of file +好用 300 +韩玉赏鉴 3 nz \ No newline at end of file