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

语义相似度匹配任务 #95

Closed
TianZhenGG opened this issue Jul 30, 2019 · 2 comments
Closed

语义相似度匹配任务 #95

TianZhenGG opened this issue Jul 30, 2019 · 2 comments

Comments

@TianZhenGG
Copy link

在做语义相似度匹配任务时,如果数据很多的话,predict.py 里面data的添加是怎么一种策略呢,如何能够快速匹配相似语义。

@Steffy-zxf
Copy link
Contributor

Steffy-zxf commented Jul 30, 2019

感谢反馈!数据很多很多的情况下,预测时可以先将待预测的数据放在文件,利用程序读入数据,之后调用task.predict()接口,即可以进行预测。可以参考PaddleHub提供的检索式问答任务的预测文件写法。https://github.com/PaddlePaddle/PaddleHub/blob/release/v1.0.0/demo/qa_classification/predict.py

@TianZhenGG
Copy link
Author

TianZhenGG commented Jul 30, 2019 via email

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