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

feat: use new sentence ranker #391

Merged
merged 3 commits into from
Apr 17, 2023
Merged

feat: use new sentence ranker #391

merged 3 commits into from
Apr 17, 2023

Conversation

dilyararimovna
Copy link
Collaborator

No description provided.


request_data = {"sentence_pairs": sentence_pairs}
result = requests.post(url, json=request_data).json()[0]["batch"]
for i, score in enumerate(result):
assert score != 0.0, f"Expected:{gold[i]}\tGot\n{score}"
assert round(score, 2) == round(gold[i], 2), f"Expected:{gold[i]}\tGot\n{score}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

у меня не проходит, вообще другие значения
(venv) smilga@gpu11:~/dream$ /home/smilga/dream/venv/bin/python /home/smilga/dream/services/sentence_ranker/test.py [0.922500729560852, 0.4283738136291504, 0.324562668800354, 0.3642802834510803, 0.36186355352401733] Traceback (most recent call last): File "/home/smilga/dream/services/sentence_ranker/test.py", line 26, in <module> test_respond() File "/home/smilga/dream/services/sentence_ranker/test.py", line 21, in test_respond assert round(score, 2) == round(gold[i], 2), f"Expected:{gold[i]}\tGot\n{score}" AssertionError: Expected:0.7672719955444336 Got 0.922500729560852

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

как запускаешь?

smilni
smilni previously approved these changes Apr 14, 2023
@dilyararimovna dilyararimovna merged commit 340c07c into dev Apr 17, 2023
@dilyararimovna dilyararimovna deleted the feat/new_sentence_ranker branch April 17, 2023 12:09
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

Successfully merging this pull request may close these issues.

2 participants