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

对于NLPCC-DBQA预测的predict.py文件配置 #66

Closed
TianZhenGG opened this issue Jun 28, 2019 · 4 comments
Closed

对于NLPCC-DBQA预测的predict.py文件配置 #66

TianZhenGG opened this issue Jun 28, 2019 · 4 comments

Comments

@TianZhenGG
Copy link

范例中predict采用的是chnsentcorp,如果想预测dbqa问答系统,具体该如何设置,能不能在text_b输出预测文本呢。

@nepeplwu
Copy link
Contributor

@TianZhenGG ,用ernie做问答系统的话,预测时同时输入问题和答案,根据预测结果的接近程度来选择问题的答案。
例如有问题a和候选答案[a1, a2, a3],预测时依次预测[a, a1]、[a, a2]、[a, a3]的结果,选择预测结果最接近1的作为答案

@TianZhenGG
Copy link
Author

TianZhenGG commented Jun 28, 2019 via email

@Steffy-zxf
Copy link
Contributor

可以参考release/v1.0.0分支下demo/qa_classification。

@Steffy-zxf
Copy link
Contributor

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