Tolulope
commited on
Commit
·
375e941
1
Parent(s):
885b3a3
hadnling space seaprated files
Browse files- ml-superb-subset.py +2 -0
ml-superb-subset.py
CHANGED
@@ -91,6 +91,8 @@ class MLSuperb(datasets.GeneratorBasedBuilder):
|
|
91 |
metadata = {}
|
92 |
with open(transcript_path, encoding="utf-8") as f:
|
93 |
reader = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
|
|
|
|
|
94 |
for row in reader:
|
95 |
id_ = row[0]
|
96 |
if not row[0].endswith(".wav"):
|
|
|
91 |
metadata = {}
|
92 |
with open(transcript_path, encoding="utf-8") as f:
|
93 |
reader = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
|
94 |
+
if len(reader[0]) == 1:
|
95 |
+
reader = csv.reader(f, delimiter=" ", quoting=csv.QUOTE_NONE)
|
96 |
for row in reader:
|
97 |
id_ = row[0]
|
98 |
if not row[0].endswith(".wav"):
|