Restore the author-written card (source table and licences)
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657---license: cc-by-sa-4.0language: [grc]task_categories: [fill-mask]size_categories: [100M<n<1B]tags: [ancient-greek, classical-philology, ocr, masked-language-modeling]---# Ancient Greek pretraining corpus~380M words of Ancient Greek in two quality tiers, the pretraining corpus behind the Stoicheiarelease.## Composition| source | words | notes ||---|---|---|| Internet Archive volumes | ~311M | public-domain scans, re-OCR'd with a vision--language model fine-tuned for polytonic Greek || Opera Graeca Adnotata | part of ~40M | open digitized critical editions, TLG work identifiers where available || papyri.info | part of ~40M | documentary papyri || Database of Byzantine Book Epigrams | part of ~40M | book epigrams || Greek New Testament | part of ~40M | |## Tiers* **pristine** (~90M words) -- released untouched; passed normalization and dictionary-basedcorrection with a high cleanliness score.* **repaired** (~290M words) -- reconstructed by an instruction-tuned LLM constrained to correctonly well-attested OCR confusions and to discard rather than fabricate. Useful as trainingmaterial; **not** a critical text. Reusing it as a philological source risks propagating OCRerror into scholarship.The split is by an automatic per-document cleanliness score, so the tiers differ measurably inquality: a model's held-out bits-per-character on reference slices is 0.234 on pristine against0.309 on repaired.## Language and coverageAncient Greek (`grc`), polytonic, spanning archaic to Byzantine authors, literary prose and verseplus documentary material. The corpus reflects the surviving canon and therefore its transmissionbiases: it is overwhelmingly the work of elite male authors preserved by later copying, withdocumentary texts supplying most of what survives from other social strata. Ancient sources treatslavery, sexual violence and ethnic hostility as ordinary; this content is retained, because forphilological research it is the object of study.## ReproducibilityRevision-pinned: cite the commit SHA of the revision you load (`load_dataset(..., revision=...)`),which is what the accompanying paper does, so that a later update cannot silently change apublished result.## LicenceCC-BY-SA-4.0, inherited from the source release. The underlying ancient works are public domain;this compilation is share-alike, so derivatives must carry the same licence.Part of the Stoicheia release.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384---license: cc-by-sa-4.0language:- grctask_categories:- fill-maskpretty_name: Ancient Greek Corpus (clean, LLM-repaired)size_categories:- 100M<n<1Btags:- ancient-greek- ancient-greek-grc- classical-philology- masked-language-modeling- ocrconfigs:- config_name: defaultdata_files:- split: pristinepath: data/pristine/*.parquet- split: repairedpath: data/repaired/*.parquet---# Ancient Greek Corpus — clean, LLM-repairedA large, deduplicated Ancient Greek corpus assembled from open born-digital editions and public-domainOCR, with the noisier OCR **repaired by Qwen3.6-27B**. ~**383 million words**.## Tiers (splits)| split | records | ~words | what it is ||---|---:|---:|---|| `pristine` | 408,219 | ~90 M | already-clean text (spellchecker ≥99% clean), passed through untouched || `repaired` | 1,743,056 | ~290 M | noisier OCR (75–95% clean) reconstructed by an LLM editor: lines reflowed, split words rejoined, full polytonic accentuation restored, garbled passages dropped |Total **2,151,275 records · ~380 M words**. A cleanliness floor (`clean ≥ 0.75`) wasapplied so the noisiest OCR (which the LLM could not reliably repair) is excluded; theper-record `clean` score lets you tighten the floor further if you wish.## Record schema```json{"source": "greek_pd", "id": "...", "license": "Public domain","tier": "repaired", "orig_band": "p080", "clean": 0.83, "text": "..."}````text` is NFC-normalised polytonic Greek. `clean` is the pre-repair spellchecker score;`orig_band` is the original cleanliness band.## How the `repaired` tier was madeOCR bands (60–95% of words accepted by an Ancient Greek spellchecker) were shown to**Qwen3.6-27B** with an editor prompt that: rejoins words split across lines, reflowsone-word-per-line text, restores correct breathings/accents/iota-subscript, fixes only*certain* OCR letter confusions, expands nomina sacra, and **drops any clause it cannotrestore with confidence** (no fabrication — verified: output word-skeletons match thesource). Genuinely garbled input yields nothing rather than a guess.## Sources & licensesMixed-licence compilation (per-record `license` field); the compilation is offered under**CC BY-SA 4.0**.| source | upstream | licence ||---|---|---|| `ia` | archive.org `language:grc` OCR | Public domain || `greek_pd` | PleIAs Greek-PD (pre-1884 OCR) | Public domain || `pg` | Patrologia Graeca (calfa OCR) | CC BY 4.0 (Auwers, Vidal-Gorène, Kindt, Somers) || `catholic` | corpus_corporum OCR | Public domain || `gutenberg` | Project Gutenberg Greek | Public domain || `ddbdp`, `dclp` | papyri.info (DDbDP / DCLP) | CC BY 3.0 || `oga` | Opera Graeca Adnotata (Perseus + First1KGreek + PTA) | CC BY-SA 4.0 || `dbbe` | Database of Byzantine Book Epigrams | CC BY-SA 4.0 || `sblgnt` | SBL Greek New Testament | SBLGNT licence (attribution) |## Usage```pythonfrom datasets import load_datasetds = load_dataset("Ericu950/AncientGreek") # splits: pristine, repairedclean = load_dataset("Ericu950/AncientGreek", split="pristine")# filter the repaired tier by pre-repair cleanliness:rep = load_dataset("Ericu950/AncientGreek", split="repaired").filter(lambda r: r["clean"] >= 0.9)```
README.md+67-40