Seosnaps
commited on
Commit
•
33d9f1e
1
Parent(s):
e441928
Update common_voice_16_0_.py
Browse files- common_voice_16_0_.py +2 -2
common_voice_16_0_.py
CHANGED
@@ -174,8 +174,8 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
|
|
174 |
with open(meta_path, encoding="utf-8") as f:
|
175 |
reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
|
176 |
for row in tqdm(reader, desc="Reading metadata..."):
|
177 |
-
if not row["path"].endswith(".
|
178 |
-
row["path"] += ".
|
179 |
# accent -> accents in CV 8.0
|
180 |
if "accents" in row:
|
181 |
row["accent"] = row["accents"]
|
|
|
174 |
with open(meta_path, encoding="utf-8") as f:
|
175 |
reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
|
176 |
for row in tqdm(reader, desc="Reading metadata..."):
|
177 |
+
if not row["path"].endswith(".tar"):
|
178 |
+
row["path"] += ".tar"
|
179 |
# accent -> accents in CV 8.0
|
180 |
if "accents" in row:
|
181 |
row["accent"] = row["accents"]
|