From 802d365a7bc4748cad6b7fcbf98e1d8a15777c88 Mon Sep 17 00:00:00 2001 From: Myhs-phz Date: Mon, 7 Apr 2025 08:53:23 +0000 Subject: [PATCH] fix --- opencompass/openicl/icl_evaluator/math_evaluator.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/opencompass/openicl/icl_evaluator/math_evaluator.py b/opencompass/openicl/icl_evaluator/math_evaluator.py index fd93a7c9..16db89f8 100644 --- a/opencompass/openicl/icl_evaluator/math_evaluator.py +++ b/opencompass/openicl/icl_evaluator/math_evaluator.py @@ -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)