Datasets: [Question] Create Apache Arrow dataset from raw text file

Created on 25 May 2020  路  3Comments  路  Source: huggingface/datasets

Hi guys, I have gathered and preprocessed about 2GB of COVID papers from CORD dataset @ Kggle. I have seen you have a text dataset as "Crime and punishment" in Apache arrow format. Do you have any script to do it from a raw txt file (preprocessed as for BERT like) or any guide?
Is the worth of send it to you and add it to the NLP library?
Thanks, Manu

Most helpful comment

Is there a way to convert a dataset to Apache arrow format (locally/personal use) & use it before sending it to hugging face?

Sure, to get a dataset in arrow format you can either:

All 3 comments

We store every dataset in the Arrow format. This is convenient as it supports nested types and memory mapping. If you are curious feel free to check the pyarrow documentation

You can use this library to load your covid papers by creating a dataset script. You can find inspiration from the ones we've already written in /datasets. Here is a link to the steps to add a dataset

Hello @mrm8488 and @lhoestq

Is there a way to convert a dataset to Apache arrow format (locally/personal use) & use it before sending it to hugging face?

Thanks :)

Is there a way to convert a dataset to Apache arrow format (locally/personal use) & use it before sending it to hugging face?

Sure, to get a dataset in arrow format you can either:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jplu picture jplu  路  6Comments

NielsRogge picture NielsRogge  路  3Comments

astariul picture astariul  路  3Comments

HanGuo97 picture HanGuo97  路  4Comments

donggyukimc picture donggyukimc  路  5Comments