MCPcopy Index your code
hub / github.com/TensorSpeech/TensorFlowTTS / normalize_english

Function normalize_english

tensorflow_tts/utils/korean.py:390–399  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

388
389
390def normalize_english(text):
391 def fn(m):
392 word = m.group()
393 if word in english_dictionary:
394 return english_dictionary.get(word)
395 else:
396 return word
397
398 text = re.sub("([A-Za-z]+)", fn, text)
399 return text
400
401
402def normalize_upper(text):

Callers 1

normalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected