Datasets:

Languages:
English
ArXiv:
License:

Explicit cast from dict to str to avoid TypeError

#11
by mariosasko - opened
Files changed (1) hide show
  1. the_pile.py +1 -1
the_pile.py CHANGED
@@ -248,7 +248,7 @@ class ThePile(datasets.GeneratorBasedBuilder):
248
  text = file.read().decode("utf-8", errors="ignore") # encoding errors in enron_emails
249
  yield key, {
250
  "text": text,
251
- "meta": meta,
252
  }
253
  key += 1
254
  elif subset in {"uspto", "github"}:
 
248
  text = file.read().decode("utf-8", errors="ignore") # encoding errors in enron_emails
249
  yield key, {
250
  "text": text,
251
+ "meta": str(meta),
252
  }
253
  key += 1
254
  elif subset in {"uspto", "github"}: