Idrizorg commited on
Commit
16bc017
1 Parent(s): d3f0fee

Update WER_Evaluation_For_TTS.py

Browse files
Files changed (1) hide show
  1. WER_Evaluation_For_TTS.py +5 -5
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, delimiter="|", quotechar=None, skipinitialspace=True)
71
  for row in csv_reader:
72
- filename, text = row
73
  example = {
74
- "file": str(filename),
75
- "audio": str(filename),
76
- "text": 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