jordiae commited on
Commit
0249527
1 Parent(s): 8f09c82

Update escorpius.py

Browse files
Files changed (1) hide show
  1. escorpius.py +1 -1
escorpius.py CHANGED
@@ -141,7 +141,7 @@ class EsCorpius(datasets.GeneratorBasedBuilder):
141
  key = 0
142
 
143
  for path in files:#sorted(Path(files).rglob('*.jsonl*')):
144
- with open(open(path, "r"), encoding="utf-8") as f:
145
  for row in f:
146
  data = json.loads(row)
147
  yield key, data
 
141
  key = 0
142
 
143
  for path in files:#sorted(Path(files).rglob('*.jsonl*')):
144
+ with open(path, "r", encoding="utf-8") as f:
145
  for row in f:
146
  data = json.loads(row)
147
  yield key, data