Skip to content

fix(scoring): treat unary en/em dashes as minus signs - #475

Open
marktech0813 wants to merge 1 commit into
James-CUDA:mainfrom
marktech0813:fix/473-en-em-dash-unary-minus
Open

fix(scoring): treat unary en/em dashes as minus signs#475
marktech0813 wants to merge 1 commit into
James-CUDA:mainfrom
marktech0813:fix/473-en-em-dash-unary-minus

Conversation

@marktech0813

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • pytest tests/test_reward_en_em_dash_minus.py tests/test_drop_leading_decimal_point.py
  • CI green

Made with Cursor

Models emit U+2013/U+2014 as minus; the extractor only accepted ASCII '-',
so "–3" graded as unsigned 3. Fold only in unary position so year ranges
stay intact (James-CUDA#473).

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

[bug] MATH grader: en/em dash before a digit is invisible — "–3" extracts as unsigned "3" (sign-flip FP/FN)

1 participant