mirror of
https://github.com/wassname/TTS.git
synced 2026-09-11 12:00:24 +08:00
turkish cleaner and data preprocessor
This commit is contained in:
@@ -91,6 +91,14 @@ def transliteration_cleaners(text):
|
||||
return text
|
||||
|
||||
|
||||
# TODO: elaborate it
|
||||
def basic_turkish_cleaners(text):
|
||||
'''Pipeline for Turkish text'''
|
||||
text = text.replace("I", "ı")
|
||||
text = lowercase(text)
|
||||
text = collapse_whitespace(text)
|
||||
|
||||
|
||||
def english_cleaners(text):
|
||||
'''Pipeline for English text, including number and abbreviation expansion.'''
|
||||
text = convert_to_ascii(text)
|
||||
|
||||
Reference in New Issue
Block a user