From f3907c18d6e4ae2f7e30df29d61d0416febe57ce Mon Sep 17 00:00:00 2001 From: zhangmiao Date: Wed, 27 Feb 2019 17:16:04 +0800 Subject: [PATCH] update --- test/test.py | 3 +++ test/test_pos.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/test.py b/test/test.py index 4cc1577..eb75ab4 100644 --- a/test/test.py +++ b/test/test.py @@ -8,6 +8,9 @@ text = '厦门明天会不会下雨' words = jiagu.seg(text) # 分词 print(words) +words = jiagu.seg(text, model="mmseg") # mmseg分词 +print(words) + pos = jiagu.pos(words) # 词性标注 print(pos) diff --git a/test/test_pos.py b/test/test_pos.py index b91df65..2a3dcc9 100644 --- a/test/test_pos.py +++ b/test/test_pos.py @@ -2,9 +2,9 @@ import jiagu text = '厦门明天的天气怎么样' -words = jiagu.seg(text) # 分词 +words = jiagu.seg(text) # 分词 print(words) -pos = jiagu.pos(words) # 词性标注 +pos = jiagu.pos(words) # 词性标注 print(pos)