Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yangchanglin324 opened this issue Apr 1, 2021 · 3 comments

Comments

@yangchanglin324
Copy link

No description provided.

@yangchanglin324 yangchanglin324 changed the title win10用cmd运行python脚本,不能init_model模型,返回的是N win10用cmd运行python脚本,不能init_model模型,返回的是 Apr 1, 2021
@yangchanglin324 yangchanglin324 changed the title win10用cmd运行python脚本,不能init_model模型,返回的是 win10用cmd运行python脚本,不能init_model模型,返回的是None Apr 1, 2021
@yangchanglin324
Copy link
Author

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运行就没有问题

有人遇到过木

@JoJoJun
Copy link

JoJoJun commented Apr 16, 2021

我是报错找不到“\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
Copy link

xinj7 commented Jan 18, 2023

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

后来解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants