Datasets:
Tasks:
Text-to-Speech
Languages:
English
Update WER_Evaluation_For_TTS.py
Browse files
WER_Evaluation_For_TTS.py
CHANGED
@@ -67,12 +67,12 @@ class SOMOS(datasets.GeneratorBasedBuilder):
|
|
67 |
"""Generate examples from an data archive_path."""
|
68 |
|
69 |
with open(csv_path, encoding="utf-8") as csv_file:
|
70 |
-
csv_reader = csv.reader(csv_file
|
71 |
for row in csv_reader:
|
72 |
-
filename
|
73 |
example = {
|
74 |
-
"file": str(filename),
|
75 |
-
"audio": str(filename),
|
76 |
-
"text":
|
77 |
}
|
78 |
yield filename, example
|
|
|
67 |
"""Generate examples from an data archive_path."""
|
68 |
|
69 |
with open(csv_path, encoding="utf-8") as csv_file:
|
70 |
+
csv_reader = csv.reader(csv_file)
|
71 |
for row in csv_reader:
|
72 |
+
filename = row
|
73 |
example = {
|
74 |
+
"file": str(filename[0]),
|
75 |
+
"audio": str(filename[0]),
|
76 |
+
"text": filename[1],
|
77 |
}
|
78 |
yield filename, example
|