Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
100B<n<1T
Language Creators:
found
Annotations Creators:
no-annotation
Source Datasets:
original
ArXiv:
License:
mariosasko commited on
Commit
26efd77
1 Parent(s): c35d333

Explicit cast from dict to str to avoid TypeError (#11)

Browse files

- Explicit cast from dict to str to avoid TypeError (aa17014f6f3c345803b08f64d026ed7c78e58dfc)

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"}: