Commit
•
51bb7a7
1
Parent(s):
d3e43fb
Fix directory names for LDC data (#4436)
Browse filesCommit from https://github.com/huggingface/datasets/commit/a82f65a2f40906e2a9fcee3c56bbf0ca68bfa1fc
- timit_asr.py +1 -1
timit_asr.py
CHANGED
@@ -129,7 +129,7 @@ class TimitASR(datasets.GeneratorBasedBuilder):
|
|
129 |
def _generate_examples(self, split, data_dir):
|
130 |
"""Generate examples from TIMIT archive_path based on the test/train csv information."""
|
131 |
# Iterating the contents of the data to extract the relevant information
|
132 |
-
wav_paths = sorted(Path(data_dir).glob(f"**/{split
|
133 |
wav_paths = wav_paths if wav_paths else sorted(Path(data_dir).glob(f"**/{split.upper()}/**/*.WAV"))
|
134 |
for key, wav_path in enumerate(wav_paths):
|
135 |
|
|
|
129 |
def _generate_examples(self, split, data_dir):
|
130 |
"""Generate examples from TIMIT archive_path based on the test/train csv information."""
|
131 |
# Iterating the contents of the data to extract the relevant information
|
132 |
+
wav_paths = sorted(Path(data_dir).glob(f"**/{split}/**/*.wav"))
|
133 |
wav_paths = wav_paths if wav_paths else sorted(Path(data_dir).glob(f"**/{split.upper()}/**/*.WAV"))
|
134 |
for key, wav_path in enumerate(wav_paths):
|
135 |
|