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