MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / _is_number

Method _is_number

test/general/lm_eval/tasks/drop.py:245–250  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

243 return False
244
245 def _is_number(self, text):
246 try:
247 float(text)
248 return True
249 except ValueError:
250 return False
251
252 def _remove_articles(self, text):
253 return _ARTICLES.sub(" ", text)

Callers 3

_remove_puncMethod · 0.95
_fix_numberMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected