Armenian AutoEpiDoc: Automated Extraction and Encoding of Armenian Inscriptions into EpiDoc TEI/XML
Summary
Armenian epigraphy is well documented in printed scholarship such as the multi-volume Divan Hay Vimagrut'yan (DHV). However, it has almost no machine-readable editions, so these inscriptions are missing from TEI/EpiDoc-based infrastructures like EAGLE and FAIR Epigraphy. Encoding EpiDoc by hand demands both XML skills and knowledge of Armenian epigraphic conventions, which makes large-scale digitization impractical.
The authors present Armenian AutoEpiDoc, which they describe as the first system to turn expert-validated Armenian inscription records into EpiDoc-compliant TEI/XML. It does not rely on OCR. Instead, it takes curated CSV spreadsheets and processes them in three steps:
- loads them into a normalized MySQL database,
- builds TEI authority files linked to external vocabularies,
- serializes each record to XML using rule-based, schema-aware mappings, including a parser for Armenian diplomatic transcription conventions.
In pilot comparisons, manual encoding took tens of minutes per inscription, while the system produced a first draft in seconds that needed only targeted correction. Specialists confirmed that Armenian conventions are preserved. The tool lays groundwork for a first standards-aligned digital corpus of Armenian inscriptions.
Key points
-
Pipeline: The Python ELT workflow has three modules:
csv_to_mysql.pyfor ingestion, header normalization and a star schema,mysql_to_authority_list.pyfor authority files, andmysql_to_epidoc.pyfor XPath-based TEI serialization. -
Authority files: These cover Places, Monuments, Materials and Object Types. Place hierarchies are rebuilt via
<note type="relation">, for example for Artsakh. Materials and object types are aligned with the Getty AAT and EAGLE vocabularies in a<standOff>section. -
Transcription parsing: Simplified ASCII transcriptions are mapped to EpiDoc elements:
<expan>/<abbr>/<ex>for abbreviations,<num>for letter-numerals,<hi>/<join>for ligatures and overlines.
Damaged numerals and ambiguous ligatures are flagged for expert review rather than forced into a reading.
-
Dates and language: Each date is recorded using two calendar systems, the Armenian Era and the Gregorian, and all metadata is bilingual (hy/en).
-
Context and availability: Over 80% of Armenian inscriptions are located outside the modern Republic of Armenia. The system is in active use, for example in the Artsakh Epigraphy Atlas, and the code is released at github.com/dhlab-epfl/autoepidoc.
Cite
@inproceedings{tamrazyan2026armenian,
title = {{Armenian AutoEpiDoc: Automated Extraction and Encoding of Armenian Inscriptions into EpiDoc TEI/XML}},
author = {Tamrazyan, Hamest and Cornamusaz, Emile and Boros, Emanuela},
booktitle = {Proceedings of the 10th Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature 2026},
year = {2026},
doi = {10.18653/v1/2026.latechclfl-1.2},
url = {https://doi.org/10.18653/v1/2026.latechclfl-1.2}
}References
- Francesco Bianchini. 2023. Looking beyond the text: Opportunities and challenges in the digitisation of sanskrit inscriptions. Can’t Touch This. find
- Listing 3: Encoding of original date using Armenian and Gregorian calendars Tim Greenwood. 2014. Armenian epigraphy. In Armenian Philology in the Modern Era, pages 101–121. Brill. find
- Fangchao Liu, John Hindmarch, and Mona Hess. 2023. A review of the cultural heritage linked open data ontologies and models. \#\# Conclusions find
This page in Markdown → https://md.research.elamur.ai/free/en/papers/tamrazyan-2026-armenian-autoepidoc-automated-extraction-encoding/