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

请问训练好一个模型以后,怎么用这个模型做预测,比如书籍评论模型? #20

Open
chongzicbo opened this issue Aug 17, 2019 · 1 comment

Comments

@chongzicbo
Copy link

import torch
state_dict=torch.load('/content/models/classifier_model.bin')#state_dict()

@zhezhaoa
Copy link
Collaborator

目前我们还没有把预测的脚本加到项目中,后面会争取加进去哈
通过简单修改classifier.py可以使用模型对样本进行标签预测

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

2 participants