Beyond Rule-Based Processing: LLM-Assisted TEI Encoding of Editorial Interventions in Historical Correspondence

This long paper presentation discusses an LLM-assisted approach for automatically converting editorial interventions from (print) editions into proper TEI XML encoding, focusing on the correspondence corpus of Joseph von Hammer-Purgstall. The study addresses the challenge that rule-based processing cannot handle the ambiguous and contextually-dependent nature of editorial notations across different intervention types (abbreviations, errors, supplied text, unclear readings, omissions). The research develops a pipeline that first extracts bracketed sequences and applies LLM processing with tailored prompts. Currently, the results are still being evaluated against a manually annotated reference corpus. However, the pipeline is already prepared for future deployment: once reliable results are achieved, it will automatically replace the original bracketed sequences with TEI-encoded editorial interventions. Testing multiple commercial and local models on a small dataset containing square brackets as editorial interventions, they found GPT-5 performed best overall, though the local Qwen model provided a viable alternative to commercial solutions. The evaluation framework measures intervention categorization accuracy, element application correctness (including TEI validity, element accuracy and adherence to project rules), and content preservation, revealing that while LLMs show promise for this complex disambiguation task, challenges remain regarding original editorial guidelines reconstruction, TEI encoding flexibility, and the need for more granular evaluation metrics specifically designed for editorial intervention assessment.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-09-19
DOI
https://doi.org/10.5281/zenodo.17176473
Primary Topic
Eastern European Communism and Reforms
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Beyond Rule-Based Processing: LLM-Assisted TEI Encoding of Editorial Interventions in Historical Correspondence

Zenodo (CERN European Organization for Nuclear Research)
Eastern European Communism and Reforms
article

Beyond Rule-Based Processing: LLM-Assisted TEI Encoding of Editorial Interventions in Historical Correspondence

article en

Abstract

This long paper presentation discusses an LLM-assisted approach for automatically converting editorial interventions from (print) editions into proper TEI XML encoding, focusing on the correspondence corpus of Joseph von Hammer-Purgstall. The study addresses the challenge that rule-based processing cannot handle the ambiguous and contextually-dependent nature of editorial notations across different intervention types (abbreviations, errors, supplied text, unclear readings, omissions). The research develops a pipeline that first extracts bracketed sequences and applies LLM processing with tailored prompts. Currently, the results are still being evaluated against a manually annotated reference corpus. However, the pipeline is already prepared for future deployment: once reliable results are achieved, it will automatically replace the original bracketed sequences with TEI-encoded editorial interventions. Testing multiple commercial and local models on a small dataset containing square brackets as editorial interventions, they found GPT-5 performed best overall, though the local Qwen model provided a viable alternative to commercial solutions. The evaluation framework measures intervention categorization accuracy, element application correctness (including TEI validity, element accuracy and adherence to project rules), and content preservation, revealing that while LLMs show promise for this complex disambiguation task, challenges remain regarding original editorial guidelines reconstruction, TEI encoding flexibility, and the need for more granular evaluation metrics specifically designed for editorial intervention assessment.

Zenodo (CERN European Organization for Nuclear Research)
University of Graz (AT)
Openalex Percentile: Top 37%
Eastern European Communism and Reforms
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Beyond Rule-Based Processing: LLM-Assisted TEI Encoding of Editorial Interventions in Historical Correspondence · Zenodo (CERN European Organization for Nuclear Research) (2025) | TGRS Research Map | TGRS