Datasets:
Sean MacAvaney commited on
Commit ·
e9cb8eb
1
Parent(s): 0807d8d
update loading script
Browse files
hc4.py
CHANGED
|
@@ -38,7 +38,7 @@ class Hc4(datasets.GeneratorBasedBuilder):
|
|
| 38 |
]
|
| 39 |
|
| 40 |
def _generate_examples(self, filepath):
|
| 41 |
-
with gzip.open(filepath
|
| 42 |
for key, row in enumerate(f):
|
| 43 |
data = json.loads(row)
|
| 44 |
yield key, data
|
|
|
|
| 38 |
]
|
| 39 |
|
| 40 |
def _generate_examples(self, filepath):
|
| 41 |
+
with gzip.open(filepath) as f:
|
| 42 |
for key, row in enumerate(f):
|
| 43 |
data = json.loads(row)
|
| 44 |
yield key, data
|