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

怎么做预测呀? #26

Closed
JNero opened this issue Oct 18, 2019 · 2 comments
Closed

怎么做预测呀? #26

JNero opened this issue Oct 18, 2019 · 2 comments

Comments

@JNero
Copy link

JNero commented Oct 18, 2019

作者, 这个预测怎么做呀

@liuyangzy
Copy link

同问,想知道代码里说的预测时只用输入query即可,将其embedding为向量。具体是怎么操作的

@InsaneLife
Copy link
Owner

需要先训练模型,然后做预测,训练入口:train.py

训练(默认使用功LCQMC数据集):

python train.py --mode=train

预测:

python train.py --mode=train --file=$predict_file$

测试文件格式: q1\tq2, 例如:

今天天气怎么样	今天温度怎么样

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