takengo2262
commited on
Commit
•
a165712
1
Parent(s):
1188314
Update bvcc-voicemos2022.py
Browse files- bvcc-voicemos2022.py +6 -9
bvcc-voicemos2022.py
CHANGED
@@ -249,15 +249,12 @@ class BvccDataset(datasets.GeneratorBasedBuilder):
|
|
249 |
data = row.strip().split(",")
|
250 |
print(data)
|
251 |
if self.config.name == "main_track":
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
score = 999
|
259 |
-
except ValueError:
|
260 |
-
continue
|
261 |
# Yields examples as (key, example) tuples
|
262 |
path = os.path.join(self.config.data_dir, "DATA/wav/", data[0])
|
263 |
yield key, {
|
|
|
249 |
data = row.strip().split(",")
|
250 |
print(data)
|
251 |
if self.config.name == "main_track":
|
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 |
# Yields examples as (key, example) tuples
|
259 |
path = os.path.join(self.config.data_dir, "DATA/wav/", data[0])
|
260 |
yield key, {
|