Urdu Detox Benchmark
A benchmark resource for Urdu text detoxification
Dataset repository · Repository files
Overview
Urdu Detox Benchmark is a research-oriented dataset repository for studying text detoxification in Urdu, a relatively under-resourced language in natural language processing (NLP). Text detoxification aims to reduce harmful, toxic, or offensive language while retaining as much of the original message and meaning as possible.
The dataset is organized into training, validation, and test partitions, distributed as separate Excel workbooks. This repository is intended to make the data available for reproducible research, evaluation, and development of Urdu-language detoxification methods.
At a glance
| Property | Details |
|---|---|
| Dataset | Urdu Detox Benchmark |
| Language | Urdu (ur) |
| Research area | Text detoxification; responsible NLP |
| Repository | MSIMALIK/Urdu-Detox-Benchmark |
| Original format | Microsoft Excel (.xlsx) |
| Partitions | Train, validation, test |
| Access | Gated: Hugging Face approval/acceptance is required to download the data |
Repository contents
Urdu-Detox-Benchmark/
├── Urdu_Detox_Train.xlsx # Training partition
├── Urdu_Detox_Validation.xlsx # Validation partition
├── Urdu_Detox_Test.xlsx # Test partition
└── README.md # Dataset documentation
| Partition | File | Intended use |
|---|---|---|
| Train | Urdu_Detox_Train.xlsx |
Develop and train models |
| Validation | Urdu_Detox_Validation.xlsx |
Tune models and select checkpoints |
| Test | Urdu_Detox_Test.xlsx |
Conduct final held-out evaluation |
These are the filenames present in the repository. The workbooks themselves define the precise fields available for each record.
Research motivation
Urdu text detoxification presents challenges involving linguistic variation, informal spelling, dialectal vocabulary, mixed Urdu–English usage, and context-dependent expressions. A useful detoxification system should reduce harmful wording without unnecessarily removing legitimate meaning, changing the speaker's intent, or producing unnatural Urdu.
A benchmark with separate development and evaluation partitions supports reproducible comparison of approaches, including multilingual sequence-to-sequence models, instruction-tuned language models, and other text-rewriting methods.
Accessing and inspecting the dataset
This is a gated dataset. To access the spreadsheets:
- Open the dataset repository.
- Sign in to Hugging Face and complete the access process.
- Download the three Excel files from the Files tab, or use the Python example below once your account has access.
Python example
Install the dependencies:
pip install huggingface_hub pandas openpyxl
hf auth login
Load and inspect the three original Excel workbooks:
import pandas as pd
from huggingface_hub import hf_hub_download
REPO = "MSIMALIK/Urdu-Detox-Benchmark"
FILES = {
"train": "Urdu_Detox_Train.xlsx",
"validation": "Urdu_Detox_Validation.xlsx",
"test": "Urdu_Detox_Test.xlsx",
}
splits = {}
for split_name, filename in FILES.items():
file_path = hf_hub_download(
repo_id=REPO,
repo_type="dataset",
filename=filename,
)
df = pd.read_excel(file_path, engine="openpyxl")
splits[split_name] = df
print(f"\n{split_name.upper()}: {len(df)} rows")
print("Columns:", df.columns.tolist())
print(df.head(5).to_string(index=False))
The code prints the actual column names, row counts, and first five records from each partition; no assumed feature names or label values are required.
Responsible use and limitations
This resource may contain offensive, abusive, or otherwise harmful text. It should be used with care and within the repository's access conditions.
- Context matters. Not every apparently offensive word indicates harmful intent; quotation, negation, and context may change the interpretation.
- Meaning should be preserved. Detoxification should not erase legitimate criticism, identity references, or important factual content.
- Annotation uncertainty. Human judgments about toxicity and acceptable rewrites may vary; do not treat annotations as universally objective.
- Language coverage. Results on a particular Urdu dataset may not generalize across regions, dialects, domains, or writing styles.
- Privacy. Avoid redistributing identifying personal information or raw harmful examples unnecessarily.
License and access
The repository is currently gated. Consult its access conditions and any license specified by the dataset maintainer before redistributing or using the material. No license is asserted in this card, as the applicable license was not confirmed from the public listing.
Citation
If you use this resource, cite the dataset repository. If a related paper or DOI becomes available, add the official citation here.
@misc{msimalik_urdu_detox_benchmark,
title = {Urdu Detox Benchmark},
author = {{MSIMALIK}},
howpublished = {Hugging Face Dataset Repository},
url = {https://huggingface.co/datasets/MSIMALIK/Urdu-Detox-Benchmark}
}
Questions and feedback
For questions about data access, column definitions, annotation details, or corrections, use the repository's Community tab.
- Downloads last month
- 28