This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
Jiagu
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
0
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
update
master
zhangmiao
6 years ago
parent
e5e49d03f3
commit
f3907c18d6
2 changed files
with
5 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
test/test.py
+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)
Write
Preview
Loading…
Cancel
Save