Miquel Esplà Gomis commited on
Commit
67bd7ad
1 Parent(s): 66107a3

fixing variale name

Browse files
Files changed (1) hide show
  1. parallel_data.py +2 -2
parallel_data.py CHANGED
@@ -97,9 +97,9 @@ class MaCoCu_parallel(datasets.GeneratorBasedBuilder):
97
  data_file = dl_manager.download_and_extract({"data_file": path})
98
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs=data_file)]
99
 
100
- def _generate_examples(self, filepath):
101
  """Yields examples."""
102
- with open(filepath, encoding="utf-8") as f:
103
  reader = csv.reader(f, delimiter="\t", quotechar='"')
104
  for id_, row in enumerate(reader):
105
  if id_ == 0:
 
97
  data_file = dl_manager.download_and_extract({"data_file": path})
98
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs=data_file)]
99
 
100
+ def _generate_examples(self, data_file):
101
  """Yields examples."""
102
+ with open(data_file, encoding="utf-8") as f:
103
  reader = csv.reader(f, delimiter="\t", quotechar='"')
104
  for id_, row in enumerate(reader):
105
  if id_ == 0: