mattbonnell commited on
Commit
a52fb55
·
1 Parent(s): 73222e1
Files changed (1) hide show
  1. transcribed_calls.py +2 -2
transcribed_calls.py CHANGED
@@ -70,10 +70,10 @@ class TranscribedCalls(datasets.GeneratorBasedBuilder):
70
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
71
  def _generate_examples(self, metadata_path, local_extracted_archive, audio_files, split):
72
  print(f"generating examples for split {split}")
73
- with open(metadata_path, encoding="utf-8") as f:
74
  metadata_reader = csv.reader(f)
75
  # skip headers
76
- next(metadata_reader)
77
  for (row, (audio_path, audio_file)) in zip(metadata_reader, audio_files):
78
  print(f"processing row {row}")
79
  id_, example_split, words, phonemes = row
 
70
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
71
  def _generate_examples(self, metadata_path, local_extracted_archive, audio_files, split):
72
  print(f"generating examples for split {split}")
73
+ with open(metadata_path) as f:
74
  metadata_reader = csv.reader(f)
75
  # skip headers
76
+ print(next(metadata_reader))
77
  for (row, (audio_path, audio_file)) in zip(metadata_reader, audio_files):
78
  print(f"processing row {row}")
79
  id_, example_split, words, phonemes = row