mirror of https://github.com/coqui-ai/TTS.git
Fix tokenizer init_from_config
This commit is contained in:
parent
50e17097a7
commit
07b0a80d57
|
@ -146,8 +146,9 @@ class TTSTokenizer:
|
||||||
the config values. Defaults to None.
|
the config values. Defaults to None.
|
||||||
"""
|
"""
|
||||||
# init cleaners
|
# init cleaners
|
||||||
|
text_cleaner = None
|
||||||
if isinstance(config.text_cleaner, (str, list)):
|
if isinstance(config.text_cleaner, (str, list)):
|
||||||
text_cleaner = getattr(cleaners, config.text_cleaner)
|
text_cleaner = getattr(config, "text_cleaner")
|
||||||
|
|
||||||
# init characters
|
# init characters
|
||||||
if characters is None:
|
if characters is None:
|
||||||
|
|
Loading…
Reference in New Issue