mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-22 16:49:06 +00:00
style: fix black and isort formatting
Run black and isort to satisfy pre-commit checks. Made-with: Cursor
This commit is contained in:
parent
83fcceb317
commit
d6a5a8a9f1
2 changed files with 16 additions and 10 deletions
|
|
@ -28,6 +28,7 @@ if TYPE_CHECKING:
|
|||
# LaTeX normalisation
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def strip_latex(s: str) -> str:
|
||||
"""Remove common LaTeX wrappers and normalise whitespace.
|
||||
|
||||
|
|
@ -47,6 +48,7 @@ def strip_latex(s: str) -> str:
|
|||
# Individual matchers
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def string_match(predicted: str, expected: str) -> float:
|
||||
"""Case-insensitive exact string comparison after stripping whitespace."""
|
||||
try:
|
||||
|
|
@ -123,6 +125,7 @@ def _mathrm_to_text(s: str) -> str:
|
|||
# Full cascade
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def cascade_score(
|
||||
answer: str,
|
||||
expected: str,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue