This commit is contained in:
Myhs-phz 2025-04-07 08:53:23 +00:00
parent 52df98014e
commit 802d365a7b

View File

@ -31,18 +31,7 @@ class MATHEvaluator(BaseEvaluator):
ExprExtractionConfig(),
],
)
# If parsing result is empty, try adding LaTeX
# environment and parse again
# if len(gold_parsed) == 0:
# j_with_env = f'${j}$'
# gold_parsed = parse(
# j_with_env,
# extraction_mode='first_match',
# extraction_config=[
# LatexExtractionConfig(),
# ExprExtractionConfig(),
# ],
# )
if len(gold_parsed) != 0:
# We require the answer to be provided in correct
# latex (no malformed operators)