Upload datasets.py
Browse files- datasets.py +2 -2
datasets.py
CHANGED
|
@@ -92,11 +92,11 @@ class Minds14(datasets.GeneratorBasedBuilder):
|
|
| 92 |
csv_reader = csv.reader(csv_file, delimiter=",", skipinitialspace=True)
|
| 93 |
next(csv_reader)
|
| 94 |
for row in csv_reader:
|
| 95 |
-
filepath,
|
| 96 |
filepath = os.path.join(audio_path, *filepath.split("/"))
|
| 97 |
yield key, {
|
| 98 |
"path": filepath,
|
| 99 |
"audio": filepath,
|
| 100 |
-
"transcription":
|
| 101 |
}
|
| 102 |
key += 1
|
|
|
|
| 92 |
csv_reader = csv.reader(csv_file, delimiter=",", skipinitialspace=True)
|
| 93 |
next(csv_reader)
|
| 94 |
for row in csv_reader:
|
| 95 |
+
filepath, reference = row
|
| 96 |
filepath = os.path.join(audio_path, *filepath.split("/"))
|
| 97 |
yield key, {
|
| 98 |
"path": filepath,
|
| 99 |
"audio": filepath,
|
| 100 |
+
"transcription": reference,
|
| 101 |
}
|
| 102 |
key += 1
|