--- license: mit pretty_name: BART Dataset v2 language: - en size_categories: - 100K= 0.85`; `<= 50` OCR artifacts; `>= 500` chars raw and clean | | Log-prior | mean GPT-2 token log-prior within p2.5–p97.5, i.e. `-11.039` to `-9.832` | | Granularity | whole books kept as rows — no chunking | | Skipped | post-1900 physics keyword filter (incompatible with a 1930s cutoff) | | Removal reason | Documents | |---|---:| | `prior_high` | 3,991 | | `prior_low` | 3,838 | | `ocr_artifacts` | 2,689 | | **Total removed** | **10,518 (6.56%)** |
Log-prior threshold calibration Thresholds were calibrated on a sample of 3,946 raw documents, of which 3,890 survived structural filtering (56 removed as `ocr_artifacts`). Estimated prior-based removal from that sample: 5.04%. | Percentile | Mean log-prior | |---:|---:| | 1 | -11.2520 | | **2.5** (low cut) | **-11.0390** | | 5 | -10.8738 | | 10 | -10.7243 | | 25 | -10.5201 | | 50 | -10.3274 | | 75 | -10.1492 | | 90 | -9.9888 | | 95 | -9.9095 | | **97.5** (high cut) | **-9.8320** | | 99 | -9.7501 | Full values in `_prior/thresholds.json`; per-run detail in `cleaning_report.json`.
Character accounting | Stage | Characters | |---|---:| | Raw (v1) | 118,745,375,871 | | After structural clean, before prior filter | 114,051,142,521 | | Kept | 106,274,384,672 | | **Kept vs. raw** | **89.50%** |
## Schema and usage Single string column named `text`. ```python from datasets import load_dataset ds = load_dataset("jbduran/bart-dataset-v2", split="train", streaming=True) print(next(iter(ds))["text"][:500]) ``` Artifacts: `_prior/` (log-prior thresholds and sample stats), `cleaning_report.json` (full run report). ## Citation Ultimately derived from Institutional Books 1.0: ```bibtex @misc{institutionalbooks2025, title = {Institutional Books 1.0: A 242B Token Dataset from Harvard Library's Collections, Refined for Accuracy and Usability}, year = {2025}, eprint = {2506.08300}, archivePrefix = {arXiv} } ```