MCPcopy Create free account
hub / github.com/LeapLabTHU/Absolute-Zero-Reasoner / _parse

Function _parse

evaluation/math_eval/eval/grader.py:277–286  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

275
276def symbolic_equal(a, b):
277 def _parse(s):
278 for f in [parse_latex, parse_expr, latex2sympy]:
279 try:
280 return f(s.replace("\\\\", "\\"))
281 except:
282 try:
283 return f(s)
284 except:
285 pass
286 return s
287
288 a = _parse(a)
289 b = _parse(b)

Callers 1

symbolic_equalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected