Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBitSys/BitDistiller
/ _fix_number
Method
_fix_number
test/general/lm_eval/tasks/drop.py:265–266 ·
view source on GitHub ↗
(self, text)
Source
from the content-addressed store, hash-verified
263
return
text
264
265
def
_fix_number(self, text):
266
return
str(float(text))
if
self._is_number(text)
else
text
267
268
def
_tokenize(self, text):
269
return
re.split(
" |-"
, text)
Callers
1
_normalize
Method · 0.95
Calls
1
_is_number
Method · 0.95
Tested by
no test coverage detected