Skip to content

Fix off-by-one on gold_label in oracle-answer preprocessing - #12

Open
abdel-darwish-27 wants to merge 1 commit into
nyu-mll:mainfrom
abdel-darwish-27:fix/gold-label-1-indexed
Open

Fix off-by-one on gold_label in oracle-answer preprocessing#12
abdel-darwish-27 wants to merge 1 commit into
nyu-mll:mainfrom
abdel-darwish-27:fix/gold-label-1-indexed

Conversation

@abdel-darwish-27

Copy link
Copy Markdown

QuALITY's gold_label is 1-indexed (1=A..4=D) per the data README; preproc/simple.py already subtracts 1. preproc/extraction.py indexes options[] with the raw value — off-by-one for labels 1-3, and IndexError for the 528 dev questions with label 4.

Fix: label = x["gold_label"] - 1.

gold_label is 1-indexed (1=A..4=D) per the data README; simple.py
already subtracts 1. extraction.py used it directly as a 0-indexed
options[] index, picking the wrong option for labels 1-3 and
IndexError-ing for the 528 dev questions with label 4.
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.

1 participant