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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- arxiv
|
| 9 |
+
- maths
|
| 10 |
+
- computer-science
|
| 11 |
+
- physics
|
| 12 |
+
size_categories:
|
| 13 |
+
- 10K<n<100K
|
| 14 |
+
---
|
| 15 |
+
Perfect โ hereโs a **clean, professional README** for your **15GB medium version**, with a clear reference to the full 80GB dataset.
|
| 16 |
+
|
| 17 |
+
You can paste this directly into `README.md` of the medium repo.
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
<h1 align="center">arxiv-tex-corpus-medium (15GB)</h1>
|
| 22 |
+
<p align="center">
|
| 23 |
+
Medium-scale LaTeX corpus from arXiv (math, CS, physics, statistics)
|
| 24 |
+
</p>
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## ๐ Overview
|
| 29 |
+
|
| 30 |
+
**arxiv-tex-corpus-medium (15GB)** is a medium-sized version of the arXiv LaTeX corpus, containing structured LaTeX source content extracted from selected arXiv categories.
|
| 31 |
+
|
| 32 |
+
This dataset is restricted to the following categories:
|
| 33 |
+
|
| 34 |
+
* `math`
|
| 35 |
+
* `cs`
|
| 36 |
+
* `hep-th`
|
| 37 |
+
* `hep-ph`
|
| 38 |
+
* `quant-ph`
|
| 39 |
+
* `stat.ML`
|
| 40 |
+
* `stat.TH`
|
| 41 |
+
|
| 42 |
+
This version (~15GB) is intended for:
|
| 43 |
+
|
| 44 |
+
* Research experiments
|
| 45 |
+
* Model prototyping
|
| 46 |
+
* Ablation studies
|
| 47 |
+
* Resource-constrained training setups
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
## ๐ Full Dataset
|
| 52 |
+
|
| 53 |
+
For the complete version (~80GB), see:
|
| 54 |
+
|
| 55 |
+
๐ [arxiv-tex-corpus-full]([URL](https://huggingface.co/datasets/anuj0456/arxiv-tex-corpus-full))
|
| 56 |
+
|
| 57 |
+
The 80GB version contains the full dataset without size reduction.
|
| 58 |
+
|
| 59 |
+
---
|
| 60 |
+
|
| 61 |
+
## ๐ฆ Files
|
| 62 |
+
|
| 63 |
+
```
|
| 64 |
+
train.jsonl
|
| 65 |
+
val.jsonl
|
| 66 |
+
checkpoint.txt
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
### `train.jsonl`
|
| 70 |
+
|
| 71 |
+
Training split in JSON Lines format.
|
| 72 |
+
|
| 73 |
+
### `val.jsonl`
|
| 74 |
+
|
| 75 |
+
Validation split in JSON Lines format.
|
| 76 |
+
|
| 77 |
+
### `checkpoint.txt`
|
| 78 |
+
|
| 79 |
+
Internal processing checkpoint file used during dataset creation.
|
| 80 |
+
Not required for training.
|
| 81 |
+
|
| 82 |
+
---
|
| 83 |
+
|
| 84 |
+
## ๐งพ Data Format
|
| 85 |
+
|
| 86 |
+
Each line in `train.jsonl` and `val.jsonl` is a JSON object.
|
| 87 |
+
|
| 88 |
+
Example schema:
|
| 89 |
+
|
| 90 |
+
```json
|
| 91 |
+
{
|
| 92 |
+
"paper_id": "xxxx.xxxxx",
|
| 93 |
+
"category": "cs",
|
| 94 |
+
"latex": "\\documentclass{article} ..."
|
| 95 |
+
}
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
### Fields
|
| 99 |
+
|
| 100 |
+
* `paper_id` โ arXiv identifier
|
| 101 |
+
* `category` โ one of:
|
| 102 |
+
|
| 103 |
+
* `math`
|
| 104 |
+
* `cs`
|
| 105 |
+
* `hep-th`
|
| 106 |
+
* `hep-ph`
|
| 107 |
+
* `quant-ph`
|
| 108 |
+
* `stat.ML`
|
| 109 |
+
* `stat.TH`
|
| 110 |
+
* `latex` โ extracted LaTeX source content
|
| 111 |
+
|
| 112 |
+
---
|
| 113 |
+
|
| 114 |
+
## ๐ Dataset Characteristics
|
| 115 |
+
|
| 116 |
+
* Size: ~15GB
|
| 117 |
+
* Format: JSONL
|
| 118 |
+
* Categories: mathematics, computer science, theoretical physics, quantum physics, and statistics
|
| 119 |
+
* Derived from the same pipeline as the 80GB version
|
| 120 |
+
* Snapshot date: *(add date here)*
|
| 121 |
+
|
| 122 |
+
This version is a reduced subset of the full dataset.
|
| 123 |
+
|
| 124 |
+
---
|
| 125 |
+
|
| 126 |
+
## ๐งน Processing Pipeline
|
| 127 |
+
|
| 128 |
+
The dataset was constructed by:
|
| 129 |
+
|
| 130 |
+
1. Downloading arXiv source archives.
|
| 131 |
+
2. Extracting LaTeX source files.
|
| 132 |
+
3. Filtering to retain only specified categories.
|
| 133 |
+
4. Converting documents to structured JSONL format.
|
| 134 |
+
5. Creating train/validation splits.
|
| 135 |
+
6. Subsampling to create the 15GB medium version.
|
| 136 |
+
|
| 137 |
+
---
|
| 138 |
+
|
| 139 |
+
## โ๏ธ Licensing
|
| 140 |
+
|
| 141 |
+
This dataset contains LaTeX source files from papers hosted on arXiv.
|
| 142 |
+
|
| 143 |
+
Each paper retains its original license as specified by its authors on arXiv.
|
| 144 |
+
|
| 145 |
+
Users are responsible for complying with the licensing terms of individual papers.
|
| 146 |
+
|
| 147 |
+
For license information:
|
| 148 |
+
[https://arxiv.org/help/license](https://arxiv.org/help/license)
|
| 149 |
+
|
| 150 |
+
---
|
| 151 |
+
|
| 152 |
+
## ๐ฏ Intended Use
|
| 153 |
+
|
| 154 |
+
* Medium-scale pretraining
|
| 155 |
+
* Fine-tuning on scientific domains
|
| 156 |
+
* Research in mathematical reasoning
|
| 157 |
+
* LaTeX modeling and generation
|
| 158 |
+
|
| 159 |
+
---
|
| 160 |
+
|
| 161 |
+
## ๐ซ Limitations
|
| 162 |
+
|
| 163 |
+
* LaTeX sources may contain compilation errors.
|
| 164 |
+
* Some source bundles may be incomplete.
|
| 165 |
+
* Licensing varies per paper.
|
| 166 |
+
* This dataset is a subset of the full corpus.
|
| 167 |
+
|
| 168 |
+
---
|
| 169 |
+
|
| 170 |
+
## ๐ Citation
|
| 171 |
+
|
| 172 |
+
If you use this dataset, please cite:
|
| 173 |
+
|
| 174 |
+
1. The original arXiv papers
|
| 175 |
+
2. The arxiv-latex-corpus dataset
|
| 176 |
+
|
| 177 |
+
Example:
|
| 178 |
+
|
| 179 |
+
```bibtex
|
| 180 |
+
@dataset{arxiv_latex_corpus_2026,
|
| 181 |
+
title = {arxiv-latex-corpus},
|
| 182 |
+
year = {2026},
|
| 183 |
+
publisher = {Hugging Face},
|
| 184 |
+
}
|
| 185 |
+
```
|
| 186 |
+
|
| 187 |
+
๐ค Acknowledgements
|
| 188 |
+
This dataset is derived from papers made publicly available by authors via arXiv. We thank the research community for openly sharing their work.
|