Browse Source

update

master
zhangmiao 6 years ago
parent
commit
f3907c18d6
2 changed files with 5 additions and 2 deletions
  1. +3
    -0
      test/test.py
  2. +2
    -2
      test/test_pos.py

+ 3
- 0
test/test.py View File

@@ -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)



+ 2
- 2
test/test_pos.py View File

@@ -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)


Loading…
Cancel
Save