baidu/Senta

win10用cmd运行python脚本,不能init_model模型,返回的是None

yangchanglin324 opened this issue · 3 comments

win10用cmd运行python脚本,不能init_model模型,返回的是None

from senta import Senta
my_senta = Senta()
use_cuda = False
my_senta.init_model(model_class="ernie_1.0_skep_large_ch", task="sentiment_classify", use_cuda=use_cuda)
print('>>> Model Is :', my_senta)
print('>>> Load Model Done.')

此脚本用系统运行,模型返回的是None
在python 的console运行就没有问题

有人遇到过木

我是报错找不到“\lib\site-packages\senta\model_files\ernie_1.0_skep_large_ch.Chnsenticorp.cls\save_inference_model\inference_step_601/infer_data_params.json”

xinj7 commented

我是报错找不到“\lib\site-packages\senta\model_files\ernie_1.0_skep_large_ch.Chnsenticorp.cls\save_inference_model\inference_step_601/infer_data_params.json”

后来解决了吗?