Plans11 commited on
Commit
953d8e3
·
verified ·
1 Parent(s): b84fad5

AncientScripts Parallel Corpus v1.0.0: BUILD_LOG.md

Browse files
Files changed (1) hide show
  1. BUILD_LOG.md +107 -0
BUILD_LOG.md ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AncientScripts Parallel Corpus v1.0.0 — Build Log
2
+
3
+ **Build date:** 2026-10-19
4
+ **Target:** 25,000 rows
5
+ **Final:** **26,467 rows** (unique, after SHA-256 dedup; 2 duplicates removed from 26,469 loaded)
6
+
7
+ **SHA-256:** `89b6bd5576636122630cf611694b72055a7c9c1d15cfbc81399b39366e97eea2`
8
+
9
+ ## Final Counts by Writing System
10
+ | Writing System | Rows | Sources |
11
+ |---|---|---|
12
+ | Latin | 13,614 | Pilot Caesar (404) + Latin extension (13,210) |
13
+ | Greek (polytonic) | 6,917 | Odyssey/Plato (3,938) + Iliad line-level (2,979) |
14
+ | Cuneiform | 4,341 | RIAo (4,343 loaded, 2 dups removed) |
15
+ | Chinese (Traditional) | 894 | Pilot TTC (81) + Analects (498) + Mencius/etc (315) |
16
+ | Devanagari (Sanskrit) | 701 | Bhagavad-Gita |
17
+ | **Total** | **26,467** | |
18
+
19
+ ## Build Order & Yields
20
+
21
+ ### 1. Latin — 13,210 rows
22
+ **Builder:** `build_latin.py` (PerseusDL/canonical-latinLit pipeline)
23
+ **Sources:** Latin TEI (PerseusDL, CC BY-SA); English translations PD-verified per-text (pre-1930 imprint dates from TEI headers).
24
+ **Coverage:** Plautus (20 plays), Terence (6 plays), Caesar (Civil Wars), Catullus (Carmina), Cicero (speeches against Verres, etc.).
25
+ **Decisions:**
26
+ - Excluded Caesar's Gallic War (already in pilot; avoids duplication).
27
+ - Denylist for non-PD/unverifiable translations (Way 1955, Spencer 1935-38, Mahoney modern, etc.).
28
+ - Guards: no zero-key merges, length-ratio ≤4.0, max 12k chars, 415 documented drops.
29
+ - transliteration=null (alphabetic, documented).
30
+
31
+ ### 2. Greek — 3,938 rows (Odyssey/Plato) + 2,979 rows (Iliad) = 6,917 total
32
+ **Builder:** child subagent (Odyssey/Plato); build_iliad2.py (Iliad, by coordinator)
33
+ **Sources:** Open Greek and Latin TEI (CC BY-SA 4.0); English translations PD-verified individually (pre-1929 imprints from `__cts__.xml`).
34
+ **Coverage:**
35
+ - Homer Odyssey (24 books, 2,431 rows): Murray OCT 1919 Greek + Murray Loeb 1919 English, ~5-line chunks via shared milestones.
36
+ - Homer Iliad (24 books, 24 rows book-level + 2,979 rows line-level): Monro & Allen OCT Greek + Butler 1898 English (book-level); Murray Loeb 1924-25 English (line-level, PD by age, discovered in OGL as perseus-eng3).
37
+ - Plato (35 works, 1,473 rows): Burnet OCT Greek + Loeb English (Fowler 1914-26, Lamb 1924-27, Bury 1926-29), Stephanus-page level.
38
+ - Plato Republic (10 books, 10 rows): Burnet OCT + Jowett 1892, book-level.
39
+ **Decisions:**
40
+ - Excluded Shorey Loeb Republic (1935-37, not PD).
41
+ - Iliad line-level uses Murray 1924-25 (not Butler) for 5-line alignment via English milestones to Greek `<l n="X">` line numbers.
42
+ - transliteration=null (alphabetic, documented).
43
+
44
+ ### 3. Classical Chinese — 498 rows (Analects) + 315 rows (Mencius/etc) = 813 total (+81 pilot = 894)
45
+ **Builder:** `build_chinese.py` (Analects); child subagent for extension
46
+ **Sources:** zh.wikisource.org (CC BY-SA transcription of PD text); James Legge English (1861, PD via Gutenberg).
47
+ **Coverage:**
48
+ - Analects (論語) 20 books, 498 chapters, chapter-level alignment.
49
+ - Mencius (孟子) 260 chapters + Great Learning (大學) 16 paragraphs + Doctrine of the Mean (中庸) 39 paragraphs = 315 rows.
50
+ **Decisions:**
51
+ - Excluded non-canonical `論語/知道第二十二` page.
52
+ - transliteration=pinyin (machine-generated, flagged in notes).
53
+ - ctext.org FORBIDDEN (not used).
54
+
55
+ ### 4. Sanskrit — 701 rows (Bhagavad-Gita)
56
+ **Builder:** child subagent
57
+ **Sources:** sa.wikisource.org transcription of Annie Besant & Bhagavan Das, *The Bhagavad-Gita* (1905, PD).
58
+ **Coverage:** All 18 chapters, 701 verses, verse-level alignment.
59
+ **Decisions:**
60
+ - Rejected Telang SBE 1882 (no verse numbers) and Arnold Song Celestial (no chapters).
61
+ - Speaker attributions stripped from both sides.
62
+ - transliteration=null? [VERIFY — Devanagari is alphasyllabary, may need IAST]
63
+
64
+ ### 5. Cuneiform (Akkadian) — 4,341 rows (4,343 loaded, 2 dups removed)
65
+ **Builder:** `build_cuneiform/` (fetch_riao_tei.py, parse_riao_tei.py, atf2unicode.py, build_cuneiform.py)
66
+ **Sources:** RIAo (Royal Inscriptions of Assyria online) via LMU Munich ORACC mirror (1,927 TEI files fetched, 0 failed). CC BY-SA 3.0 (project page) / CC0 (bulk metadata); using CC BY-SA 3.0.
67
+ **Coverage:** 1,458 texts yielded 4,343 translation segments; 469 texts had no English translations (skipped).
68
+ **Method:**
69
+ - Each row = one RIAo translation segment, aligned via explicit xtr:sref/xtr:eref.
70
+ - ATF→Unicode via hybrid mapper: MIT mapping.tsv (1123 entries) + Unicode names (1033 signs) + curated aliases + determinative table.
71
+ - Coverage: ~97% of sign tokens mapped; '?' marks unmapped (loud, documented); '▯' marks broken signs.
72
+ - transliteration=ATF (not null; cuneiform needs it).
73
+ **Decisions:**
74
+ - RIAo chosen over BALT (BALT has no English translations).
75
+ - ETCSL translations FORBIDDEN (not used).
76
+ - Dropped segments with no real script content (all broken).
77
+
78
+ ### 6. Egyptian — SKIPPED
79
+ **Reason:** No bulk source with hieroglyphic + transliteration + English aligned. TLA requires registration; Gutenberg has English only; PDFs are not machine-readable. Documented honestly.
80
+
81
+ ## Hard Constraints Compliance
82
+ - [x] Public-domain or academic-open ONLY. No copyrighted modern translations.
83
+ - [x] ctext.org FORBIDDEN — not used.
84
+ - [x] ETCSL translations FORBIDDEN — not used.
85
+ - [x] CC BY-SA sources attributed in translation_source field.
86
+ - [x] SHA-256 dedup on (script_text, translation).
87
+ - [x] Seed-1147 shuffle.
88
+ - [x] manifest.json with per-source counts, SHA-256, license summary.
89
+ - [x] No padding with junk. Actuals documented honestly.
90
+
91
+ ## Problems Encountered
92
+
93
+ 1. **Greek TEI milestone mismatch (Iliad):** The Iliad Greek has sparse milestones (every ~30 lines) while Murray English has dense milestones (every 5 lines); only 5 coincide. Solved by extracting Greek `<l n="X">` line elements (15,690 lines) and aligning to English 5-line milestone intervals.
94
+
95
+ 2. **Cuneiform ATF→Unicode coverage:** ~3% of sign tokens unmapped (rare signs like GUN, MURUB₄, indexed variants BAD₅/MIN₃). Marked as '?' (loud, documented) rather than guessed. The transliteration field preserves the full ATF, so no information is lost.
96
+
97
+ 3. **RIAo fetch reliability:** The LMU Munich mirror was slow (~20 files/min). All 1,927 TEI files fetched with 0 failures using polite 0.15s delays.
98
+
99
+ 4. **Sanskrit verse alignment:** Solved by using Besant & Das 1905 (verse-numbered) instead of Telang (no verses) or Arnold (no chapters).
100
+
101
+ ## Files Delivered
102
+ - `ancient-scripts-25k.jsonl` (26,467 rows, SHA-256: 89b6bd5576636122630cf611694b72055a7c9c1d15cfbc81399b39366e97eea2)
103
+ - `manifest.json` (per-source counts, SHA-256, license summary)
104
+ - `BUILD_LOG.md` (this file)
105
+ - `parts/` (individual part files + NOTES.md for each)
106
+ - `build_cuneiform/` (reusable ATF→Unicode mapper + TEI parser)
107
+ - `build_iliad2.py`, `build_chinese.py`, `assemble_corpus.py` (reusable builders)