Datasets:
Tasks:
Automatic Speech Recognition
Formats:
parquet
Size:
10K - 100K
Tags:
speech-recognition
License:
BenjaminGalliot
commited on
Commit
•
4c4a50d
1
Parent(s):
d00a360
++ japhug
Browse files- pangloss.py +1 -1
pangloss.py
CHANGED
@@ -184,7 +184,7 @@ class PanglossDataset(datasets.GeneratorBasedBuilder):
|
|
184 |
with open(filepath, encoding="utf-8") as file_descriptor:
|
185 |
reader = csv.DictReader(file_descriptor)
|
186 |
for key, row in enumerate(reader):
|
187 |
-
translated_fieldnames = [self.field_translations[fieldname] for fieldname in reader.fieldnames if fieldname in field_translations.keys()]
|
188 |
data = dict(zip(translated_fieldnames, row.values()))
|
189 |
data["audio"] = os.path.join(os.path.dirname(filepath), data["path"])
|
190 |
# Yields examples as (key, example) tuples
|
|
|
184 |
with open(filepath, encoding="utf-8") as file_descriptor:
|
185 |
reader = csv.DictReader(file_descriptor)
|
186 |
for key, row in enumerate(reader):
|
187 |
+
translated_fieldnames = [self.field_translations[fieldname] for fieldname in reader.fieldnames if fieldname in self.field_translations.keys()]
|
188 |
data = dict(zip(translated_fieldnames, row.values()))
|
189 |
data["audio"] = os.path.join(os.path.dirname(filepath), data["path"])
|
190 |
# Yields examples as (key, example) tuples
|