Datasets:
sentence stringclasses 161
values | word stringlengths 1 15 | label stringclasses 3
values |
|---|---|---|
Aaj ka din bohot busy tha had 3 meetings back to back | Aaj | URD |
Aaj ka din bohot busy tha had 3 meetings back to back | ka | URD |
Aaj ka din bohot busy tha had 3 meetings back to back | din | URD |
Aaj ka din bohot busy tha had 3 meetings back to back | bohot | URD |
Aaj ka din bohot busy tha had 3 meetings back to back | busy | ENG |
Aaj ka din bohot busy tha had 3 meetings back to back | tha | URD |
Aaj ka din bohot busy tha had 3 meetings back to back | had | ENG |
Aaj ka din bohot busy tha had 3 meetings back to back | 3 | ENG |
Aaj ka din bohot busy tha had 3 meetings back to back | meetings | ENG |
Aaj ka din bohot busy tha had 3 meetings back to back | back | ENG |
Aaj ka din bohot busy tha had 3 meetings back to back | to | ENG |
Aaj ka din bohot busy tha had 3 meetings back to back | back | ENG |
Yaar seriously I cant even right now bohot thak gaya hoon | Yaar | URD |
Yaar seriously I cant even right now bohot thak gaya hoon | seriously | ENG |
Yaar seriously I cant even right now bohot thak gaya hoon | I | ENG |
Yaar seriously I cant even right now bohot thak gaya hoon | cant | ENG |
Yaar seriously I cant even right now bohot thak gaya hoon | even | ENG |
Yaar seriously I cant even right now bohot thak gaya hoon | right | ENG |
Yaar seriously I cant even right now bohot thak gaya hoon | now | ENG |
Yaar seriously I cant even right now bohot thak gaya hoon | bohot | URD |
Yaar seriously I cant even right now bohot thak gaya hoon | thak | URD |
Yaar seriously I cant even right now bohot thak gaya hoon | gaya | URD |
Yaar seriously I cant even right now bohot thak gaya hoon | hoon | URD |
Bhai kal mera presentation hai still not prepared at all | Bhai | URD |
Bhai kal mera presentation hai still not prepared at all | kal | URD |
Bhai kal mera presentation hai still not prepared at all | mera | URD |
Bhai kal mera presentation hai still not prepared at all | presentation | ENG |
Bhai kal mera presentation hai still not prepared at all | hai | URD |
Bhai kal mera presentation hai still not prepared at all | still | ENG |
Bhai kal mera presentation hai still not prepared at all | not | ENG |
Bhai kal mera presentation hai still not prepared at all | prepared | ENG |
Bhai kal mera presentation hai still not prepared at all | at | ENG |
Bhai kal mera presentation hai still not prepared at all | all | ENG |
Khana kha liya I was literally waiting for you | Khana | URD |
Khana kha liya I was literally waiting for you | kha | URD |
Khana kha liya I was literally waiting for you | liya | URD |
Khana kha liya I was literally waiting for you | I | ENG |
Khana kha liya I was literally waiting for you | was | ENG |
Khana kha liya I was literally waiting for you | literally | ENG |
Khana kha liya I was literally waiting for you | waiting | ENG |
Khana kha liya I was literally waiting for you | for | ENG |
Khana kha liya I was literally waiting for you | you | ENG |
Subah se kuch nahi khaya just had coffee thats it | Subah | URD |
Subah se kuch nahi khaya just had coffee thats it | se | URD |
Subah se kuch nahi khaya just had coffee thats it | kuch | URD |
Subah se kuch nahi khaya just had coffee thats it | nahi | URD |
Subah se kuch nahi khaya just had coffee thats it | khaya | URD |
Subah se kuch nahi khaya just had coffee thats it | just | ENG |
Subah se kuch nahi khaya just had coffee thats it | had | ENG |
Subah se kuch nahi khaya just had coffee thats it | coffee | ENG |
Subah se kuch nahi khaya just had coffee thats it | thats | ENG |
Subah se kuch nahi khaya just had coffee thats it | it | ENG |
Mere phone ki battery khatam ho gayi please charger dedo | Mere | URD |
Mere phone ki battery khatam ho gayi please charger dedo | phone | ENG |
Mere phone ki battery khatam ho gayi please charger dedo | ki | URD |
Mere phone ki battery khatam ho gayi please charger dedo | battery | ENG |
Mere phone ki battery khatam ho gayi please charger dedo | khatam | URD |
Mere phone ki battery khatam ho gayi please charger dedo | ho | URD |
Mere phone ki battery khatam ho gayi please charger dedo | gayi | URD |
Mere phone ki battery khatam ho gayi please charger dedo | please | ENG |
Mere phone ki battery khatam ho gayi please charger dedo | charger | ENG |
Mere phone ki battery khatam ho gayi please charger dedo | dedo | URD |
Acha sun plans cancel ho gaye something came up | Acha | URD |
Acha sun plans cancel ho gaye something came up | sun | URD |
Acha sun plans cancel ho gaye something came up | plans | ENG |
Acha sun plans cancel ho gaye something came up | cancel | ENG |
Acha sun plans cancel ho gaye something came up | ho | URD |
Acha sun plans cancel ho gaye something came up | gaye | URD |
Acha sun plans cancel ho gaye something came up | something | ENG |
Acha sun plans cancel ho gaye something came up | came | ENG |
Acha sun plans cancel ho gaye something came up | up | ENG |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | Yaar | URD |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | mujhe | URD |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | bohot | URD |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | neend | URD |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | aa | URD |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | rahi | URD |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | hai | URD |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | but | ENG |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | assignment | ENG |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | complete | ENG |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | karna | URD |
Yaar mujhe bohot neend aa rahi hai but assignment complete karna hai | hai | URD |
Main abhi busy hoon will call you later | Main | URD |
Main abhi busy hoon will call you later | abhi | URD |
Main abhi busy hoon will call you later | busy | ENG |
Main abhi busy hoon will call you later | hoon | URD |
Main abhi busy hoon will call you later | will | ENG |
Main abhi busy hoon will call you later | call | ENG |
Main abhi busy hoon will call you later | you | ENG |
Main abhi busy hoon will call you later | later | ENG |
Kal raat bohot late soya thats why mood off hai | Kal | URD |
Kal raat bohot late soya thats why mood off hai | raat | URD |
Kal raat bohot late soya thats why mood off hai | bohot | URD |
Kal raat bohot late soya thats why mood off hai | late | ENG |
Kal raat bohot late soya thats why mood off hai | soya | URD |
Kal raat bohot late soya thats why mood off hai | thats | ENG |
Kal raat bohot late soya thats why mood off hai | why | ENG |
Kal raat bohot late soya thats why mood off hai | mood | ENG |
Kal raat bohot late soya thats why mood off hai | off | ENG |
End of preview. Expand in Data Studio
Roman Urdu-English Code Switching Dataset
Dataset Description
A manually labeled dataset of 160+ code-switching sentences where Roman Urdu and English are naturally mixed — reflecting how 230 million Pakistanis actually communicate online.
Each word in every sentence is tagged with a language label, making this dataset suitable for token-level language identification and code-switching NLP research.
Label Meanings
| Label | Description | Examples |
|---|---|---|
URD |
Roman Urdu (Urdu written in Latin script) | Aaj, bohot, hai, mujhe, karo |
ENG |
English | meeting, please, seriously, office |
MIX |
Hybrid or brand names used across both languages | Netflix, Instagram, ChatGPT, Foodpanda |
Dataset Format
The dataset is in CSV format with three columns:
| Column | Type | Description |
|---|---|---|
sentence |
string | The full code-switched sentence |
word |
string | Individual word from the sentence |
label |
string | Language label (URD, ENG, or MIX) |
Example Entries
| sentence | word | label |
|---|---|---|
| Aaj ka din bohot busy tha had 3 meetings back to back | Aaj | URD |
| Aaj ka din bohot busy tha had 3 meetings back to back | ka | URD |
| Aaj ka din bohot busy tha had 3 meetings back to back | busy | ENG |
| Aaj ka din bohot busy tha had 3 meetings back to back | meetings | ENG |
Collection Methodology
Sentences were crafted to mirror real-world code-switching patterns observed across:
- 🐦 Pakistani Twitter/X — searched for common Urdu markers like "kya", "hai", "nahi" mixed with English
- 🗨️ Reddit (r/pakistan) — comment sections where bilingual users interact
- 📺 YouTube comments — on Pakistani content creators' videos
- 💬 WhatsApp-style messaging — casual conversational patterns (anonymized)
Categories Covered
The dataset spans 8 thematic categories to ensure diversity:
- Daily life & casual conversation (~30 sentences)
- Work, office & professional (~25 sentences)
- Food, restaurants & cooking (~20 sentences)
- Technology & social media (~20 sentences)
- Education, studies & exams (~20 sentences)
- Sports, cricket & entertainment (~15 sentences)
- Shopping, fashion & clothes (~15 sentences)
- Travel, weather & transport (~15 sentences)
Intended Uses
- Token-level language identification — Train classifiers to detect language switches at the word level
- Code-switching research — Study patterns of how Urdu-English bilingual speakers mix languages
- NER for mixed-language text — Foundation for named entity recognition in code-switched text
- Sentiment analysis — Pre-processing step for sentiment models handling mixed-language input
- Language model fine-tuning — Adapt models to understand and generate code-switched text
How to Load
import pandas as pd
# From local file
df = pd.read_csv('dataset.csv')
# Or from HuggingFace
from datasets import load_dataset
dataset = load_dataset('Noisy77/code-switching-codesaviours-si26-bilal')
Limitations
- The dataset focuses on Roman Urdu + English only (not Urdu script)
- Sentences are modeled after real patterns but are not direct copies from social media
- The
MIXlabel is used sparingly and primarily for brand/platform names - Dataset size is relatively small (160+ sentences) — best used for prototyping or as a seed dataset
Citation
If you use this dataset, please cite:
@dataset{bilal_code_switching_2026,
title={Roman Urdu-English Code Switching Dataset},
author={Bilal},
year={2026},
publisher={HuggingFace},
url={https://huggingface.co/datasets/Noisy77/code-switching-codesaviours-si26-bilal}
}
Credit
Built by Bilal during the Code Saviours ML/AI Internship — Batch SI-26.
- Downloads last month
- 20