This commit is contained in:
speech_asr 2023-04-20 01:47:44 +08:00
parent 124d49c6ee
commit e80263cbf8

View File

@ -152,7 +152,7 @@ class ESPnetDataset(Dataset):
loader = kaldiio.load_scp(path)
return AdapterForSoundScpReader(loader, self.float_dtype)
elif loader_type == "npy":
return NpyScpReader()
return NpyScpReader(path)
elif loader_type == "text":
text_loader = {}
with open(path, "r", encoding="utf-8") as f: