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

F1 metric returns wrong result #8

Open
rbedyakin opened this issue Dec 21, 2024 · 0 comments
Open

F1 metric returns wrong result #8

rbedyakin opened this issue Dec 21, 2024 · 0 comments

Comments

@rbedyakin
Copy link

rbedyakin commented Dec 21, 2024

from leaderboard.metric import calculate_f1_score

calculate_f1_score(["a a a a a"],["a a a a a"])
// prints 0.20000000000000004
// should be 1.0

Maybe just take official evaluation script for SQuAD version 2.0 ?

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

1 participant