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

evaluation for duplicated answer choices #117

Open
KonstantinHebenstreit opened this issue Mar 8, 2023 · 1 comment
Open

evaluation for duplicated answer choices #117

KonstantinHebenstreit opened this issue Mar 8, 2023 · 1 comment

Comments

@KonstantinHebenstreit
Copy link
Collaborator

KonstantinHebenstreit commented Mar 8, 2023

In datasets are sometimes examples with 4 or 5 answer choices. I think what has been done is just to duplicate one of the answer choices to always have 5 choices.
The evaluation script does not include this option.
Since we put letters in front of the choices (A,B,C,D,E), the model can also answer with a letter. But if the right choice it as two places it has two letters. This can lead to wrong evaluation scores based on the letters.

First example is commonsense_qa, but there might be others.

@KonstantinHebenstreit
Copy link
Collaborator Author

Helper code to find those examples:

coll["commonsense_qa"].filter(lambda example: len(set(example["choices"]))==4)

@KonstantinHebenstreit KonstantinHebenstreit changed the title Med_qa evaluation for duplicated answer choices evaluation for duplicated answer choices Mar 9, 2023
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