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

[Docs]: PaddleNLP/applications/neural_search/recall/in_batch_negative/ #3380

Closed
kg-nlp opened this issue Sep 28, 2022 · 8 comments
Closed

[Docs]: PaddleNLP/applications/neural_search/recall/in_batch_negative/ #3380

kg-nlp opened this issue Sep 28, 2022 · 8 comments
Assignees
Labels
documentation Improvements or additions to documentation neural-search stale

Comments

@kg-nlp
Copy link

kg-nlp commented Sep 28, 2022

软件环境

- paddlepaddle:
- paddlepaddle-gpu: 
- paddlenlp:

详细描述

代码与readme内容不一致
@kg-nlp kg-nlp added the documentation Improvements or additions to documentation label Sep 28, 2022
@w5688414
Copy link
Contributor

请问是哪个地方不一致呢?有详细信息吗?

@w5688414 w5688414 self-assigned this Sep 28, 2022
@kg-nlp
Copy link
Author

kg-nlp commented Sep 29, 2022

image

命令行参数similar_text_pair 重复,实际源码中train_batch_neg是similar_text_pair_file

@kg-nlp
Copy link
Author

kg-nlp commented Sep 29, 2022

neural_serch/ranking/cross_encoder/deploy/python/web_service.py 第69行
image
str(sim_score) 应该为 str(sim_score.tolist())

@w5688414
Copy link
Contributor

similar_text_pair_file

请问您用的是什么环境?为什么需要转list?

@kg-nlp
Copy link
Author

kg-nlp commented Sep 30, 2022

下载的最新版的代码,cross_encoder 模型服务返回的分数类型为numpy,不转成 list,在客户端请求
result = np.array(eval(ret.value[0])) ,ret.value[0] 会报错

@w5688414
Copy link
Contributor

我在0.9的环境测试没问题,请问您的是什么serving环境:

paddle-serving-app             0.9.0
paddle-serving-client          0.9.0
paddle-serving-server          0.9.0

下载的最新版的代码,cross_encoder 模型服务返回的分数类型为numpy,不转成 list,在客户端请求 result = np.array(eval(ret.value[0])) ,ret.value[0] 会报错

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。

@github-actions github-actions bot added the stale label Dec 7, 2022
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale. 当前issue 被标记为stale已有14天,即将关闭。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation neural-search stale
Projects
None yet
Development

No branches or pull requests

2 participants