Skip to content

Commit

Permalink
Apply isort and black reformatting
Browse files Browse the repository at this point in the history
Signed-off-by: blisc <[email protected]>
  • Loading branch information
blisc committed Jun 14, 2024
1 parent 7c7283f commit fdb7931
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nemo/collections/common/tokenizers/sentencepiece_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ def vocab(self):


class SentencePieceSpeechLLMTTSTokenizer(SentencePieceTokenizer):
""" Used in T5TTS to add phoneme tokens
"""
"""Used in T5TTS to add phoneme tokens"""

def add_phone_tokens_to_special_tokens(self):
for i, word in enumerate(self.vocab):
if word.startswith("p{"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,8 @@ def load_state_dict(self, state_dict, strict=True):


class MegatronTokenLevelEncoderDecoderSpeechLLMModule(MegatronTokenLevelEncoderDecoderModule):
""" A subclass of MegatronTokenLevelEncoderDecoderModule that adds support for speech token input and output
"""
"""A subclass of MegatronTokenLevelEncoderDecoderModule that adds support for speech token input and output"""

def __init__(self, *args, **kwargs):
super(MegatronTokenLevelEncoderDecoderSpeechLLMModule, self).__init__(*args, **kwargs)
# Overridden in MegatronT5SpeechLMModel constructor
Expand Down

0 comments on commit fdb7931

Please sign in to comment.