DCNemesis
commited on
Commit
·
766aa8b
1
Parent(s):
889526c
add word detection times to dataset
Browse files- audio-kw-in-context.py +2 -2
audio-kw-in-context.py
CHANGED
@@ -132,7 +132,7 @@ class AudioKwInContext(datasets.GeneratorBasedBuilder):
|
|
132 |
"file": tfile,
|
133 |
"sentence": row['sentence'],
|
134 |
"language": self.config.language,
|
135 |
-
"speaker_id": row['
|
136 |
"keywords": row['keywords'],
|
137 |
"audio": tfile,
|
138 |
"start_times": row['start_times'],
|
@@ -141,5 +141,5 @@ class AudioKwInContext(datasets.GeneratorBasedBuilder):
|
|
141 |
}
|
142 |
except Exception as e:
|
143 |
print(e)
|
144 |
-
print(f'In split {split}: {row["file"]} failed to
|
145 |
pass
|
|
|
132 |
"file": tfile,
|
133 |
"sentence": row['sentence'],
|
134 |
"language": self.config.language,
|
135 |
+
"speaker_id": row['speaker_id'],
|
136 |
"keywords": row['keywords'],
|
137 |
"audio": tfile,
|
138 |
"start_times": row['start_times'],
|
|
|
141 |
}
|
142 |
except Exception as e:
|
143 |
print(e)
|
144 |
+
print(f'In split {split}: {row["file"]} failed to load. Data may be missing.')
|
145 |
pass
|