38d1a9b6325d8b69e9b26ce28b1f1a8e0040c51b,torchaudio/datasets/librispeech.py,,load_librispeech_item,#Any#Any#Any#Any#,17
Before Change
waveform, sample_rate = torchaudio.load(file_audio)
// Load text
for line in open(file_text):
fileid_text, content = line.strip().split(" ", 1)
if fileid_audio == fileid_text:
break
else:
// Translation not found
raise FileNotFoundError("Translation not found for " + fileid_audio)
return {
"speaker_id": speaker,
"chapter_id": chapter,
"utterance_id": utterance,
After Change
// Translation not found
raise FileNotFoundError("Translation not found for " + fileid_audio)
return (
waveform,
sample_rate,
utterance,
int(speaker_id),
int(chapter_id),
int(utterance_id),
)
class LIBRISPEECH(Dataset):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pytorch/audio
Commit Name: 38d1a9b6325d8b69e9b26ce28b1f1a8e0040c51b
Time: 2019-11-06
Author: vincentqb@users.noreply.github.com
File Name: torchaudio/datasets/librispeech.py
Class Name:
Method Name: load_librispeech_item
Project Name: bokeh/bokeh
Commit Name: 8451d9c3690f1d47adcb929771b4ce37ea2c3e0d
Time: 2017-09-01
Author: mattpap@gmail.com
File Name: bokeh/util/compiler.py
Class Name:
Method Name: _detect_nodejs
Project Name: data61/python-paillier
Commit Name: a9b0892933f978b3c39a8c38cb1ce851223ec2db
Time: 2018-04-17
Author: quentin.santos@worldonline.fr
File Name: phe/util.py
Class Name:
Method Name: invert