Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FireRedTeam/FireRedTTS2
/ unprotect_float
Function
unprotect_float
fireredtts2/utils/spliter.py:127–129 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
125
126
127
def
unprotect_float(text):
128
# Turns <3_f_14> into 3.14
129
return
re.sub(r
"<(\d+)_f_(\d+)>"
, r
"\1.\2"
, text)
130
131
132
def
split_text(text, length):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected