# Urdu Hate Speech (labelled Urdu tweets) Short Urdu social-media posts (tweets), each labelled by hand as hate (1) or not hate (0) for binary hate-speech detection. The dataset card says public tweets were gathered through Twitter API and search endpoints with Urdu keywords, hate-speech lexicon terms and topic-specific queries. Annotators labelled them following written guidelines, and disagreements were settled by discussion or adjudication. The text was cleaned: Unicode NFC normalisation, removal of diacritics and tatweel, user mentions replaced with @user, URLs with , leading RT markers stripped, and retweets and duplicate or near-duplicate messages removed. There are two spreadsheets. Urdu_Hate_Speech.xlsx is the cleaned labelled file (columns Tag and CombinedTweet, about 26,198 rows). The preprocessed combined file (columns Tag and Tweet, about 13,176 rows) is the set used for modelling. The data were published on Hugging Face by the account Adnan855570 in 2025. ## At a glance - **Platform:** Twitter (X) - **Tables:** x_tweets_cleaned (26,198 rows), x_tweets_combined (13,176 rows) - **Version:** 1.0.0 - **Licence:** MIT; SPDX `MIT` ## Contents | Path | What it is | |---|---| | `data/x_tweets_cleaned.parquet` | The x_tweets_cleaned table (canonical, Parquet) | | `csv/x_tweets_cleaned.csv.gz` | The same table as gzip CSV | | `jsonl/x_tweets_cleaned.jsonl.gz` | The same table as gzip JSON Lines | | `data/x_tweets_combined.parquet` | The x_tweets_combined table (canonical, Parquet) | | `csv/x_tweets_combined.csv.gz` | The same table as gzip CSV | | `jsonl/x_tweets_combined.jsonl.gz` | The same table as gzip JSON Lines | | `docs/upstream/` | The upstream documentation, verbatim | | `original/` | The 4 upstream file(s), byte for byte | | `datapackage.json`, `croissant.json` | Machine-readable descriptions of this package | | `CITATION.cff`, `CITATION.bib` | How to cite | | `LICENSE.md` | Licence and terms | | `manifest-sha256.txt` | SHA-256 checksum of every file | ## Tables and columns ### x_tweets_cleaned (26,198 rows) | Column | Type | Meaning | |---|---|---| | `text` | string | The tweet text in Urdu, after cleaning. Mentions are replaced with @user and URLs with . | | `x_label` | string | The hand-assigned label: 1 = hate, 0 = not hate. Kept as text, as it arrives from the spreadsheet. | ### x_tweets_combined (13,176 rows) | Column | Type | Meaning | |---|---|---| | `text` | string | The tweet text in Urdu, from the preprocessed combined file used for modelling. | | `x_label` | string | The hand-assigned label: 1 = hate, 0 = not hate. Kept as text. | ## Quick start Python (pandas): ```python import pandas as pd df = pd.read_parquet("https://echo.directory/download/twitter-urdu-hate-speech-labelled/v1.0.0/data/x_tweets_cleaned.parquet") ``` DuckDB (reads over HTTP without downloading the file first): ```sql SELECT * FROM 'https://echo.directory/download/twitter-urdu-hate-speech-labelled/v1.0.0/data/x_tweets_cleaned.parquet' LIMIT 10; ``` R (arrow): ```r df <- arrow::read_parquet("https://echo.directory/download/twitter-urdu-hate-speech-labelled/v1.0.0/data/x_tweets_cleaned.parquet") ``` ## How this package was made ECHO converted the upstream file(s) listed under `original/` into the tables above, following the [ECHO Data Package 1.0.0](https://echo.directory/docs/edp/1.0/) standard. Every value was checked against the source during conversion: no row was dropped and no value was changed except as described here. - The sources do not state when the data were collected. - The records carry no tweet ids, user ids or timestamps, so they are kept in x_ tables, not posts. - The card says both files use the columns Tweet and Tag. In Urdu_Hate_Speech.xlsx the text column is actually named CombinedTweet. - The card does not say how the two files relate, or whether the combined file is a subset of the cleaned file. Rows may overlap between them. - Row counts come from the spreadsheet dimensions (A1:B26199 and A1:B13177, header included). The card gives only a 10K-100K size range. - Tag is kept as text because xlsx cells arrive as text and blank cells cannot be ruled out. - Many texts are offensive. The card warns that labels may miss satire, reclaimed slurs and code-mixed text, and that they may reflect annotator bias. - Leading and trailing spaces in the texts are kept as in the source. ## Credit - **Adnan (Hugging Face user Adnan855570)**, creator: Named as the author in the dataset card's citation; no institution is stated. - **Hugging Face**, distributor (https://huggingface.co/datasets/Adnan855570/Urdu_Hate_Speech) - **ECHO, Syracuse University**, packager (https://echo.directory) The upstream documentation is preserved verbatim in `docs/upstream/`. ## Licence and terms MIT; SPDX `MIT`, https://opensource.org/licenses/MIT. See `LICENSE.md` for the upstream terms. The licence is stated only in the card metadata. The card does not discuss the Twitter terms that apply to the tweet texts. ## Citation ```bibtex @misc{echo2026, title = {ECHO: Exploratory Compendium of Humanity Online}, author = {Switzer, Braden and Zafarani, Reza}, year = {2026}, url = {https://echo.directory}, note = {Syracuse University} } @misc{urdu_hate_speech_ds_2025, title = {Urdu Hate Speech Dataset}, author = {Adnan}, year = {2025}, howpublished = {\url{https://huggingface.co/datasets/Adnan855570/Urdu_Hate_Speech}} } ``` ## Versions This is version 1.0.0. Every version is kept unchanged at its own address (`https://echo.directory/download/twitter-urdu-hate-speech-labelled/v1.0.0/`); `CHANGELOG.md` lists what changed between versions.