Update escorpius.py
Browse files- 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(
|
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
|