Can't load the 'books_sample.jsonl'

#3
by Moddus - opened

Hi,

I just downloaded the 'books_sample.jsonl' and wanted to load is as following:

redpajama_books = Dataset.from_json("books_sample.jsonl")

but getting the following error:

TypeError: Couldn't cast array of type
struct<title: string>
to
{'short_book_title': Value(dtype='string', id=None), 'publication_date': Value(dtype='int64', id=None), 'url': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None)}

Looks related to: https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T-Sample/discussions/2#643db1b1d455a0d0a0aa2066

Any suggestions are welcome :)

Sign up or log in to comment