NER模型中执行默认的预测程序出错
Created by: peterzhang2029
error log:
I1204 19:16:10.800665 20558 Util.cpp:166] commandline: --use_gpu=False --trainer_count=1
Traceback (most recent call last):
File "infer.py", line 62, in <module>
target_file="data/target.txt")
File "infer.py", line 33, in infer
gzip.open(model_path, "r"))
File "/home/zhangchao/.jumbo/lib/python2.7/gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "/home/zhangchao/.jumbo/lib/python2.7/gzip.py", line 89, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: 'models/params_pass_0.tar.gz'
应该是训练配置中默认的文件夹设置有误