55 Star 205 Fork 75

Yener / Jiagu

测试样例无法运行

Backlog
帝都老白  Opened this issue

按照说明进行安装之后进行样例测试:
import jiagu

#jiagu.init() # 可手动初始化,也可以动态初始化

text = '厦门明天会不会下雨'

words = jiagu.cut(text) # 分词
print(words)

pos = jiagu.pos(words) # 词性标注
print(pos)

ner = jiagu.ner(text) # 命名实体识别
print(ner)

输出结果:

python3 tetst.py
Traceback (most recent call last):
File "tetst.py", line 1, in
import jiagu
File "/usr/local/lib/python3.7/site-packages/jiagu/init.py", line 11, in
from jiagu import analyze
File "/usr/local/lib/python3.7/site-packages/jiagu/analyze.py", line 14, in
from jiagu import bilstm_crf
File "/usr/local/lib/python3.7/site-packages/jiagu/bilstm_crf.py", line 16, in
from tensorflow.contrib.crf import viterbi_decode
ModuleNotFoundError: No module named 'tensorflow.contrib'

total 2 participants

Comments (1)

同名自定义 2020-11-11 17:27

我和你一样。不要测试样例。没有用。你可以单独使用是没问题的。

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Python
1
https://git.oschina.net/ownthink/Jiagu.git
git@git.oschina.net:ownthink/Jiagu.git
ownthink
Jiagu
Jiagu

Search

103611 48b8ff67 1899542 103622 4d02230c 1899542