Skip to content

Commit

Permalink
[TTS] remove useless logic for set_tokenizer. (NVIDIA#5430)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com>
Signed-off-by: Hainan Xu <hainanx@nvidia.com>
  • Loading branch information
XuesongYang authored and Hainan Xu committed Nov 29, 2022
1 parent 84c69ba commit 86fae50
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions nemo/collections/tts/models/fastpitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}

Expand Down

0 comments on commit 86fae50

Please sign in to comment.