On the Use of ArXiv as a Dataset
Paper β’ 1905.00075 β’ Published
Error code: ClientConnectionError
Collection of ArXiv paper abstracts in JSON format for search and retrieval tasks.
Each line contains a JSON object:
{"abstract": "Paper abstract text..."}
from huggingface_hub import hf_hub_download
import json
# Download corpus
corpus_path = hf_hub_download(
repo_id="ismailemir/arxiv-corpus",
filename="arxiv_abstracts.json",
repo_type="dataset"
)
# Load corpus
corpus = []
with open(corpus_path, 'r') as f:
for line in f:
row = json.loads(line)
corpus.append(row["abstract"])
print(f"Loaded {len(corpus):,} abstracts")
Apache 2.0 - Please cite ArXiv if using this data.
@article{clement2019arxiv,
title={On the Use of ArXiv as a Dataset},
author={Clement, Colin B and Bierbaum, Matthew and O'Keeffe, Kevin P and Alemi, Alexander A},
journal={arXiv preprint arXiv:1905.00075},
year={2019}
}
For issues or questions, please open an issue on the Hugging Face dataset page.