COMBO-NLP Model for Swedish
Model Description
This is a Swedish-language model based on COMBO-NLP, an open-source natural language preprocessing system. It performs:
- sentence segmentation (via LAMBO)
- tokenisation (via LAMBO)
- part-of-speech tagging
- morphological analysis
- lemmatisation
- dependency parsing
The Swedish model uses FacebookAI/xlm-roberta-base as its base encoder and is trained on UD_Swedish-LinES (UD v2.17).
Evaluation
Evaluation was performed on the UD_Swedish-LinES test split using the standard CoNLL 2018 eval script.
Two evaluation rows are reported:
- Full-text (F1): raw text is segmented by LAMBO, then parsed and compared against gold — measures end-to-end pipeline performance including segmentation quality.
- Aligned accuracy: accuracy on correctly segmented (aligned) tokens — measures parsing quality on tokens that were correctly identified by the segmenter.
Morphosyntactic Tagging
| Metric | Tokens | Sentences | Words | UPOS | XPOS | UFeats | AllTags | Lemmas |
|---|---|---|---|---|---|---|---|---|
| Full-text (F1) | 99.68 | 90.10 | 99.68 | 98.08 | 95.14 | 92.33 | 89.52 | 97.70 |
| Aligned accuracy | 0.00 | 0.00 | 0.00 | 98.39 | 95.45 | 92.63 | 89.81 | 98.01 |
Dependency Parsing
| Metric | UAS | LAS | CLAS | MLAS | BLEX |
|---|---|---|---|---|---|
| Full-text (F1) | 91.76 | 88.93 | 86.64 | 75.95 | 84.38 |
| Aligned accuracy | 92.06 | 89.22 | 86.94 | 76.22 | 84.67 |
Usage
Install the library from PyPI (assuming you have a virtual environment created):
pip install combo-nlp
Install the Lambo segmenter - only needed when passing raw text strings to COMBO:
pip install --index-url https://pypi.clarin-pl.eu/ lambo
from combo import COMBO
# Load a pre-trained model with corresponding Lambo segmenter
nlp = COMBO("Swedish")
# Parse raw text (handles sentence splitting + tokenization)
result = nlp("Den snabba bruna räven hoppar över den lata hunden.")
# Inspect results
for sentence in result:
for token in sentence:
print(f"{token.form:<15} {token.lemma:<15} {token.upos:<8} head={token.head} {token.deprel}")
Refer to the COMBO-NLP documentation for installation and usage instructions:
- https://gitlab.clarin-pl.eu/syntactic-tools/combo-nlp
- https://gitlab.clarin-pl.eu/syntactic-tools/lambo
License
The training data license: cc-by-nc-sa-4.0 is derived from the Universal Dependencies treebank. For the full license terms of each treebank, please refer to the corresponding LICENSE.txt file in the treebank repository:
Citation
If you use this model, please cite:
Ulewicz, M., Jabłońska, M., Klimaszewski, M., Przybyła, P., Pszenny, Ł., Rybak, P., Wiącek, M., & Wróblewska, A. (2026). COMBO-NLP Models Trained on UD v2.17. Zenodo. https://doi.org/10.5281/zenodo.19650523
@software{combo_nlp_2026,
author = {Ulewicz, Michał and Jabłońska, Maja and Klimaszewski, Mateusz and Przybyła, Piotr and Pszenny, Łukasz and Rybak, Piotr and Wiącek, Martyna and Wróblewska, Alina},
title = {{COMBO-NLP} Models Trained on {UD} v2.17},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.19650523},
url = {https://doi.org/10.5281/zenodo.19650523}
}
Resources
- Downloads last month
- 24