mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
fix
This commit is contained in:
parent
52df98014e
commit
802d365a7b
@ -31,18 +31,7 @@ class MATHEvaluator(BaseEvaluator):
|
|||||||
ExprExtractionConfig(),
|
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:
|
if len(gold_parsed) != 0:
|
||||||
# We require the answer to be provided in correct
|
# We require the answer to be provided in correct
|
||||||
# latex (no malformed operators)
|
# latex (no malformed operators)
|
||||||
|
Loading…
Reference in New Issue
Block a user