Skip to content

fix(scoring): recognize TeX \over fractions in extract and normalize - #487

Open
marktech0813 wants to merge 1 commit into
James-CUDA:mainfrom
marktech0813:fix/484-tex-over-fraction
Open

fix(scoring): recognize TeX \over fractions in extract and normalize#487
marktech0813 wants to merge 1 commit into
James-CUDA:mainfrom
marktech0813:fix/484-tex-over-fraction

Conversation

@marktech0813

Copy link
Copy Markdown
Contributor

Summary

  • Extract keeps 1\over 2 / {1\over 2} as one term (tie-break prefers longer span ending at the same index).
  • Normalize folds \over to slash form so gold 1/2 / \frac{1}{2} match.
  • CI helpers: ruff <0.16, DROP leading-decimal edge-strip.

Fixes #484

Test plan

  • pytest tests/test_reward_tex_over.py
  • CI green on this PR

Made with Cursor

Classic a\over b answers were read as the denominator digit and never
matched slash/frac gold; fold to a/b and prefer the longer extract span (James-CUDA#484).

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: TeX \over fractions extract the denominator digit — "1\over 2" grades as 2

1 participant