Skip to content

squad_v2: include unanswerable questions in evaluation#1185

Open
Matteovanypersele wants to merge 2 commits intohuggingface:mainfrom
Matteovanypersele:fix/squad-v2-unanswerable
Open

squad_v2: include unanswerable questions in evaluation#1185
Matteovanypersele wants to merge 2 commits intohuggingface:mainfrom
Matteovanypersele:fix/squad-v2-unanswerable

Conversation

@Matteovanypersele
Copy link

Fixes #1184

  • squad_v2 (version 2): New custom prompt function that evaluates both
    answerable and unanswerable questions. The model is instructed to generate
    "unanswerable" when appropriate.
  • squad_v2:answerable (version 1): Preserves the previous behavior
    (answerable questions only, original QA template) for backward
    compatibility.
  • F1 metric added alongside exact match for both tasks, matching the
    original SQuAD 2.0 evaluation protocol.

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.

squad_v2.py : unanswerable questions are filtered out, making the task equivalent to SQuAD 1.1

1 participant