Datasets:
DCNemesis
commited on
Commit
·
d39d45e
1
Parent(s):
a7be19d
add debug code
Browse files
audio-keyword-spotting.py
CHANGED
@@ -120,7 +120,7 @@ class AudioKeywordSpotting(datasets.GeneratorBasedBuilder):
|
|
120 |
|
121 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
122 |
def _generate_examples(self, audio_dir, data, split):
|
123 |
-
for key, row in enumerate(data):
|
124 |
print(key, row)
|
125 |
try:
|
126 |
tfile = os.path.join(audio_dir, row['file'])
|
|
|
120 |
|
121 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
122 |
def _generate_examples(self, audio_dir, data, split):
|
123 |
+
for key, row in enumerate(data[split]):
|
124 |
print(key, row)
|
125 |
try:
|
126 |
tfile = os.path.join(audio_dir, row['file'])
|