Downloads · 30 days
15
25% of all-time downloads
Hassaanatif992/code-switching-codesaviours-si26-MuhammadHassaan
code-switching-codesaviours-si26-MuhammadHassaan is a token classification model from Hassaanatif992. Use it when you need labels on individual words, such as names.
Project: Code Saviours SI-26 — Week 7 Intern: Muhammad Hassaan Student ID: SI26-ML-MH-004 Department: AI/ML
Downloads · 30 days
15
25% of all-time downloads
All-time downloads
59
Public
Parameters
277M
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
Project: Code Saviours SI-26 — Week 7
Intern: Muhammad Hassaan
Student ID: SI26-ML-MH-004
Department: AI/ML
This model is a fine-tuned XLM-RoBERTa model for word-level language identification in Roman Urdu-English code-switched text.
The model predicts one of three labels for each word:
The model was fine-tuned from:
xlm-roberta-base
The original dataset contained 150 Roman Urdu-English code-switched sentences.
During Week 7, additional MIX examples were added because the original dataset contained very few MIX-labelled tokens.
The augmented dataset contained 180 sentences.
The dataset was divided into:
XLM-RoBERTa was fine-tuned for token classification using GPU training.
Training configuration included:
Because the MIX class was underrepresented, sentences containing MIX-labelled tokens were oversampled during the final training experiment.
The model was evaluated using per-class F1 scores for:
The final balanced model performed better on the MIX class than the original training experiment.
Important: The MIX test set contained only a small number of MIX-labelled examples, so the MIX F1 score should be interpreted carefully.
URD F1 : 0.9865 ENG F1 : 0.9853 MIX F1 : 1.0000 Macro F1 : 0.9906 Accuracy : 0.9863
Input:
Aaj mera meeting schedule bohot busy hai
Expected language identification:
Mixed-token example:
Mujhe fileupload karni hai
Future work could include:
Muhammad Hassaan
Student ID: SI26-ML-MH-004
Code Saviours SI-26