Update xlsum.py
Browse files
xlsum.py
CHANGED
@@ -158,7 +158,7 @@ class Xlsum(datasets.GeneratorBasedBuilder):
|
|
158 |
for path, f in files:
|
159 |
if path == filepath:
|
160 |
for idx_, row in enumerate(f):
|
161 |
-
data = json.loads(row)
|
162 |
yield idx_, {
|
163 |
"id": data["id"],
|
164 |
"url": data["url"],
|
|
|
158 |
for path, f in files:
|
159 |
if path == filepath:
|
160 |
for idx_, row in enumerate(f):
|
161 |
+
data = json.loads(row.decode("utf-8"))
|
162 |
yield idx_, {
|
163 |
"id": data["id"],
|
164 |
"url": data["url"],
|