MCPcopy Create free account
hub / github.com/Alpha-VLLM/LLaMA2-Accessory / clean_numbers

Function clean_numbers

light-eval/src/eval_utils/math_util.py:53–60  ·  view source on GitHub ↗
(sample)

Source from the content-addressed store, hash-verified

51
52
53def clean_numbers(sample):
54 if not sample:
55 return None
56 new_sample = list()
57 for s in sample:
58 new_sample.append(_clean_numbers(s))
59
60 return tuple(new_sample)
61
62def _clean_numbers(string):
63 """

Callers

nothing calls this directly

Calls 1

_clean_numbersFunction · 0.85

Tested by

no test coverage detected