mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
phybench_fix
This commit is contained in:
parent
111c584049
commit
3ead360328
@ -130,11 +130,6 @@ def remove_command(s, command, keep_inside=False):
|
||||
|
||||
|
||||
def convert_latex_fractions(latex_str):
|
||||
"""Convert non-standard fraction like \frac\alpha2 to its standard-
|
||||
convertable \frac{\alpha}{2}.
|
||||
|
||||
We support single letter, number or standard form.
|
||||
"""
|
||||
pattern = (r'\\frac((?:\\[a-zA-Z]+|\d|[a-zA-Z]|{[^{}]*}))'
|
||||
r'((?:\\[a-zA-Z]+|\d|[a-zA-Z]|{[^{}]*}))')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user