Explicit cast from dict to str to avoid TypeError
#11
by mariosasko - opened
247 unmodified lines248249250251252253254247 unmodified linestext = file.read().decode("utf-8", errors="ignore") # encoding errors in enron_emailsyield key, {"text": text,"meta": meta,}key += 1elif subset in {"uspto", "github"}:247 unmodified lines248249250251252253254247 unmodified linestext = file.read().decode("utf-8", errors="ignore") # encoding errors in enron_emailsyield key, {"text": text,"meta": str(meta),}key += 1elif subset in {"uspto", "github"}:
the_pile.py+1-1