Tolulope
commited on
Commit
·
9938be4
1
Parent(s):
e4cec4f
fixing indentation and adding zipped version
Browse files- ml-superb-subset.py +7 -6
- ml_superb_subset.zip +3 -0
ml-superb-subset.py
CHANGED
@@ -102,18 +102,19 @@ class MLSuperb(datasets.GeneratorBasedBuilder):
|
|
102 |
|
103 |
yield id_, {
|
104 |
"audio": wavs_path + row[0],
|
105 |
-
"sentence": "
|
106 |
"id": id_,
|
107 |
}
|
108 |
else:
|
109 |
for row in reader:
|
|
|
110 |
id_ = row[0]
|
111 |
if not row[0].endswith(".wav"):
|
112 |
row[0] += ".wav"
|
113 |
metadata[row[0]] = row[-1]
|
114 |
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
|
|
102 |
|
103 |
yield id_, {
|
104 |
"audio": wavs_path + row[0],
|
105 |
+
"sentence": "".join(row[2:]),
|
106 |
"id": id_,
|
107 |
}
|
108 |
else:
|
109 |
for row in reader:
|
110 |
+
# print(row)
|
111 |
id_ = row[0]
|
112 |
if not row[0].endswith(".wav"):
|
113 |
row[0] += ".wav"
|
114 |
metadata[row[0]] = row[-1]
|
115 |
|
116 |
+
yield id_, {
|
117 |
+
"audio": wavs_path + row[0],
|
118 |
+
"sentence": row[-1],
|
119 |
+
"id": id_,
|
120 |
+
}
|
ml_superb_subset.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec205f088507141b315496fc09c958397f3a04b6c3fca009cc600103ec3f1d4c
|
3 |
+
size 1934801121
|