Skip to content

Parse ARC answer letters from the raw reply, not out.upper() - #6

Merged
aghasalim merged 1 commit into
mainfrom
strict-letter-parse
Oct 9, 2026
Merged

aghasalim merged 1 commit into
mainfrom
strict-letter-parse

Conversation

@aghasalim

Copy link
Copy Markdown
Owner

mc_generative searched out.upper() for any standalone A to E or 1 to 4, so the article in "It's a B" or "I think a good guess" was read as the letter A. The parser now lives in task.parse_mc_letter, reads the raw text case-sensitively, and only accepts a label that opens the reply (B, B. Paris, (C), Answer: D) or follows "answer is". Anything else counts as unparsed. Parametrized test added; the old regex returns A on three of its cases. The raw ARC replies were never saved, so the published 88.7% generative accuracy cannot be rescored without rerunning the model; notes/METHODS.md now says so.

Co-authored-by: aghasalim 75713741+aghasalim@users.noreply.github.com

mc_generative searched out.upper() for any standalone A to E or 1 to 4, so the article in "It's a B" or "I think a good guess" was read as the letter A. The parser now lives in task.parse_mc_letter, reads the raw text case-sensitively, and only accepts a label that opens the reply (B, B. Paris, (C), Answer: D) or follows "answer is". Anything else counts as unparsed. Parametrized test added; the old regex returns A on three of its cases. The raw ARC replies were never saved, so the published 88.7% generative accuracy cannot be rescored without rerunning the model; notes/METHODS.md now says so.

Co-authored-by: aghasalim <75713741+aghasalim@users.noreply.github.com>
@aghasalim
aghasalim merged commit 81fdef3 into main Oct 9, 2026
2 checks passed
@aghasalim
aghasalim deleted the strict-letter-parse branch October 9, 2026 22:27
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