Named Entity Recognition for Pre-Modern Serbian Cyrillic: Using Transformer-Based Models and Generative Data Augmentation
Authors:
Preprint
- 12 November 2026
- preprint
- Published by Springer Nature in Research Square
Abstract
In this paper, we evaluate the effectiveness of transformer-based models for Named Entity Recognition (NER) in pre-modern Serbian Cyrillic texts, with a particular focus on improving model generalization through generative data augmentation. We construct a domain-specific NER dataset, based on medieval Serbian charters and archival documents, annotated using the BIO tagging scheme, and extend the training corpus with synthetically generated examples. Two transformer-based language models, BERTić and XLM-RoBERTa, are fine-tuned and evaluated in both in-domain and out-of-domain settings. The results show that transformer-based models, particularly fine-tuned XLM-RoBERTa, achieve strong in-domain performance and substantially improve out-of-domain robustness compared with a previously developed CNN-based NER model. Old-Serb-XLM-RoBERTa trained with 30% synthetic data achieves the highest in-domain performance, with an overall F1-score of \((\approx)\) 0.92. The configuration trained with 100% synthetic data performs best on some individual out-of-domain documents, whereas the 50% configuration achieves the highest average weighted F1-score in out-of-domain evaluation and is therefore selected as the recommended model for broader use. These findings show that synthetic data augmentation can improve generalization, especially for low-resource historical NER, but its effectiveness depends on the model architecture, augmentation ratio, and the degree of domain shift. The recommended model, together with the annotated and augmented training dataset, is publicly available via Hugging Face, supporting further research on historical South Slavic languages.
All Related Versions
This publication has 25 references indexed in Scilit:
- An experimental study on data augmentation techniques for named entity recognition on low-resource domainsNatural Language Processing, 2026
- Named Entity Recognition for Serbian Legal Documents: Design, Methodology and Dataset Development2026
- A survey of data augmentation in named entity recognitionNeurocomputing, 2025
- SrpCNNeL: Serbian Model for Named Entity LinkingAnnals of Computer Science and Information Systems, 2024
- RoPDA: Robust Prompt-Based Data Augmentation for Low-Resource Named Entity RecognitionProceedings of the AAAI Conference on Artificial Intelligence, 2024
- Named Entity Recognition and Classification in Historical Documents: A SurveyACM Computing Surveys, 2023
- Annotation of the Serbian ELTeC CollectionInfotheca - Journal for Digital Humanities, 2021
- Unsupervised Cross-lingual Representation Learning at Scale2020
- From DELA Based Dictionary to Leximirka Lexical DatabaseInfotheca - Journal for Digital Humanities, 2019
- A system for named entity recognition based on local grammarsJournal of Logic and Computation, 2013