Downloads · 30 days
15
10% of all-time downloads
Riksarkivet/oldbertur-normalised-old-icelandic-ner
oldbertur-normalised-old-icelandic-ner is a token classification model from Riksarkivet. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as gpl-3.0.
This model performs Named Entity Recognition (NER) on normalised Old Icelandic texts sourced from medieval manuscripts, identifying Person and Location entities. Please note, while the model is fully functional, this…
Downloads · 30 days
15
10% of all-time downloads
All-time downloads
144
Public
Repo size
991 MB
Likes
3
Public
Click a slice to open those files.
.bin495 MB · 99%
From the Hugging Face model README
This model performs Named Entity Recognition (NER) on normalised Old Icelandic texts sourced from medieval manuscripts, identifying Person and Location entities. Please note, while the model is fully functional, this model card is due to be updated in the near future with supplementary information.
This model is fine-tuned from IceBERT for NER, designed for normalised Old Icelandic texts as defined in the Menota normalised transcription level description.
For diplomatic transcriptions of Old Icelandic texts, please use oldbertur-diplomatic-old-icelandic-ner instead.
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("Riksarkivet/oldbertur-normalised-old-icelandic-ner")
model = AutoModelForTokenClassification.from_pretrained("Riksarkivet/oldbertur-normalised-old-icelandic-ner")
# Use aggregation_strategy="first" to properly combine subword tokens
ner_pipeline = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="first")
text = "Í þann tíma var hǫfðingi ágǽtr á Íslandi í Ísafirði, er Vermundr hét"
results = ner_pipeline(text)
for entity in results:
print(f"{entity['word']}: {entity['entity_group']} ({entity['score']:.3f})")
Expected output:
Íslandi: Location (1.000)
Ísafirði,: Location (1.000)
Vermundr: Person (1.000)
This model uses the (M + I)<sup>R</sup> + MIM training configuration, combining:
| Source | Description |
|---|---|
| Menota (M) | Normalised Old Icelandic texts from the Medieval Nordic Text Archive |
| IcePaHC (I) | Icelandic Parsed Historical Corpus (normalised Old Icelandic texts) |
| MIM-GOLD-NER (MIM) | Modern Icelandic NER data for data augmentation |
The superscript <sup>R</sup> means that sentence-level class resampling (sCR) was applied to both Menota and IcePaHC data. Since both sources use normalised orthography, both are resampled to address entity class imbalance.
Training set statistics:
| Configuration | Person | Location | Total |
|---|---|---|---|
| (M + I)<sup>R</sup> + MIM | 37,917 | 11,931 | 49,848 |
Entity breakdown by source:
| Source | Person | Location | Total |
|---|---|---|---|
| Menota (M) | 1,486 | 180 | 1,666 |
| IcePaHC (I) | 2,797 | 362 | 3,159 |
| (M + I)<sup>R</sup> after resampling | 22,330 | 2,929 | 25,259 |
| MIM-GOLD-NER | 15,587 | 9,002 | 24,589 |
Evaluation sets:
The dev and test sets consist exclusively of Old Icelandic texts in order to reflect our target domain.
| Metric | Score |
|---|---|
| F1 | 0.93 |
| Precision | 0.90 |
| Recall | 0.95 |
The model uses BIO tagging with the following labels:
| Label | Description |
|---|---|
O | Outside any entity |
B-Person | Beginning of a person name |
I-Person | Inside/continuation of a person name |
B-Location | Beginning of a location name |
I-Location | Inside/continuation of a location name |
NER is framed as a token classification task, with a classification head added on top of IceBERT.
Hyperparameters:
Class imbalance handling:
If you use this model, please cite:
@inproceedings{henningsson2026,
title={{OldBERTur}: Named Entity Recognition for Medieval {I}celandic},
author={Henningsson, Pontus and Pettersson, Eva and Lenas, Erik},
booktitle={{Proceedings of the Fourth Workshop on Language Technologies for Historical and Ancient Languages (LT4HALA) @ LREC-2026}},
year={2026},
address = {Palma, Mallorca, Spain},
pages = {469–481. European Language Resources Association (ELRA)},
publisher = "11 May 2026. European Language Resources Association (ELRA)",
url = {http://lrec-conf.org/proceedings/lrec2026/workshops/lt4hala/2026.lt4hala-1.0.pdf}
}
For more information on our code and data, see our GitHub repository. For more information about the work in general, see our paper.
We are grateful for the great work carried out by the projects below, and for making it possible for us to use their data in order to conduct our academic research and develop NER models for Medieval Icelandic. We thank developers, annotators, scholars, project managers, and anyone else who has contributed to these projects. We also express our sincerest gratitude to the students from Uppsala University who assisted in marking and annotating entities in the two Menota works Codex Wormianus (AM 242 fol) and Vǫluspá in Hauksbók (AM 544 4to).
This model is released under the GNU General Public License v3.0 (GPL-3.0).
For questions or issues, please open an issue on the GitHub repository or contact: [email protected]