“8e16315ada7bc487ce2bf4afe3d6090016d89dd2”上不存在“examples/librispeech/asr5/path.sh”
未验证 提交 d9f8c1b8 编写于 作者: H Hui Zhang 提交者: GitHub

Merge pull request #915 from gongel/dp_bugfix

[BUGFIX]  tokenids ---> _tokenids
...@@ -194,7 +194,7 @@ class SpeechCollatorBase(): ...@@ -194,7 +194,7 @@ class SpeechCollatorBase():
texts = [] texts = []
text_lens = [] text_lens = []
utts = [] utts = []
tids = [] # tokenids tids = [] # tokenids
for idx, item in enumerate(batch): for idx, item in enumerate(batch):
utts.append(item['utt']) utts.append(item['utt'])
...@@ -354,7 +354,7 @@ class TripletSpeechCollator(SpeechCollator): ...@@ -354,7 +354,7 @@ class TripletSpeechCollator(SpeechCollator):
tokens = [[], []] tokens = [[], []]
for idx, text in enumerate([translation, transcription]): for idx, text in enumerate([translation, transcription]):
tokens[idx] = tokenids(text, self.keep_transcription_text) tokens[idx] = _tokenids(text, self.keep_transcription_text)
translation_text.append(tokens[0]) translation_text.append(tokens[0])
translation_text_lens.append(tokens[0].shape[0]) translation_text_lens.append(tokens[0].shape[0])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册