mirror of
https://github.com/neonbjb/tortoise-tts.git
synced 2026-03-06 13:34:44 +01:00
Update tokenizer.py
transliterates -> transliterate
This commit is contained in:
parent
d22ba29eca
commit
03fa6922ed
|
|
@ -132,7 +132,7 @@ def basic_cleaners(text):
|
|||
|
||||
|
||||
def transliteration_cleaners(text):
|
||||
'''Pipeline for non-English text that transliterates to ASCII.'''
|
||||
'''Pipeline for non-English text that transliterate to ASCII.'''
|
||||
text = convert_to_ascii(text)
|
||||
text = lowercase(text)
|
||||
text = collapse_whitespace(text)
|
||||
|
|
@ -190,4 +190,4 @@ class VoiceBpeTokenizer:
|
|||
txt = txt.replace('[SPACE]', ' ')
|
||||
txt = txt.replace('[STOP]', '')
|
||||
txt = txt.replace('[UNK]', '')
|
||||
return txt
|
||||
return txt
|
||||
|
|
|
|||
Loading…
Reference in a new issue