Commit ·
6d8d3de
1
Parent(s): cf27054
fix bug
Browse files- transcribed_calls.py +4 -0
transcribed_calls.py
CHANGED
|
@@ -92,6 +92,10 @@ class TranscribedCalls(datasets.GeneratorBasedBuilder):
|
|
| 92 |
path = os.path.join(local_extracted_archive, path) if local_extracted_archive else path
|
| 93 |
|
| 94 |
example_id = os.path.splitext(os.path.basename(path))[0]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
example = examples[example_id]
|
| 96 |
|
| 97 |
example['path'] = path
|
|
|
|
| 92 |
path = os.path.join(local_extracted_archive, path) if local_extracted_archive else path
|
| 93 |
|
| 94 |
example_id = os.path.splitext(os.path.basename(path))[0]
|
| 95 |
+
|
| 96 |
+
if example_id not in examples:
|
| 97 |
+
continue
|
| 98 |
+
|
| 99 |
example = examples[example_id]
|
| 100 |
|
| 101 |
example['path'] = path
|