From d5da15b0e8000bafddcf58b02b3d0eea7a6bb31f Mon Sep 17 00:00:00 2001 From: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com> Date: Tue, 15 Nov 2022 16:35:49 -0800 Subject: [PATCH] [TTS] remove useless logic for set_tokenizer. Signed-off-by: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com> --- nemo/collections/tts/models/fastpitch.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/nemo/collections/tts/models/fastpitch.py b/nemo/collections/tts/models/fastpitch.py index 2d8aa05ac716..211e8d31fba3 100644 --- a/nemo/collections/tts/models/fastpitch.py +++ b/nemo/collections/tts/models/fastpitch.py @@ -196,15 +196,6 @@ def _setup_normalizer(self, cfg): def _setup_tokenizer(self, cfg): text_tokenizer_kwargs = {} - if "phoneme_dict" in cfg.text_tokenizer: - text_tokenizer_kwargs["phoneme_dict"] = self.register_artifact( - "text_tokenizer.phoneme_dict", cfg.text_tokenizer.phoneme_dict, - ) - if "heteronyms" in cfg.text_tokenizer: - text_tokenizer_kwargs["heteronyms"] = self.register_artifact( - "text_tokenizer.heteronyms", cfg.text_tokenizer.heteronyms, - ) - if "g2p" in cfg.text_tokenizer: g2p_kwargs = {}