Greek NLP benchmarks — protocol and numbers¶
How pyaegean is scored on the standard Ancient Greek benchmarks: the protocol, the leakage controls that prevent train/test overlap, the field's published numbers, and pyaegean's own measured results. The README carries pyaegean's own numbers; cited cross-tool tables appear here and on the wiki's Benchmarks page.
What the metrics mean¶
The tables below score six things a pipeline does to each word (and to the sentence as a whole). All are percentages: higher is better, and each is the fraction the system got right against the human-annotated gold standard.
- UPOS: Universal Part Of Speech. The basic word class (noun, verb, adjective, preposition, ...) from Universal Dependencies' 17-tag set. "Did it identify what kind of word this is?"
- XPOS: the language-specific part-of-speech tag: the treebank's own finer-grained tagset (more categories than UPOS). Not comparable across treebanks that use different tagsets, so it is sometimes marked n/a.
- UFeats: Universal Features: the full morphology of the word (case, number, gender, tense, mood, voice, person). A word counts only if every feature is right, so this is the strictest word-level tag. "Did it get the complete grammatical parse of the word?"
- Lemma: the dictionary/citation form you would look up:
λέγει→λέγω,ἀνθρώπους→ἄνθρωπος. "Did it recover the headword?" - UAS: Unlabeled Attachment Score: the fraction of words hooked to the correct syntactic parent (which other word each word grammatically depends on). It measures the shape of the sentence's dependency tree, ignoring the name of each link.
- LAS: Labeled Attachment Score: UAS, but the link must also carry the right relation label (subject, object, modifier, ...). Stricter than UAS (right parent and right relation), and the usual headline number for parsing quality.
Two supporting terms: the scorer reports F1 (the balance of precision and recall) per
metric, and a bootstrap confidence interval (e.g. [89.6, 90.9]) is the range a score
would plausibly fall in on similar data, estimated by re-sampling the fold's sentences: a
narrow interval means the number is stable, not a lucky fold.
Protocol¶
- Test sets: the Universal Dependencies Ancient Greek test folds:
UD_Ancient_Greek-Perseus(commit331ddef, CC BY-NC-SA 2.5) andUD_Ancient_Greek-PROIEL(commita4ab8d4, CC BY-NC-SA 3.0), fetched to the cache for evaluation only (never bundled, never trained on). - Scorer: the official CoNLL 2018 shared-task evaluator (
conll18_ud_eval.py, MPL 2.0), fetched sha256-pinned (1072e02af00b1a56205b5e8216d51dee9b8944a104d80744afaccc78859fcb16) and imported from the cache. Reported figures are the evaluator's F1 per metric. - Execution: every published number is measured on the CPU provider
(
CPUExecutionProvider), one sentence per model call. GPU execution and batched inference (both added in 0.33.0) are throughput conveniences, verified prediction-identical to the protocol path on a fixed verification set (training/results/gpu-verify-2026-07-10.json); a registry re-measure may use them only after a full-fold identity check against the sequential CPU run. - Gold tokenization: pyaegean runs over each fold's gold FORM column, so its scores measure tagging/lemma/parsing quality, not tokenizer agreement. (The published numbers below let each pipeline tokenize raw text; their token accuracy on these folds is ≈100%, so the protocols are close but not identical: noted for precision.) The neural pipeline is also measured end-to-end from raw text (below), and the numbers hold.
- No tagset reconciliation: UPOS and lemmas are scored exactly as emitted. Convention
gaps (e.g. the AGDT scheme has no PROPN/SCONJ on the PROIEL fold's conventions) count
against pyaegean here, unlike
greek.evaluate_on_proiel, which reconciles tagsets to isolate real errors. - Train / dev / test discipline.
grc-joint-v4trains leakage-clean on AGDT + Gorman + Pedalion (minus the UD-Perseus dev+test exclusion manifest and all PROIEL/Herodotus overlaps), combined with continued pretraining on open CC-licensed Greek corpora and probability-space distillation from a 5-teacher ensemble over leakage-filtered open Greek silver text. Development folds (UD Perseus dev and PapyGreek dev) control early stopping, checkpoint selection, OOV reranker weight fitting, calibration fitting, and the quantization parity gate; locked test folds are scored once on the finished checkpoint. Full protocol intraining/README.md. - Lemma scoring. On the UD folds, lemmas use the evaluator's exact string match with
no added normalization: the UD-Ancient-Greek gold is already NFC and carries no
homograph-index digits, so none is stripped, and there is no case- or diacritic-folding.
Convention differences (principal-part choice, movable-nu, proper-noun citation form)
therefore count as errors rather than being normalized away. (The native-corpus checks
evaluate_on_nt/evaluate_on_proieldo apply a light lemma clean-up, NFC plus homograph-digit stripping, since those golds are not pre-normalized.) - Reproduce the shipped pipeline with:
from aegean import greek
greek.use_neural_pipeline()
greek.evaluate_on_ud("perseus", "test")
greek.evaluate_on_ud("proiel", "test", schema="koine_proiel")
Reviewers who first want to verify the checked-in evidence bytes and a small
zero-dependency result can run python scripts/reproduce_review.py from a clean
source checkout. That bounded receipt does not download the model or reproduce
the neural values above; this protocol remains the authority for those rows.
Leakage controls¶
UD Perseus is converted from the AGDT: the treebank pyaegean's Greek backends are built from, so a naïve evaluation would leak the test set into training. Two controls enforce clean separation for the neural pipeline:
- The UD-Perseus exclusion manifest.
greek.agdt_ud_overlap()resolves every UD-Perseus dev+test sentence to its AGDT source and verifies the reference by NFC form-sequence comparison: 2,443 sentences across 5 AGDT files, all form-identical. The neural model's training split excludes all of them (cached atud-grc/agdt-ud-exclusion.json). - PROIEL is held out entirely. No pyaegean model trains on PROIEL, so it is a genuine
out-of-domain fold. The combined-corpus model adds the Gorman and Pedalion
treebanks (both CC BY-SA 4.0); the overlap audit excluded 1,591 Gorman + 155 Pedalion sentences
matching either evaluation fold, and Gorman's Herodotus files (the same work as PROIEL's
hdt.xml) are excluded at source.
One caveat applies to the pure-Python baseline below, not the neural pipeline: its tagger, edit-tree lemmatizer, arc-eager parser, and treebank lookup are built from the full AGDT, which contains the UD-Perseus test sentences. Their Perseus-fold scores are therefore an in-training upper bound, reported for orientation; the PROIEL fold is their held-out score.
The field's published numbers¶
From Kostkan, Kardos, Mortensen & Nielbo, “OdyCy: A general-purpose NLP pipeline for Ancient Greek”, LaTeCH-CLfL 2023 (https://aclanthology.org/2023.latechclfl-1.14.pdf), Tables 1–2: each pipeline's own tokenization, spaCy evaluation scripts. Best per metric in bold.
UD Perseus test fold:
| Pipeline | POS | Morph | Lemma | UAS | LAS |
|---|---|---|---|---|---|
| odyCy (joint) | 95.39 | 92.56 | 83.20 | 78.80 | 73.09 |
| odyCy (perseus) | 95.00 | 91.98 | 82.56 | 76.71 | 70.31 |
| greCy (perseus) | 93.50 | 90.59 | 75.10 | 76.34 | 70.20 |
| Stanza (perseus) | 91.05 | 91.03 | 87.58 | 78.69 | 71.82 |
| UDPipe (perseus) | 80.95 | 85.70 | 82.73 | 63.97 | 55.81 |
| CLTK | 80.50 | 61.49 | 79.46 | 33.05 | 24.25 |
UD PROIEL test fold:
| Pipeline | POS | Morph | Lemma | UAS | LAS |
|---|---|---|---|---|---|
| greCy (proiel) | 98.23 | 94.05 | 98.06 | 85.74 | 82.28 |
| odyCy (joint) | 97.81 | 93.46 | 94.41 | 83.17 | 79.03 |
| Stanza (proiel) | 97.39 | 92.20 | 97.21 | 81.51 | 77.48 |
| CLTK | 96.95 | 90.76 | 96.50 | 57.61 | 54.57 |
| UDPipe (proiel) | 95.97 | 88.62 | 93.17 | 72.40 | 67.48 |
(The same paper shows substantial cross-treebank degradation: for example, Stanza-perseus scores 59.00 UAS on PROIEL, which is why pyaegean reports out-of-domain and unseen-form metrics alongside in-domain scores.)
Riemenschneider & Frank's 2023 paper, “Exploring Large Language Models for Classical Philology” (ACL, https://aclanthology.org/2023.acl-long.846/), reports on the UD Perseus test fold (models trained on the UD train fold, UD 2.10; gold tokenization; the official CoNLL evaluator; mean of three seeds): GreBERTa UAS 88.20 / LAS 83.98, UPOS 95.83, XPOS 91.09, and a GreTa seq2seq lemmatizer at 91.14 (the published UD-Perseus lemma comparison used below). Separately, Celano 2025, “A State-of-the-Art Morphosyntactic Parser and Lemmatizer for Ancient Greek” (LM4DH 2025, https://arxiv.org/abs/2410.12055), fine-tunes Trankit and GreTa on AGDT + Gorman + Pedalion (~1.26 M tokens, normalized to the AGDT scheme) and reports on his own folds (Trankit UAS 82.28 / LAS 76.67; GreTa lemma 91.17), reprinting the Riemenschneider & Frank UD rows for loose comparison only (the schemes differ). That AGDT + Gorman + Pedalion combination is the same license-clean data lever (Gorman and Pedalion, both CC BY-SA 4.0) the pyaegean joint model uses.
Two more recent reference points, each reported under its own evaluation, so points of reference rather than rows in the single-protocol table above:
- Stanza's published model-performance numbers (https://stanfordnlp.github.io/stanza/performance.html), under Stanza's own tokenization, give grc_perseus UPOS 92.41 / UFeats 91.11 / lemma 87.86 / UAS 79.46 / LAS 73.97, and grc_proiel (in-domain for that model) UPOS 97.42 / lemma 97.18 / LAS 79.02. Its self-reported Perseus lemma (87.86) is 0.28 above the 87.58 measured in the table above; pyaegean's row is 95.02, an arithmetic difference of +7.2 from Stanza's value (95.44 with the opt-in OOV reranker).
- DILEMMA (https://github.com/ciscoriordan/dilemma) is an architectural peer: a Greek tagger/lemmatizer on the same torch-free ONNX inference path pyaegean uses. But it is lemmatizer-first and publishes accuracy only on its own multi-period benchmarks (93.7% equiv-adjusted on its DiGreC treebank, 99.7% on Classical Greek), not UD Ancient Greek Perseus UAS/LAS, so there is no same-fold parsing number to compare. It is a design peer here, not a measured row.
pyaegean — the neural pipeline (shipped)¶
The shipped joint model (grc-joint-v4, activated by greek.use_neural_pipeline(), the
[neural] extra) is a single domain-adapted GreBerta-512 checkpoint serving 18 output heads:
UPOS, 9-position AGDT XPOS, UD FEATS, five PROIEL-schema auxiliary feature heads (Definite,
PronType, Polarity, Reflex, Poss), biaffine dependency trees (single-root
Chu-Liu/Edmonds MST decoding, handling non-projectivity natively), and preverb-aware edit-script
lemmas. It adds multi-schema conditioning (agdt_perseus, gorman, pedalion, documentary,
koine_proiel), diplomatic orthographic robustness for unregularized papyrus and epigraphic
spelling, and probability-space distillation from a 5-teacher ensemble over leakage-filtered open
Greek silver text on top of the audited AGDT + Gorman + Pedalion training treebanks. Measured
once through the package's own inference code (sha256-verified, onnxruntime CPU, sequential
windowed coverage; evidence: training/results/v4-locked-test-qualification-2026-11-30.json):
| Test fold | Lemma | UAS | LAS | UPOS | UFeats | XPOS |
|---|---|---|---|---|---|---|
| UD Perseus | 95.02 | 90.89 | 86.47 | 97.36 | 96.55 | 94.36 |
UD PROIEL (schema="koine_proiel") |
91.15 | 82.66 | 74.37 | 87.94 | 88.10 | n/a |
UD PROIEL (default agdt_perseus) |
91.21 | 82.66 | 63.64 | 87.36 | 59.40 | n/a |
The historical decoder-v1 training replication covered five seeds of the earlier v2/v3
recipe: UD Perseus test mean ± standard deviation was LAS 85.58 ± 0.10, UAS 90.15 ± 0.12,
UPOS 97.00 ± 0.06, UFeats 96.06 ± 0.04, lemma 94.30 ± 0.02, XPOS 93.52 ± 0.05 (PROIEL LAS
63.50 ± 0.04). It remains archived evidence about earlier training-recipe stability and is not
a grc-joint-v4 replication. The table below uses the shipped grc-joint-v4 checkpoint and
bootstrap evidence; the margin column is the arithmetic difference:
| Metric | pyaegean | 95% CI | cited comparison | margin |
|---|---|---|---|---|
| UPOS | 97.36 | [97.09, 97.59] | 95.83 (2023) | +1.53 |
| XPOS | 94.36 | [93.98, 94.70] | 91.09 (2023) | +3.27 |
| UFeats | 96.55 | [96.27, 96.82] | 92.56 (odyCy 2023) | +3.99 |
| Lemma | 95.02 | [94.68, 95.33] | 91.14 (GreTa+Chars 2023) | +3.88 |
| UAS | 90.89 | [90.29, 91.51] | 88.20 (2023) | +2.69 |
| LAS | 86.47 | [85.75, 87.14] | 83.98 (2023) | +2.49 |
(CIs are percentile bootstrap over the fold's sentences, 999 resamples: greek.bootstrap_ud's
default, so the reproduction command matches; the 2-decimal bounds are stable across resample
counts. On UD Perseus test, grc-joint-v4 reaches CLAS 86.30, and 95.44 lemma with the opt-in
weighted OOV reranker.)
Three qualifications apply to these figures:
- Confidence intervals and training corpus. The
grc-joint-v4within-fold 95% lower bounds (85.75 LAS / 90.29 UAS / 94.68 Lemma) exceed the cited 83.98 / 88.20 / 91.14 rows. Note that the cited 2023 GreBERTa and GreTa rows trained only on the UD Perseus train split, whereasgrc-joint-v4uses the larger license-clean AGDT + Gorman + Pedalion combination (same sources as Celano 2025) plus continued pretraining and leakage-filtered open-corpus silver distillation; all UD Perseus dev and test sentences remain excluded by NFC form-sequence match. - PROIEL is out of domain. The in-domain published systems train on the PROIEL fold
itself; pyaegean never does (0 PROIEL training sentences). Against a Perseus-trained
published system, the like-for-like out-of-domain comparison is 82.66 versus the
Perseus-trained Stanza baseline's 59.00 on this fold, an arithmetic difference of ~24 UAS.
Under the default
agdt_perseusschema, PROIEL LAS (63.64) and UFeats (59.40) remain capped by treebank convention differences; switching toschema="koine_proiel"on the same checkpoint activates the five PROIEL auxiliary feature heads and PROIEL relation mapping, lifting UFeats to 88.10 (+28.70 points) and LAS to 74.37 (+10.73 points) with zero PROIEL training data. - Raw text, end to end. From each sentence's raw text through pyaegean's own tokenizer
(tokens F1 99.97, sentences F1 98.70) to the official CoNLL-2018 evaluator,
grc-joint-v4scores UPOS 97.31 / XPOS 94.31 / UFeats 96.51 / Lemma 94.99 (95.42 with the opt-in OOV reranker) / UAS 90.78 / LAS 86.37, so tokenization is not a bottleneck on this fold. Throughput of the shipped quantized model is roughly 20–70 words/s on plain laptop CPU (sentence-length dependent; faster on multi-core server CPUs), whereas the historical fp32grc-joint-v2bundle reached roughly 300 words/s on the same development machine (see the quantization trade-off below). Unlike the accuracy figures above (measured under the recorded model-and-data protocol), throughput is hardware-dependent and illustrative, not a pinned benchmark: it scales with the CPU, core count, and workload, so read it as an order-of-magnitude guide.
The model ships quantized at about 179 MB (tar.gz, 171.2 MiB; 190 MB uncompressed
model.onnx), roughly 3× smaller than the uncompressed fp32 reference (579 MB model.onnx).
On the 200-sentence Perseus dev quantization verification set (3,931 tokens), the quantized
bundle achieved 99.92% minimum parity across all 18 output heads, 100.00% parity on all
five koine_proiel auxiliary feature heads (200 PROIEL dev sentences, 2,941 tokens),
100.00% dynamic batch-4 parity, and 100.00% GPU-vs-CPU parity. The trade-off is
CPU throughput: the int8 MatMulNBits kernels run slower than fp32 MatMul on plain CPUs
(roughly 20–70 words/s quantized vs roughly 300 words/s fp32 on the development machine), so
the quantized default optimizes download size and disk footprint. The measured file sizes and
parity checks are recorded in training/results/v4-locked-test-qualification-2026-11-30.json
(earlier v3 quantization records remain archived in training/results/v3-quantize-report.json
and gate-report.json). The recipe is weight-only int8 + fp16, activations kept fp32:
onnxruntime MatMulNBits (block 128, symmetric) on the MatMul weights, fp16 on everything else
(including the word-embedding table), with activations kept in fp32.
Full int8 (quantized activations) is excluded because it collapses the GreBerta encoder. Its activation outliers do not survive 8-bit quantization: the recorded dynamic and static recipes dropped UPOS from 97 to 16–32 and LAS from 86 to 1–13, including a development-set dynamic result of UPOS 98.30 → 23.34. Keeping activations fp32 and quantizing only the weights avoids the outlier problem and reduces the artifact size without a measured accuracy loss.
The quantized model requires onnxruntime ≥ 1.23 (the 8-bit MatMulNBits CPU kernel); the
[neural] extra floor stays at 1.23. Historical grc-joint-v3 and fp32 grc-joint-v2
releases remain hosted for reproducibility.
Legacy aggregate calibration (temperature scaling + ECE)¶
The published schema-1 calibration remains readable through greek.use_calibration()
and the compatibility upos_confidence/lemma_confidence fields. It is a legacy aggregate
for the shipped grc-joint-v4 UPOS and composed-lemma proxy, not source-, domain-, or
task-complete evidence. The number is an estimate of prediction correctness produced by
temperature scaling (never raw softmax), with one temperature per head fitted on the UD
Perseus dev fold only (the test fold is report-only):
| Head | Temperature | Dev ECE (raw → calibrated) | Test ECE (calibrated) |
|---|---|---|---|
| UPOS | 1.61 | 0.96% → 0.21% | 0.82% (raw was 1.94%) |
| Lemma | 1.26 | 2.39% → 2.73% | 3.51% (raw was 3.49%) |
Dev n = 22,135 tokens; test n = 20,959 (report-only, one shot). The lemma figure calibrates
the edit-script head against whether the composed lemma matched gold (a documented proxy);
because grc-joint-v4's raw lemma probabilities are already well-calibrated on Perseus prose,
a single global scalar temperature does not improve over raw lemma ECE, whereas the route-aware
Schema-2 registry below lowers Perseus lemma ECE15 from 3.49% to 2.39%. Offline
lexicon/rule/seed/paradigm outputs carry no neural confidence. These figures are literary-prose
evidence for this exact artifact; they do not establish equal calibration on other domains or
an OOD detector. Evidence is in training/results/v4-locked-test-qualification-2026-11-30.json.
Domain- and route-scoped calibration (Schema-2 registry)¶
For finer-grained confidence across all six annotation layers (universal part of speech,
language-specific part of speech / XPOS, detailed morphology, lemma, syntactic head, and
dependency relation), pyaegean ships a qualified Schema-2 calibration registry activated with
greek.use_calibration_registry() (no arguments needed; preserves entries for both
grc-joint-v4 and historical grc-joint-v3). Each calibrator is fitted strictly on held-out
development folds and scoped to both genre (literary or documentary_native) and, for
lemmas, how the lemma was produced (exact lookup, neural edit script, or fallback). Missing
scopes still report an explicit unavailable reason rather than silently substituting zero or
raw scores.
One-shot locked-test qualification of grc-joint-v4 across five held-out corpora (79,462
tokens, CPU sequential, zero test-set tuning; evidence:
training/results/v4-locked-test-qualification-2026-11-30.json):
| Held-out test fold | Domain | Lemma ECE15 (raw → calibrated) | Lemma Brier (raw → calibrated) | Lemma errors caught in top-10% review queue (raw → calibrated) |
|---|---|---|---|---|
| UD Perseus test (20,959 tokens) | literary |
3.49% → 2.39% | 0.0457 → 0.0380 | 54.1% → 55.7% |
UD PROIEL test, koine_proiel (13,314 tokens) |
literary |
5.74% → 4.47% | 0.0747 → 0.0678 | 40.0% → 42.6% |
| Verse tragedy, Bacchae (735 tokens) | literary |
4.17% → 3.35% | 0.0629 → 0.0552 | 59.5% → 63.3% |
| PapyGreek regularized (22,227 tokens) | documentary_native |
3.52% → 2.06% | 0.0620 → 0.0465 | 52.3% → 66.3% |
| PapyGreek diplomatic (22,227 tokens) | documentary_native |
4.57% → 2.26% | 0.0774 → 0.0556 | 45.9% → 62.2% |
In practical editorial terms: reviewing only the lowest-confidence 10% of tokens in a
calibrated-risk queue (to_review_table(..., priority="calibrated_risk", budget=N) or
aegean review export corpus.json -o review.csv --annotate --neural --with-confidence --confidence-domain literary --priority calibrated-risk --budget N)
surfaces 43% to 66% of all lemmatization errors while cutting lemma calibration error (ECE15)
and Brier score on every fold.
Opt-in OOV lemma reranker (weighted top-10)¶
When a Greek word form was never seen in the neural model's training tables (common in
documentary papyri, Koine spelling variants, compounds, and poetic forms), the opt-in
out-of-vocabulary (OOV) lemma reranker (greek.use_oov_lemma_reranker(config="weighted"))
combines the model's top-10 neural edit-script candidates with orthographic, Koine
phonetic (itacism, vowel length, gemination, optional final -ν), and preverb indices built
strictly from the model's own training lookups (no external dictionary leakage). Words
already resolved by an exact training lookup are never overridden.
Like the documentary levers below, the reranker is opt-in and off by default; baseline
grc-joint-v4 rows above remain unchanged. Measured once across all five locked test folds
(79,462 tokens total, CPU sequential, frozen dev-fitted weights SHA-256
f00513884b20230cfd8757d722c5f30b32fea96b831967b8156a47ead19dff53; evidence:
training/results/v4-locked-test-qualification-2026-11-30.json):
| Held-out test fold | Tokens | grc-joint-v4 baseline |
Unique-fold (config="unique") |
Weighted top-10 (config="weighted") |
Helped / Harmed (net) |
|---|---|---|---|---|---|
| UD Perseus test | 20,959 | 95.02 | 95.00 | 95.44 | +102 / -13 (+89) |
UD PROIEL test (koine_proiel) |
13,314 | 91.15 | 90.93 | 91.82 | +103 / -14 (+89) |
| Verse tragedy (Bacchae) | 735 | 89.25 | 88.84 | 90.20 | +9 / -2 (+7) |
| PapyGreek regularized | 22,227 | 91.32 | 91.18 | 92.39 | +261 / -22 (+239) |
PapyGreek diplomatic (orig) |
22,227 | 88.68 | 88.81 | 90.21 | +364 / -23 (+341) |
Across all 79,462 tokens, the weighted top-10 reranker fixed 839 errors while introducing
74 new mistakes (net +765, an 11.3:1 help-to-harm ratio), with positive gains on all five
folds (note that the unweighted config="unique" mode is slightly net-negative on three folds
against grc-joint-v4's stronger base lemmatizer, so config="weighted" is the recommended
mode). Separately, the same frozen reranker also lifts the Nestle 1904 NT fold from 90.20 to
90.97 (+1,290 / -231, net +1,059 tokens) and the DBBE Byzantine epigram fold from 84.25 to
85.39.
Koine / New Testament (Nestle 1904 own gold)¶
greek.evaluate_on_nt() scores the shipped pipeline against the Nestle 1904 NT's own
gold lemmas and morphology: a complement to the UD-PROIEL row above, which measures the
model against a different project's NT annotation. Both are genuinely out of domain: the
model trains on AGDT + Gorman + Pedalion (plus leakage-filtered non-NT open silver text),
never on the NT.
| Test set | Lemma | Lemma (+ OOV reranker) | UPOS (reconciled) | scored tokens |
|---|---|---|---|---|
| Nestle 1904 NT (whole) | 90.20 | 90.97 | 89.68 | 137,303 |
Reproduce: aegean greek eval nt (or greek.use_neural_pipeline(); greek.evaluate_on_nt()).
Gold-tokenized, all 27 books, CPU sequential windowed. Measured with the shipped quantized
grc-joint-v4 bundle against the corrected NT gold (suffixed Robinson closed-class tags
reconcile to their real UPOS since 0.15.0; they previously fell to X; evidence:
training/results/v4-locked-test-qualification-2026-11-30.json).
History of this row across model generations: grc-joint-v1 (0.8.1) scored 87.04 / 87.57 on
pre-correction gold; grc-joint-v3 (0.10.0, with the 0.32.0 sentence-initial lowercase-lookup
fix recorded in training/results/lemma-remeasure-2026-07-09.json) scored 87.96 lemma and
86.75 reconciled UPOS; grc-joint-v4 lifts reconciled UPOS to 89.68 (+2.93 points) and lemma
to 90.20 (+2.24 points; 90.97 with the opt-in OOV reranker, +3.01 points over v3).
What is and isn't reported, and why:
- Lemma is the clean metric. It sits slightly under the PROIEL-NT lemma (91.15) largely because Nestle 1904's lemma conventions differ from the AGDT the model learned (principal-part choice, proper-noun citation form, movable-nu): a real convention gap as much as model error; scoring only normalizes NFC + homograph digits, not lemma style.
- UPOS is compared under the same reconciled tagset as the PROIEL check (PROPN→NOUN, SCONJ→CCONJ, AUX→VERB), so it measures real disagreement rather than a Robinson-vs-UD convention gap.
- Not reported: finer UD features and UAS/LAS. The Robinson morph tagset and pyaegean's UD FEATS do not align feature-for-feature, and the Nestle 1904 word list carries no UD dependency trees: a UFeats or LAS number here would be a convention artefact, not an accuracy (the same reasoning as the PROIEL UFeats note above).
Genre and register: what the folds support (and what they don't)¶
A fair question for any Greek parser is "how much can I trust this on Homer, on tragedy, on
Koine prose?" greek.evaluate_by_genre("perseus", "test") (CLI: aegean greek eval ud
--by-genre --neural) buckets a UD fold by its sent_id author, maps each author to a literary genre
(epic, tragedy, comedy, prose), and scores each bucket separately with the official evaluator,
reporting the per-bucket sentence and word counts and, optionally, bootstrap CIs.
Running the discovery step on the leakage-clean folds gives an important, and limiting, result:
| Fold | Genre composition | Authors |
|---|---|---|
| UD Perseus test | 100% prose | Athenaeus (tlg0008) |
| UD Perseus dev | 100% prose | Thucydides, Plutarch, Athenaeus |
| UD Perseus train | epic, tragedy, prose | Homer, Sophocles, Hesiod, Aeschylus, Herodotus, and others |
The epic and tragic material lives in the training fold; the held-out test and dev folds are
entirely prose (the test fold is a single imperial-prose author, Athenaeus). So the shipped
Perseus test numbers, and every published Perseus number in this document, describe accuracy on
literary prose. The Perseus folds cannot provide held-out epic or tragedy scores.
A separate, small leakage-clean tragedy fold is reported below; no leakage-clean
epic gold fold is currently available. On the Perseus test fold, evaluate_by_genre
returns a single prose bucket equal to the overall Perseus score.
On register (Classical literary vs Koine), the closest available signal is the contrast between the Perseus rows (literary, and as shown here prose) and the Nestle 1904 NT row (Koine): lemma 95.02 on Perseus against 90.20 on the NT. That gap is real but is not a clean register effect, because register co-varies with the annotation project: the NT row is a different treebank's conventions and a genuinely out-of-domain fold, so the difference mixes register, convention, and domain. It is reported as orientation, not as a measured "Koine penalty."
Documentary Koine: the PapyGreek fold¶
Documentary Greek (letters, petitions, receipts on papyrus) had no parsing evaluation here until this fold: 1,551 sentences / 22,227 tokens converted from the PapyGreek Treebanks (CC BY-SA 4.0) to UD CoNLL-U through the same AGDT conversion the model trains under, so the numbers measure domain transfer rather than annotation-convention divergence.
Scoring is on PapyGreek's regularized layer. Each token has two readings, the
diplomatic orig and the editorially regularized reg; this fold uses reg, the
reading whose spelling the editors normalized toward standard Koine (and whose
Leiden/EpiDoc apparatus is stripped to the reading text). The scores are therefore a
regularized-text figure. They do not measure the model on the raw documentary
orthography (phonetic spellings, itacism, non-standard case and agreement) that the
orig layer preserves and that is meaningfully harder. That harder input now has its
own fold: the diplomatic orig surface layer (papygreek-fold-orig: the same 1,551
sentences and the same gold, with the raw diplomatic form as the token), scored by
greek.evaluate_on_papygreek(layer="orig") (CLI aegean greek eval papygreek --layer
orig). Its row appears below.
Exclusion accounting. The fold keeps 1,551 of the 4,557 annotated sentences in
the source; the full accounting is in training/results/papygreek-fold-manifest.json.
The exclusions, largest first: 1,793 sentences carry an artificial node (an elliptic
or inserted token with no surface form), which gold-tokenization scoring cannot
include without empty-node handling that would inject conversion artifacts; 678 are
not fully annotated (a real token missing its reg form, head, relation, postag, or
lemma, including trees whose syntax was never completed); 354 are leakage overlaps
with the training set at the sentence-form level; 145 more belong to a PapyGreek
Trismegistos work identity present in the Pedalion training source; and 36 do not
reduce to a clean reading after apparatus stripping (an illegibility marker or a
fully-erased word). Dropping the
elliptic sentences biases the fold toward syntactically complete material, so the
measured accuracy sits above what a corpus that retained ellipsis would give.
The current fold applies two independent guards. It excludes a whole PapyGreek document whenever its source-native Trismegistos work identity occurs in Pedalion's documentary training source, then applies the sentence-level NFC form-tuple check (full and punctuation-stripped) against all three training sources. The prior fold's sentence-only check missed 145 sentences from 29 training-overlapping works; that 24,105-token measurement remains historical but is no longer the current generalization claim.
| Test set | UPOS | XPOS | UFeats | Lemma | UAS | LAS | CLAS | scored tokens |
|---|---|---|---|---|---|---|---|---|
| PapyGreek (documentary Koine) | 93.77 | 83.11 | 91.52 | 91.32 | 86.42 | 81.11 | 76.98 | 22,227 |
Reproduce: aegean greek eval papygreek (or greek.evaluate_on_papygreek()).
Scheme-matched out-of-domain parsing reaches 81.11 LAS (+1.54 points over grc-joint-v3)
and 91.32 lemma (92.39 with the opt-in OOV reranker). The published protocol is
CPU-sequential (batch_size=None) and uses complete-word overlapping windows for sentences
beyond the model's single-pass subword budget. Partial placeholder tails are never scored.
Verse, out of domain: a leakage-clean tragedy evaluation¶
No manually-annotated Greek verse treebank outside the model's own training data
was previously known to us: the canonical epic and tragedy treebanks are all in
the AGDT+Gorman+Pedalion training set (the leakage-clean UD-Perseus test fold is
100% prose). The verse fold fills that gap with gold from the UNESP Trees
project (Perseids/Arethusa manual annotation, CC BY-SA 4.0): tragedy only,
Euripides, Bacchae 1-169, 36 sentences / 735 tokens after the standard
selection policy. The fold is leakage-checked sentence-by-sentence in its build
(0 overlaps; the only Euripides in training is Medea). Gold diligence: an
eight-sentence scholarly spot-check preceded the first pin, and a subsequent
specialist review pass corrected the fold build (v2): a 25-token sliver first
labeled hexameter was identified as the Maximus prose paraphrase and removed,
15 leaf-apposition relations were corrected from the converter's cc to
appos, and 11 malformed gold lemmas (Latin homoglyph vowels, LSJ citation-form
tails) were repaired.
This is a small-sample datapoint with wide confidence intervals, never a headline number.
| Track | UPOS | XPOS | UFeats | Lemma | UAS | LAS | CLAS | tokens |
|---|---|---|---|---|---|---|---|---|
| Tragedy (Bacchae) | 92.79 | 85.17 | 93.06 | 89.25 | 81.36 | 74.15 | 70.70 | 735 |
Tragedy 95% CIs (percentile bootstrap, 999): UPOS [91.07, 94.31], lemma
[86.76, 91.38], UAS [77.20, 86.10], LAS [69.98, 78.68]. The substantive finding
holds: tragedy LAS (~74) still runs well below the documentary fold (~81) because
poetic word order and hyperbaton are materially harder to parse than prose.
Reproduce: aegean greek eval verse --track tragedy (evidence:
training/results/v4-locked-test-qualification-2026-11-30.json).
The diplomatic-orthography row, and Byzantine verse¶
The orig-layer fold (evaluate_on_papygreek(layer="orig")) scores the same
1,551 sentences and gold as the row above, with the FORM column carrying the
scribes' actual readings (1,453 tokens differ, mostly orthographic: itacism,
vowel-quantity confusion, nasal assimilation, voicing, gemination; a minority
are the editors' morphosyntactic regularizations, e.g. non-standard case,
number, or εἰς/ἐν substitution, so the pair measures the cost of raw documentary
usage, not spelling alone). Measured once, CPU sequential:
| Fold | UPOS | XPOS | UFeats | Lemma | UAS | LAS | CLAS |
|---|---|---|---|---|---|---|---|
| PapyGreek, regularized (above) | 93.77 | 83.11 | 91.52 | 91.32 | 86.42 | 81.11 | 76.98 |
| PapyGreek, diplomatic (orig) | 93.16 | 80.76 | 89.18 | 88.68 | 85.58 | 79.73 | 75.36 |
The pair isolates the cost of the scribes' non-standard documentary usage:
lemma takes the largest hit (−2.64 points, down from −4.00 points under grc-joint-v3
thanks to diplomatic orthographic training and PreverbStemCodec), morphology loses
~2.34, attachment the least. Notably, grc-joint-v4 on raw diplomatic orig text
(LAS 79.73, UPOS 93.16, UFeats 89.18) now exceeds grc-joint-v3 on editorially
regularized reg text (LAS 79.57, UPOS 91.53, UFeats 88.73), and the opt-in weighted
OOV reranker raises diplomatic orig lemma to 90.21. (Evidence:
training/results/v4-locked-test-qualification-2026-11-30.json.)
Byzantine verse (tagging only). greek.evaluate_on_dbbe() scores the
pipeline against the DBBE gold standard (Swaelens, De Vos & Lefever, LRE 2025;
CC BY 4.0): 825 sentences / 9,191 tokens of unedited medieval book epigrams,
7th–15th c., non-normalized scribal orthography. The gold carries POS and lemma
but no trees, so this is a tagging row; the DBBE tagset is mapped to UPOS and
gold lemmas are normalized Attic headwords, both stated caveats. Measured once,
CPU sequential: UPOS 87.94 / XPOS 77.34 / UFeats 86.53 / lemma 84.25 (85.39
with the opt-in weighted OOV reranker, +8.70 points over grc-joint-v3),
leakage-checked (0 overlaps). (Evidence:
training/results/v4-locked-test-qualification-2026-11-30.json.)
PapyGreek convention decomposition (historical grc-joint-v3 diagnostic)¶
The historical grc-joint-v3 PapyGreek decomposition (greek.papygreek_convention_report(),
CLI: aegean greek eval papygreek --drift) measured how much of v3's UPOS and XPOS gap came
from annotation conventions rather than model quality. Measurement only; archived evidence:
training/results/papygreek-convention-decomp-v2-2026-07-15.json.
UPOS (v3). Of v3's 8.47-point gap, 4.98 points (58.79% of all UPOS errors) sat on one
closed class: the coordinators (gold CCONJ: καί, δέ, τε …), which carried three incompatible
tags across the merged training treebanks.
XPOS (v3). Of v3's 22.81-point gap, 13.31 points were convention or encoding: the
same coordinator pos-code (5.01), the model's common-gender c where the fold's
gold commits to a specific gender (5.69), and gold tags carrying a literal _
slot where the model writes - (2.61). Forgiving those three, v3 XPOS read
90.50%; the residual 9.50 points were genuine morphology error. grc-joint-v4 absorbs
most of the coordinator and APOS→appos convention drift directly into the model weights
(lifting baseline PapyGreek UPOS from 91.53 to 93.77 and XPOS from 77.19 to 83.11).
A recorded conversion correction (0.44.0). The AGDT→UD converter that builds both training
labels and the AGDT-derived evaluation folds previously mapped a leaf APOS relation to
cc; it now emits appos, and grc-joint-v4 trains directly on the corrected conversion
(whereas grc-joint-v3 retained the older convention).
Opt-in documentary levers¶
Two optional post-processing layers reconcile neural output to documentary Greek without
touching the model weights or the default published rows. Both are opt-in and off by
default, and the pipeline is byte-identical to the shipped model until a lever is switched
on (a fresh session, or disable_*, restores exactly the model's own output). Both
post-process the active neural pipeline, so it must be active first
(greek.use_neural_pipeline()).
Lever A — coordinator reconciliation (greek.use_documentary_reconciliation()).
The conservative default relabels only the closed coordinator set (καί, δέ, τε, ἀλλά,
ἤ, οὐδέ, οὔτε, μηδέ, μήτε) and only when the model emits the always-wrong X / b
reading (never a legitimate tag for a coordinator), so it cannot mislabel a correct
token. On grc-joint-v4, the corrected test-fold measurement changes 102 UPOS and 99
XPOS cells (down from 775 UPOS and 783 XPOS on grc-joint-v3), improving UPOS by 0.42
points (93.77 → 94.19) and XPOS by 0.40 points (83.11 → 83.51) while every other field is
byte-identical. The aggressive ADV / d variant remains recommended against.
Lever B — lemma OOV rescue (greek.use_documentary_lemma_rescue()). When a model
leaves a lemma unresolved (the honest identity fall-through), this lever consults the guarded
bundled seed table and (when use_paradigms() is active) UniMorph paradigm table, excluding
generalizing ending-stripping rules. On the historical grc-joint-v3 corrected fold it fired
no additional successful predictions beyond Lever A (training/results/apparatus-lemma-remeasure-2026-08-11.json);
for OOV lemmatization on grc-joint-v4, use greek.use_oov_lemma_reranker(config="weighted")
above (+1.07 points on regularized and +1.53 points on diplomatic PapyGreek).
Measured sequentially with full coverage on the pinned PapyGreek fold (evidence:
training/results/v4-locked-test-qualification-2026-11-30.json):
Variant on the PapyGreek fold (grc-joint-v4) |
UPOS / XPOS / UFeats / Lemma / UAS / LAS / CLAS |
|---|---|
| + Lever A (coordinator reconciliation, conservative) | 94.19 / 83.51 / 91.52 / 91.32 / 86.42 / 81.11 / 76.98 |
PROIEL convention decomposition (historical grc-joint-v3 diagnostic)¶
Before grc-joint-v4 introduced schema="koine_proiel", the out-of-domain UD-PROIEL row
(UFeats 59.43, UAS 82.47, LAS 63.50 on grc-joint-v3; 59.40 / 82.66 / 63.64 under v4's
default agdt_perseus schema) was held down mainly by annotation-convention divergence.
greek.proiel_convention_report() (CLI: aegean greek eval ud --fold proiel --drift)
measured that divergence on grc-joint-v3 from a batch-size-32 diagnostic run and partitioned
each gap. Its detailed buckets were unchanged under decoder v2; the diagnostic UAS was 82.4771,
0.0075 points above v3's CPU-sequential headline (82.4696, one token), so it is not claimed
as an exact reproduction of that row. Measurement decomposition only (13,314 words; evidence:
training/results/proiel-convention-decomp-2026-07-11.json and
training/results/decoder-v2-remeasure-2026-07-18.json).
UFeats (v3 / agdt_perseus). Of the 40.6-point gap, 24.2 points were scheme-absent
features, UD feature types the AGDT scheme cannot emit at all (PROIEL uses exactly five the
Perseus scheme lacks: PronType, Definite, Polarity, Reflex, Poss; 3,224 words carry
at least one), and 16.4 points were disagreement inside the shared scheme. On the 10,090 words
whose gold features were all scheme-shared, v3 scored UFeats 78.4. Adding dedicated
auxiliary heads for those five features under schema="koine_proiel" in grc-joint-v4 closes
almost all of that convention gap (lifting PROIEL UFeats from 59.40 to 88.10 with zero PROIEL
training data).
LAS (v3 / agdt_perseus). Of the 36.5-point LAS gap (100 − LAS), 17.5 points were
attachment errors (100 − UAS) and 19.0 points (2,526 tokens, the UAS-to-LAS gap) were
attachment-correct but label-wrong. The top five gold-to-predicted confusions carried 68.9% of
that relabelling mass (discourse → advmod 24.1%, det → nmod 17.6%, obl → obj 11.0% with
obl → iobj 3.2%, amod → nmod 8.2%, and cc → advmod 8.1%). Conditioning relation decoding
on schema="koine_proiel" in grc-joint-v4 recovers +10.73 LAS points on the same trees
(63.64 → 74.37).
pyaegean — the pure-Python baseline¶
The zero-dependency stack (use_treebank() + use_tagger() + use_lemmatizer() +
use_parser()) is the offline, no-heavy-deps path. It is a baseline, and reads like one:
| Fold | UPOS | Lemma | UAS |
|---|---|---|---|
| Perseus test ⚠ | 86.73 | 97.65 ⚠ | 37.43 |
| PROIEL test | 78.84 | 85.63 (90.38 with the neural lemmatizer) | 35.44 |
⚠ = in-training upper bound (see Leakage controls); the 97.65 Perseus lemma is the lookup memorizing the fold. LAS is not comparable here: the arc-eager parser emits Prague labels, not UD relations. The baseline exists for the zero-install path; the neural pipeline carries the accuracy claims.
(Perseus: 1,306 sentences / 20,959 words; PROIEL: 1,047 / 13,314.)