takengo2262
commited on
Commit
•
6aa1eb4
1
Parent(s):
716d876
Update bvcc-voicemos2022.py
Browse files- bvcc-voicemos2022.py +9 -6
bvcc-voicemos2022.py
CHANGED
@@ -248,12 +248,15 @@ class BvccDataset(datasets.GeneratorBasedBuilder):
|
|
248 |
for key, row in enumerate(f.readlines()):
|
249 |
data = row.strip().split(",")
|
250 |
if self.config.name == "main_track":
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
|
|
|
|
|
|
257 |
# Yields examples as (key, example) tuples
|
258 |
path = os.path.join(self.config.data_dir, "DATA/wav/", data[0])
|
259 |
yield key, {
|
|
|
248 |
for key, row in enumerate(f.readlines()):
|
249 |
data = row.strip().split(",")
|
250 |
if self.config.name == "main_track":
|
251 |
+
try:
|
252 |
+
sysID, uttID = data[1].split("-")
|
253 |
+
uttID = uttID.replace(".wav", "")
|
254 |
+
if len(data) > 1:
|
255 |
+
score = data[2]
|
256 |
+
else:
|
257 |
+
score = 999
|
258 |
+
except ValueError:
|
259 |
+
continue
|
260 |
# Yields examples as (key, example) tuples
|
261 |
path = os.path.join(self.config.data_dir, "DATA/wav/", data[0])
|
262 |
yield key, {
|