Introduction
Researchers have developed AGILe (Ancient Greek Inscription Lemmatizer), the first tool specifically designed to handle the unique linguistic challenges of Ancient Greek inscriptions. While literary Greek has benefited from advanced Natural Language Processing (NLP) tools, epigraphic data—text carved into stone, metal, or ceramic—has remained difficult to process automatically. By training on epigraphic data rather than just literary texts, AGILe achieves over 85% accuracy, significantly outperforming existing state-of-the-art tools that struggle with the dialect-heavy reality of words carved in stone.
The Challenge of Epigraphy
In Ancient Greek studies, a significant divide exists between literary texts (such as those by Homer or Plato) and epigraphic data. Literary Greek is often "clean" and standardized, whereas inscriptions represent a "wild west" of linguistic variation. They feature local dialects, non-standardized spelling, and archaic characters like the digamma (ϝ) or the aspiration marker (h) that disappeared from later literary forms.
Existing NLP tools trained on literary Greek often fail when applied to inscriptions. This forces historians and classicists to manually search for dozens of spelling variations instead of searching for a single root word, or lemma. AGILe was built to bridge this gap by understanding the unique "noise" inherent in epigraphy.
Methodology and Datasets
AGILe utilizes a two-pronged approach based on the Stanza framework, combining a dictionary-based lemmatizer with a neural sequence-to-sequence (seq2seq) model. This allows the system to predict the root of a word even if the specific spelling is previously unseen. Key features include custom rules to handle archaic features and an optional lexicon lookup module using the Liddell-Scott-Jones Greek-English Lexicon (LSJ).
The model was trained and tested using several key datasets:
- CGRN (Collection of Greek Ritual Norms): Approximately 25,000 manually lemmatized tokens from inscriptions.
- PROIEL: A literary treebank used to provide the model with general linguistic knowledge.
- CII (Cretan Institutional Inscriptions): A separate corpus used to test the model's ability to generalize to regional dialects not seen during training.
Key Results
AGILe represents a major advancement for epigraphic NLP. In comparative tests on the CGRN dataset, AGILe achieved an accuracy of 85.1%, far exceeding the performance of general-purpose models like GLEM, UDPipe, and CLTK.
Beyond raw accuracy, the researchers found that AGILe generalizes well. When tested on the Cretan (CII) dataset, many of the recorded "errors" were actually correct lemmatizations that simply differed from the human-annotated "gold standard" due to varying editorial conventions. This highlights the "literary bias" of previous models, which often lose 20 to 40 percentage points in accuracy when applied to inscriptions.
Limitations and Future Directions
Despite its success, AGILe faces ongoing challenges. The model still struggles with crasis (the merging of two words) and the identification of unique proper names or obscure local festivals. Future work may involve integrating Part-of-Speech (POS) tagging specifically for inscriptions to help distinguish between nouns and verbs that appear identical in certain dialects. By addressing the orthographic and dialectal hurdles of the ancient world, AGILe provides a vital tool for bringing the "wild west" of Greek inscriptions into the digital age.
Summary updated