Datasets:
Formats:
parquet
Languages:
English
Size:
100K - 1M
ArXiv:
Tags:
query-by-example-spoken-term-detection
audio-slot-filling
speaker-diarization
automatic-speaker-verification
License:
Update superb.py
Browse files
superb.py
CHANGED
|
@@ -375,7 +375,7 @@ class Superb(datasets.GeneratorBasedBuilder):
|
|
| 375 |
_DL_URLS = {
|
| 376 |
split: {
|
| 377 |
filename: self.config.data_url.format(split=split, filename=filename)
|
| 378 |
-
for filename in ["reco2dur", "segments", "utt2spk", "
|
| 379 |
}
|
| 380 |
for split in splits
|
| 381 |
}
|
|
@@ -527,7 +527,7 @@ class SdData:
|
|
| 527 |
"""Load sd data."""
|
| 528 |
self.segments = self._load_segments_rechash(data_dir["segments"])
|
| 529 |
self.utt2spk = self._load_utt2spk(data_dir["utt2spk"])
|
| 530 |
-
self.wavs = self._load_wav_zip(data_dir["
|
| 531 |
self.reco2dur = self._load_reco2dur(data_dir["reco2dur"])
|
| 532 |
|
| 533 |
def _load_segments_rechash(self, segments_file):
|
|
@@ -545,7 +545,7 @@ class SdData:
|
|
| 545 |
|
| 546 |
def _load_wav_zip(self, wav_zip):
|
| 547 |
"""Return dictionary { rec: wav_rxfilename }."""
|
| 548 |
-
wav_dir = os.path.join(wav_zip, "
|
| 549 |
return {
|
| 550 |
os.path.splitext(filename)[0]: os.path.join(wav_dir, filename) for filename in sorted(os.listdir(wav_dir))
|
| 551 |
}
|
|
|
|
| 375 |
_DL_URLS = {
|
| 376 |
split: {
|
| 377 |
filename: self.config.data_url.format(split=split, filename=filename)
|
| 378 |
+
for filename in ["reco2dur", "segments", "utt2spk", "mix_both.zip"]
|
| 379 |
}
|
| 380 |
for split in splits
|
| 381 |
}
|
|
|
|
| 527 |
"""Load sd data."""
|
| 528 |
self.segments = self._load_segments_rechash(data_dir["segments"])
|
| 529 |
self.utt2spk = self._load_utt2spk(data_dir["utt2spk"])
|
| 530 |
+
self.wavs = self._load_wav_zip(data_dir["mix_both.zip"])
|
| 531 |
self.reco2dur = self._load_reco2dur(data_dir["reco2dur"])
|
| 532 |
|
| 533 |
def _load_segments_rechash(self, segments_file):
|
|
|
|
| 545 |
|
| 546 |
def _load_wav_zip(self, wav_zip):
|
| 547 |
"""Return dictionary { rec: wav_rxfilename }."""
|
| 548 |
+
wav_dir = os.path.join(wav_zip, "mix_both")
|
| 549 |
return {
|
| 550 |
os.path.splitext(filename)[0]: os.path.join(wav_dir, filename) for filename in sorted(os.listdir(wav_dir))
|
| 551 |
}
|