Skip to content

Commit 3ead360

Browse files
author
yufeng zhao
committed
phybench_fix
1 parent 111c584 commit 3ead360

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • opencompass/datasets/PHYBench/EED

opencompass/datasets/PHYBench/EED/EED.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,6 @@ def remove_command(s, command, keep_inside=False):
130130

131131

132132
def convert_latex_fractions(latex_str):
133-
"""Convert non-standard fraction like \frac\alpha2 to its standard-
134-
convertable \frac{\alpha}{2}.
135-
136-
We support single letter, number or standard form.
137-
"""
138133
pattern = (r'\\frac((?:\\[a-zA-Z]+|\d|[a-zA-Z]|{[^{}]*}))'
139134
r'((?:\\[a-zA-Z]+|\d|[a-zA-Z]|{[^{}]*}))')
140135

0 commit comments

Comments
 (0)