Datasets:
Languages:
English
Multilinguality:
monolingual
Size Categories:
100B<n<1T
Language Creators:
found
Annotations Creators:
no-annotation
Source Datasets:
original
ArXiv:
License:
Explicit cast from dict to str to avoid TypeError
#11
by
mariosasko
- opened
- 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"}:
|