ad6398 commited on
Commit
5e27ef9
1 Parent(s): d93f3b5

Update ldkp10k.py

Browse files
Files changed (1) hide show
  1. ldkp10k.py +1 -1
ldkp10k.py CHANGED
@@ -108,7 +108,7 @@ class LDKP10k(datasets.GeneratorBasedBuilder):
108
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
109
  def _generate_examples(self, filepaths, split):
110
  for filepath in filepaths:
111
- with open(filepaths, encoding="utf-8") as f:
112
  for key, row in enumerate(f):
113
  data = json.loads(row)
114
  yield key, {
 
108
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
109
  def _generate_examples(self, filepaths, split):
110
  for filepath in filepaths:
111
+ with open(filepath, encoding="utf-8") as f:
112
  for key, row in enumerate(f):
113
  data = json.loads(row)
114
  yield key, {