Update sci_lay.py
Browse files- sci_lay.py +1 -2
sci_lay.py
CHANGED
|
@@ -142,10 +142,9 @@ class SciLay(datasets.GeneratorBasedBuilder):
|
|
| 142 |
"""Yields examples."""
|
| 143 |
for paths_per_journal in paths:
|
| 144 |
for path in paths_per_journal:
|
| 145 |
-
raise Exception(f"Il path è = {path}")
|
| 146 |
with open(path, "rb") as fin:
|
| 147 |
-
fin = gzip.GzipFile(fileobj=fin)
|
| 148 |
for row in fin:
|
|
|
|
| 149 |
json_obj = json.loads(row)
|
| 150 |
yield json_obj["doi"], {
|
| 151 |
_DOI: json_obj[_DOI],
|
|
|
|
| 142 |
"""Yields examples."""
|
| 143 |
for paths_per_journal in paths:
|
| 144 |
for path in paths_per_journal:
|
|
|
|
| 145 |
with open(path, "rb") as fin:
|
|
|
|
| 146 |
for row in fin:
|
| 147 |
+
raise Exception(f"la row è uguale a {row}")
|
| 148 |
json_obj = json.loads(row)
|
| 149 |
yield json_obj["doi"], {
|
| 150 |
_DOI: json_obj[_DOI],
|