提交 3d5f2943 编写于 作者: H Haoxin Ma

dataset

上级 2b51d612
......@@ -247,25 +247,6 @@ class ManifestDataset(Dataset):
def stride_ms(self):
return self._speech_featurizer.stride_ms
# def _instance_reader_creator(self, manifest):
# """
# Instance reader creator. Create a callable function to produce
# instances of data.
# Instance: a tuple of ndarray of audio spectrogram and a list of
# token indices for transcript.
# """
# def reader():
# for instance in manifest:
# inst = self.process_utterance(instance["utt"], instance["feat"],
# instance["text"])
# yield inst
# return reader
def __len__(self):
return len(self._manifest)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册