Datasets:
saattrupdan
commited on
Commit
•
4798e82
1
Parent(s):
50e2efd
chore: Resume to previous state
Browse files- scandi-wiki.py +4 -5
scandi-wiki.py
CHANGED
@@ -111,8 +111,7 @@ class ScandiWiki(GeneratorBasedBuilder):
|
|
111 |
]
|
112 |
|
113 |
def _generate_examples(self, filepath: str):
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
yield key, data
|
|
|
111 |
]
|
112 |
|
113 |
def _generate_examples(self, filepath: str):
|
114 |
+
with Path(filepath).open(encoding="utf-8") as f:
|
115 |
+
for key, row in enumerate(f):
|
116 |
+
data = json.loads(row)
|
117 |
+
yield key, data
|
|