takengo2262
commited on
Commit
•
9c24f3e
1
Parent(s):
a165712
Update bvcc-voicemos2022.py
Browse files- bvcc-voicemos2022.py +3 -3
bvcc-voicemos2022.py
CHANGED
@@ -234,7 +234,7 @@ class BvccDataset(datasets.GeneratorBasedBuilder):
|
|
234 |
name=datasets.Split.TEST,
|
235 |
# These kwargs will be passed to _generate_examples
|
236 |
gen_kwargs={
|
237 |
-
"filepath": os.path.join(data_dir, "DATA/sets/
|
238 |
"split": "test",
|
239 |
},
|
240 |
),
|
@@ -249,10 +249,10 @@ class BvccDataset(datasets.GeneratorBasedBuilder):
|
|
249 |
data = row.strip().split(",")
|
250 |
print(data)
|
251 |
if self.config.name == "main_track":
|
252 |
-
sysID, uttID = data[
|
253 |
uttID = uttID.replace(".wav", "")
|
254 |
if len(data) > 1:
|
255 |
-
score = data[
|
256 |
else:
|
257 |
score = 999
|
258 |
# Yields examples as (key, example) tuples
|
|
|
234 |
name=datasets.Split.TEST,
|
235 |
# These kwargs will be passed to _generate_examples
|
236 |
gen_kwargs={
|
237 |
+
"filepath": os.path.join(data_dir, "DATA/sets/test_mos_list.txt"),
|
238 |
"split": "test",
|
239 |
},
|
240 |
),
|
|
|
249 |
data = row.strip().split(",")
|
250 |
print(data)
|
251 |
if self.config.name == "main_track":
|
252 |
+
sysID, uttID = data[0].split("-")
|
253 |
uttID = uttID.replace(".wav", "")
|
254 |
if len(data) > 1:
|
255 |
+
score = data[1]
|
256 |
else:
|
257 |
score = 999
|
258 |
# Yields examples as (key, example) tuples
|