Datasets:
Update pclue.py
Browse files
pclue.py
CHANGED
|
@@ -89,7 +89,7 @@ class Pclue(datasets.GeneratorBasedBuilder):
|
|
| 89 |
|
| 90 |
def _generate_examples(self, filepath, split):
|
| 91 |
"""Yields examples."""
|
| 92 |
-
|
| 93 |
for idx, row in enumerate(f):
|
| 94 |
-
|
| 95 |
|
|
|
|
| 89 |
|
| 90 |
def _generate_examples(self, filepath, split):
|
| 91 |
"""Yields examples."""
|
| 92 |
+
with open(filepath, encoding="utf-8") as f:
|
| 93 |
for idx, row in enumerate(f):
|
| 94 |
+
yield idx, json.load(row)
|
| 95 |
|