Datasets:

Multilinguality:
multilingual
Size Categories:
1M<n<10M
Language Creators:
found
Annotations Creators:
found
Source Datasets:
original
ArXiv:
License:
lhoestq HF staff commited on
Commit
911f635
1 Parent(s): 1d12cfb

Update xlsum.py

Browse files
Files changed (1) hide show
  1. xlsum.py +1 -1
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"],