# HateSpeechPl: Polish forum posts about minorities, annotated for hate speech HateSpeechPl: Polish posts from public web forums, written in offensive language toward minorities (for example ethnic or racial groups). Marek Troszyński and Aleksander Wawer collected them at the Institute of Computer Science, Polish Academy of Sciences (IPI PAN), to study whether hate speech in Polish can be recognised automatically. The posts were annotated by hand. This Hugging Face copy (community-datasets/hate_speech_pl) has 13,887 rows in one train split. Each row is one annotator's assessment of one post: a rating from 0 to 4 (higher is more negative), whether the post shows negative emotions, whether it calls for action, whether it is ironic or sarcastic, a source-of- knowledge code (0, 1 or 2) and internal codes for the minority and topic. The same post (text_id) can appear once for each annotator who rated it. Post texts keep their HTML formatting. The original corpus was a MySQL export, which was converted to CSV and later to Parquet. Contact details that writers left in their posts are masked (see notes). ## At a glance - **Platform:** Unaffiliated - **Tables:** x_annotated_posts (13,887 rows) - **Version:** 1.0.0 - **Licence:** CC BY-NC-SA 3.0; SPDX `CC-BY-NC-SA-3.0` ## Contents | Path | What it is | |---|---| | `data/x_annotated_posts.parquet` | The x_annotated_posts table (canonical, Parquet) | | `csv/x_annotated_posts.csv.gz` | The same table as gzip CSV | | `jsonl/x_annotated_posts.jsonl.gz` | The same table as gzip JSON Lines | | `docs/upstream/` | The upstream documentation, verbatim | | `original/` | The 2 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_annotated_posts (13,887 rows) | Column | Type | Meaning | |---|---|---| | `x_id` | integer | Identifier of this row (one annotation of one post). | | `x_text_id` | integer | Identifier of the post. It repeats when several annotators rated the same post. | | `x_annotator_id` | integer | Number of the annotator who gave this assessment. Annotators are not otherwise identified. | | `x_minority_id` | integer | Internal code of the minority the post refers to. The card does not give the code list. | | `x_negative_emotions` | boolean | Whether the post expresses negative emotions. | | `x_call_to_action` | boolean | Whether the post urges its readers to take action. | | `x_source_of_knowledge` | integer | A categorical code (0, 1 or 2) for the source of knowledge. The card does not define the values. | | `x_irony_sarcasm` | boolean | Whether the post is ironic or sarcastic. | | `x_topic` | integer | Internal code of the post's topic. The card does not give the code list. | | `text` | string | The post text in Polish, with its HTML formatting kept. | | `x_rating` | integer | Rating from 0 to 4; a higher value means more negative content. | ## Quick start Python (pandas): ```python import pandas as pd df = pd.read_parquet("https://echo.directory/download/polish-forums-hate-speech-minorities/v1.0.0/data/x_annotated_posts.parquet") ``` DuckDB (reads over HTTP without downloading the file first): ```sql SELECT * FROM 'https://echo.directory/download/polish-forums-hate-speech-minorities/v1.0.0/data/x_annotated_posts.parquet' LIMIT 10; ``` R (arrow): ```r df <- arrow::read_parquet("https://echo.directory/download/polish-forums-hate-speech-minorities/v1.0.0/data/x_annotated_posts.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. - Each row is an annotation, not a unique post: the same post (x_text_id) and its text can appear once for each annotator who rated it. For this reason the data are in an x_ table rather than posts. - The card does not name the forums the posts came from. The IPI PAN page says the posts were 'crawled from public Polish web'. - The codes for minority, topic and source of knowledge are internal codes, and their meanings are not documented. - The card says the dataset contains negative posts only, and that it is for research use only. - The IPI PAN page describes its current version as 'over 2000 posts'. The 13,887 rows here count annotations, so several rows can belong to one post. - Personal identifiers in the post texts (and two contact e-mails in the source README) are pseudonymised under ECHO's masking policy v1.3 (2026-12-01, Reza's decision for this dataset): 20 e-mail addresses (19 distinct) became [EMAIL_...]; 15 phone and other contact numbers (14 distinct) became [PHONE_...] (Polish phone formats, and every standalone number of 7 to 10 digits outside links and dates); 13 Gadu-Gadu messenger numbers (12 distinct) became [USER_...] (the word gg stays). Each value has the same token everywhere in this dataset but a different one in other ECHO datasets, and tokens cannot be turned back into the values. Only the text column was changed; the masked Parquet ships under derived/ in place of the original, and derived/masking.provenance.json gives the rules and counts. Some masked numbers are not contact details (a fixed format cannot tell them apart). ## Credit - **Marek Troszyński**, creator: Curator of the dataset (Hugging Face card); author of the 2017 paper - **Aleksander Wawer**, creator: Curator and point of contact (Hugging Face card); IPI PAN - **Institute of Computer Science, Polish Academy of Sciences (IPI PAN)**, publisher (http://zil.ipipan.waw.pl/HateSpeech): Hosts the original corpus on its HateSpeech page - **Hugging Face community-datasets**, distributor (https://huggingface.co/datasets/community-datasets/hate_speech_pl): Distributes the CSV conversion of the corpus as Parquet - **ECHO, Syracuse University**, packager (https://echo.directory) The upstream documentation is preserved verbatim in `docs/upstream/`. ## Licence and terms CC BY-NC-SA 3.0; SPDX `CC-BY-NC-SA-3.0`, https://creativecommons.org/licenses/by-nc-sa/3.0/. See `LICENSE.md` for the upstream terms. The card's metadata gives version 3.0, but its text says that the original licence (per Metashare) names no version. The IPI PAN page states no licence. The card also says the dataset is "provided for research purposes only". Because the licence is NonCommercial and ShareAlike, tables derived from the data, including ECHO's, carry the same terms. ## 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} } @article{troszynski2017czy, title = {Czy komputer rozpozna hejtera? Wykorzystanie uczenia maszynowego (ML) w jako{\'s}ciowej analizie danych}, author = {Troszy{\'n}ski, Marek and Wawer, Aleksander}, journal = {Przegl{\k{a}}d Socjologii Jako{\'s}ciowej}, volume = {13}, number = {2}, pages = {62--80}, year = {2017} } ``` ## Versions This is version 1.0.0. Every version is kept unchanged at its own address (`https://echo.directory/download/polish-forums-hate-speech-minorities/v1.0.0/`); `CHANGELOG.md` lists what changed between versions.