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

i want to predict a query pair like "今天天气怎么样" “今天温度怎么样” ,what to do? #25

Closed
yangyan1227 opened this issue Aug 29, 2019 · 5 comments

Comments

@yangyan1227
Copy link

No description provided.

@JNero
Copy link

JNero commented Oct 18, 2019

+1 。怎么做预测?

@InsaneLife
Copy link
Owner

分别作为输入,获取输出句子的embedding向量,让后计算两个向量cos相似度即可。

@liuyangzy
Copy link

分别作为输入,获取输出句子的embedding向量,让后计算两个向量cos相似度即可。

如何输入

@InsaneLife
Copy link
Owner

需要先训练模型,然后做预测,训练入口:train.py
训练(默认使用功LCQMC数据集):

python train.py --mode=train

预测:

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

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

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

@InsaneLife InsaneLife mentioned this issue Oct 26, 2020
@InsaneLife
Copy link
Owner

需要先训练模型,然后做预测,训练入口:train.py
训练(默认使用功LCQMC数据集):

python train.py --mode=train

预测:

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

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

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

#29 #26

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

4 participants