Manuscript Offprint

arXiv:2609.37755

Which papyrus HTR is good enough? Character-error-rate tolerance of four papyrological tasks on Greek texts

Anton Repushko, Elena Chepel

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Purpose: Most Greek papyri are unpublished and undigitised; a handwritten text recognition (HTR) pipeline that transcribes them automatically would allow scholars to find new ancient documents and literary works which remained unread and unknown before. Recognition systems for Ancient Greek papyri are in statu nascendi, and how accurate such a system must be for a certain papyrological task has so far been unexamined. To answer this question and set a benchmark for HTR systems of Greek papyri, we test various character error rates of HTR against four papyrological tasks, using published editions of papyri as ground truth. Methods: From 63,846 current editions of Greek texts in papyri.info, we imitate a letters-only “perfect HTR” output text by removing the editorial layer, then degrade it with a seeded algorithm to exact CERs of 1–50%, with lost lines and four error-shape variants. Using these data, we train several small models (TF-IDF, fastText, a character CNN, ByT5-small) for establishing the type of the document, dating, documentary-versus-literary classification, and apply eight search methods for keyword search. We measure the difference between these models being clean-trained and retrained on a specific CER level, and the evaluation is further differentiated across various CERs. Results: Tolerance differs between tasks. On average, when using clean-trained models, documentary-versus-literary classification keeps 90% of its metric up to 20% CER. For establishing the type of document, the same 90% of metric is achieved with CER up to 7.5%; for subtypes and search – up to 5%; and for dating – only up to 3%. When the model is retrained using text that contains character errors, the severe performance degradation that normally occurs when the error rate exceeds 15% is largely eliminated. Models are usually more tolerant of concentrated damage in a long document than of small errors spread throughout a short piece of text. Conclusion: The study gives a CER target for each of the four papyrological tasks and shows that models trained on noisy text make text recognition in its current imperfect state useful for these tasks.

Keywords: Ancient Greek papyri, handwritten text recognition, character error rate, noise robustness, text classification, information retrieval

1 Introduction

Papyri are the largest body of first-hand written evidence for the ancient Mediterranean, and most of them have never been read. Large collections worldwide hold in total between 1,000,000 and 1,500,000 excavated fragments, of which less than 10% has been edited and published despite more than a century of papyrological work [35]. Each edition requires days and sometimes weeks of expert labour: the papyrologist reads a damaged, often cursive text written without word division, restores lost passages, expands abbreviations and normalises spellings, and only after the text is established in this way can it be analysed historically, compared with other documents and added to databases. The unedited majority of papyri remain invisible to digital tools, and a scholar who wants to know whether a formula, a name or a certain document type occurs among the unpublished papyri has no way to ask.

Automatic transcription would change this. If handwritten text recognition (HTR) could turn images of unedited papyri into text, even though imperfect, this text layer could be searched for parallels, sorted by type and date, before each single fragment receives a proper papyrological edition, and the scarce expert attention could go where the automatic pass says it matters. In the last few years, the ICDAR 2023 competition on detecting and recognising Greek letters on papyri [28] and its follow-ups [34], citizen-science character datasets [31], end-to-end systems such as Anagnostes [4], and, for the printed side, OCR of Greek critical editions [1, 18, 26] have all shown some progress in this direction.

In these previous studies, character error rates have been reported as performance metrics. However, the authors have not answered the question which would be relevant for a papyrologist or a collection curator: which of these error rates are good enough for which tasks? Studies on modern and early-modern print have shown that the impact of OCR noise is strongly task dependent [5, 14, 16, 30, 32, 33], but none of them covers the special characteristics of papyri: scriptio continua without word division, lacunae inside the text, fragments of a few letters, a highly formulaic documentary language, and other features that are specific to the discipline.

In this paper, we directly measure tolerance. We start with the text of current editions in papyri.info and work backwards: stripping each edition of everything an HTR system cannot see; imitating what a perfect HTR would return; then degrading that transcription to various CERs and observing their effect on each of the four papyrological tasks.

The contributions include:

  1. A documented imitation of “perfect HTR” text produced from the EpiDoc XML encoded text of editions: a set of rules that keep only the ink on the papyrus and reduce it to letters, with gap tokens and line breaks as unscored structure (Sect. 5).

  2. A degradation algorithm that hits an exact CER per corpus under a verified Levenshtein invariant, with lost lines and four error-shape variants, so that “10% CER” means the same thing in every cell (Sect. 5.3).

  3. Four tasks with real labels on 63,846 Greek documents: document type from the Grammateus typology, dating from HGV metadata, documentary versus literary from DDbDP versus DCLP, and search with dictionary stems, names, formulae and random substrings (Sect. 4).

The main finding is that tolerance differs between tasks, and that for the tasks which collapse, retraining on noisy text recovers most of the loss. A perfect HTR is not necessary; the CER required for each task lies within reach of current systems.

References (57)