MCPcopy
hub / github.com/KittenML/KittenTTS / _replace

Function _replace

kittentts/preprocess.py:242–243  ·  view source on GitHub ↗
(m: re.Match)

Source from the content-addressed store, hash-verified

240 "100th day""one hundredth day"
241 """
242 def _replace(m: re.Match) -> str:
243 return _ordinal_suffix(int(m.group(1)))
244 return _RE_ORDINAL.sub(_replace, text)
245
246

Callers

nothing calls this directly

Calls 5

_ordinal_suffixFunction · 0.85
float_to_wordsFunction · 0.85
number_to_wordsFunction · 0.85
roman_to_intFunction · 0.85
_octetFunction · 0.85

Tested by

no test coverage detected