MCPcopy Create free account
hub / github.com/InternScience/SciReason / remove_right_units

Function remove_right_units

opencompass/datasets/math_intern.py:232–239  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

230
231
232def remove_right_units(string):
233 # "\\text{ " only ever occurs (at least in the val set)
234 if '\\text{ ' in string:
235 splits = string.split('\\text{ ')
236 assert len(splits) == 2
237 return splits[0]
238 else:
239 return string
240
241
242def fix_sqrt(string):

Callers 1

strip_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected