Downloads · 30 days
18
18% of all-time downloads
Zainab-Binte-Khalid/code-switching-codesaviours-si26-zainab
code-switching-codesaviours-si26-zainab is a token classification model from Zainab-Binte-Khalid. Use it when you need labels on individual words, such as names. The card lists the license as cc-by-4.0.
Token classification model that identifies whether each word in a Roman Urdu/English code-switched sentence is Urdu (URD), English (ENG), or a fused hybrid word (MIX).
Downloads · 30 days
18
18% of all-time downloads
All-time downloads
100
Public
Parameters
277M
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
Token classification model that identifies whether each word in a Roman Urdu/English code-switched sentence is Urdu (URD), English (ENG), or a fused hybrid word (MIX).
| Label | F1 Score |
|---|---|
| URD | 0.967 |
| ENG | 0.947 |
| MIX | 0.000 |
Overall F1 (URD/ENG): 0.957 (95.73%)
Note on MIX: MIX applies only to single tokens that fuse Urdu and English within one word (e.g. "loadshedding", "tension-wession") — not to sentences that simply contain both languages. This pattern is genuinely rare in natural Roman Urdu/English text; the training data contains only 2 MIX-labeled tokens out of 21,368 total, which is insufficient for the model to learn this class. This reflects the rarity of the phenomenon itself rather than a data collection gap.
Identifying language at the word level in Roman Urdu/English code-switched text — useful for downstream NLP tasks (sentiment analysis, translation, spell-checking) that need language-aware preprocessing for this common but under-resourced language-mixing pattern.