mariosasko
commited on
Commit
•
aa17014
1
Parent(s):
c35d333
Explicit cast from dict to str to avoid TypeError
Browse filesFix https://huggingface.co/datasets/EleutherAI/the_pile/discussions/10
- 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"}:
|