Downloads · 30 days
12
26% of all-time downloads
emanfatimaa05/code-switching-codesaviours-si26-eman
code-switching-codesaviours-si26-eman is a machine learning model from emanfatimaa05. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model is a fine-tuned version of xlm-roberta-base designed for token-level language identification in Roman Urdu–English code-switched text.
Downloads · 30 days
12
26% of all-time downloads
All-time downloads
47
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
This model is a fine-tuned version of xlm-roberta-base designed for token-level language identification in Roman Urdu–English code-switched text.
The model identifies whether individual words in a mixed-language sentence are written in Roman Urdu (URD) or English (ENG).
Input:
Aaj mera mood bohot good hai
Expected language labels:
This model was developed as part of the Code Saviours SI-26 internship programme.
Project: Code-Switching NLP
Task: Roman Urdu–English Token Classification
Base Model: XLM-RoBERTa (xlm-roberta-base)
The dataset contains Roman Urdu–English code-switched sentences collected for this project.
URD, ENGThe dataset does not contain MIX-labelled examples, so MIX was not included in the final evaluation.
The model was fine-tuned using the Hugging Face Transformers library with GPU acceleration.
Training configuration:
| Metric | Score |
|---|---|
| URD F1 | 92.91% |
| ENG F1 | 87.34% |
| Overall F1 | 91.13% |
| Accuracy | 90.91% |
The dataset is relatively small and focuses specifically on Roman Urdu–English code-switching. Performance may vary on text containing different writing styles, spelling variations, slang, abbreviations, or languages outside the training data.
This model is intended for educational and research purposes, particularly for experimenting with language identification and code-switching in Roman Urdu–English text.
Developed as part of the Code Saviours SI-26 ML/AI Internship Programme.