Downloads · 30 days
12
3% of all-time downloads
OmarSY11/xlmr-slot-v2
xlmr-slot-v2 is a token classification model from OmarSY11. Use it when you need labels on individual words, such as names. The card lists the license as mit.
Tags the slots (date, time, event name, list name, person, place and others) inside assistant commands in English, Arabic, Sorani and Badini, using BIO labels. Fine-tuned from xlm-roberta-base. Pairs with OmarSY11/xlm…
Downloads · 30 days
12
3% of all-time downloads
All-time downloads
442
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
Tags the slots (date, time, event name, list name, person, place and others)
inside assistant commands in English, Arabic, Sorani and Badini, using BIO
labels. Fine-tuned from xlm-roberta-base. Pairs with
OmarSY11/xlmr-intent-v2. Part
of the Ferman project: https://github.com/omarGH99/ferman-ai-assistant
from transformers import pipeline
tag = pipeline("token-classification", model="OmarSY11/xlmr-slot-v2", aggregation_strategy="simple")
print(tag("remind me to call mum tomorrow at 7pm"))
Rows of the v2 configuration of OmarSY11/ferman-nlu
that carry slot annotations (annot column), train split. English and Arabic
derive from MASSIVE; Sorani and Badini are machine-translated.
Arabic caveat: only 304 Arabic rows carry slot annotations in this release (MASSIVE has more; they were not carried over), so Arabic slot extraction is barely trained and was not measured.
| Base model | xlm-roberta-base |
| Max length | 64 tokens |
| Learning rate / batch size | 2e-5 / 32 |
| Epochs | up to 8, early stopping (patience 2) on validation F1 |
| Warm-up / weight decay | 0.1 / 0.01 |
| Low-resource handling | Sorani, Badini and Arabic training rows duplicated once |
| Seed | 42 |
The notebook is in the repo: ml/train_xlmr_slot_v2_runpod.ipynb.
Entity-level (seqeval) on the held-out test split of the v2 data.
| Language | Test rows scored | Precision | Recall | F1 |
|---|---|---|---|---|
| English | 1,954 | 0.790 | 0.844 | 0.816 |
| Sorani | 370 | 0.620 | 0.669 | 0.643 |
| Badini | 370 | 0.598 | 0.649 | 0.623 |
| Arabic | 0 | not measured | not measured | not measured |
| Overall | 0.743 | 0.796 | 0.769 |
Kurdish test sets are small, so those figures carry wide uncertainty.
Model weights: MIT, like the base model. Training data: CC BY 4.0, derived from MASSIVE (FitzGerald et al., 2022, arXiv:2204.08582), which must be credited. Please also cite https://github.com/omarGH99/ferman-ai-assistant.