sol-r/historica-corpus
Historica Corpus v2 A monolingual pretraining corpus of 314,438 passages (177M words, 1.1B characters) spanning 15 ancient and historical languages, from 500 BCE to 1750 CE. What's New in v2 2x more passages (314k vs 159k) due to varied-length chunking SGML entity resolution: Middle English þ/ȝ/ð properly rendered (928k entities fixed) PROIEL punctuation: reconstructed from presentation-after attributes TEI apparatus handling: <lem> (main reading) preserved… See the full description on the dataset page: https://huggingface.co/datasets/sol-r/historica-corpus.
Historica Corpus v2
A monolingual pretraining corpus of 314,438 passages (177M words, 1.1B characters) spanning 15 ancient and historical languages, from 500 BCE to 1750 CE.
What's New in v2
- 2x more passages (314k vs 159k) due to varied-length chunking
- SGML entity resolution: Middle English þ/ȝ/ð properly rendered (928k entities fixed)
- PROIEL punctuation: reconstructed from
presentation-afterattributes - TEI apparatus handling:
<lem>(main reading) preserved,<rdg>(variants) skipped,<supplied>kept - OCR artifact cleaning: line-break hyphenation, column numbers stripped
- Varied chunk lengths: 11% short (100-200w), 24% medium (200-400w), 32% mid (400-700w), 23% long (700-1000w), 10% full (1000-1200w)
- Metadata fixes: saga
se→ Swedish (not Sami), Coptic not hardcoded as Christian, OE genre not hardcoded as poetry
Languages
Sources
Schema
Extraction
Built with extract_corpus.py using a parser class architecture:
TEIParser— CSEL, PL, CAMENA, First1KGreek, CroALa, Coptic (with proper<lem>/<supplied>handling)EnglishTransParser— TEI + long-s OCR correctionProielParser— punctuation reconstructed frompresentation-afterSagaParser— entity resolution, corrected language codesMiddleEnglishParser— 203 SGML entities resolved to UnicodePlaintextParser,TesseraeParser,OldEnglishParser
