Skip to content

Instantly share code, notes, and snippets.

View adivekar-utexas's full-sized avatar
🦙

Abhishek Divekar adivekar-utexas

🦙
View GitHub Profile
@adivekar-utexas
adivekar-utexas / realnews_download_split.py
Last active May 21, 2023 17:51
Download and split REALNEWS into multiple small parquet files
"""
REALNEWS is a big dataset of several million news articles obtained from Common Crawl.
It was used to train the Grover news generation language model.
Details here: https://arxiv.org/abs/1905.12616
In this script, we download it following instructions from https://github.com/rowanz/grover/tree/master/realnews
(please make sure to fill in the survey in the link above!)
After downloading, the file is a .tar.gz containing an enormous .jsonl file.
To split it into multiple small .parquet files, I've written the script below.