Datasets:
new attempt
Browse files
widdd.py
CHANGED
@@ -99,6 +99,6 @@ class Widdd(datasets.GeneratorBasedBuilder):
|
|
99 |
"""Yields examples."""
|
100 |
logging.info(f"Yielding {filepath}")
|
101 |
with open(filepath, encoding = "utf8") as fp:
|
102 |
-
for l in fp:
|
103 |
d = json.loads(l)
|
104 |
-
yield d
|
|
|
99 |
"""Yields examples."""
|
100 |
logging.info(f"Yielding {filepath}")
|
101 |
with open(filepath, encoding = "utf8") as fp:
|
102 |
+
for id_, l in enumerate(fp):
|
103 |
d = json.loads(l)
|
104 |
+
yield id_, d
|