Skip to content

Fix evaluator extraction for noisy final numeric answers - #495

Merged
ShuxinLin merged 2 commits into
mainfrom
eval_revisions
Jul 29, 2026
Merged

Fix evaluator extraction for noisy final numeric answers#495
ShuxinLin merged 2 commits into
mainfrom
eval_revisions

Conversation

@ChathurangiShyalika

Copy link
Copy Markdown
Collaborator

This PR updates static_json answer parsing so noisy model outputs are handled more reliably.

Changes:

Parse full JSON/Python answers before extracting balanced snippets.
Prefer JSON/list candidates over parenthetical prose.
Extract final standalone numeric answers from verbose responses.
Add regression tests for parenthetical explanations followed by final counts.

Test:

.venv/bin/python -m pytest src/evaluation/tests/test_static_json_scorer.py -q

@ShuxinLin
ShuxinLin merged commit 358a73a into main Jul 29, 2026
5 checks passed
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.

2 participants