# TweetBLM: Black Lives Matter Hate Speech Dataset TweetBLM: 9,165 tweets related to Black Lives Matter, each with a hate-speech label (counts of the labels: 0 (6,081), 1 (3,084)), its hashtags, the client it was posted from and three fields about the author's account, by Raj Ratn Pranesh, Sumit Kumar and Ambesh Shekhar (Birla Institute of Technology, Mesra), 2020. The file has no tweet IDs, user names or tweet times. ## At a glance - **Platform:** Twitter (X) - **Period covered:** tweets of 2020 (record published 2020-08-25; no collection dates in the file) - **Tables:** posts (9,165 rows), annotations (9,165 rows) - **Structure:** Labelled data, Text - **Version:** 1.0.0 - **Licence:** CC BY 4.0; SPDX `CC-BY-4.0` - **Original DOI:** 10.48550/arXiv.2108.12521 ## Contents | Path | What it is | |---|---| | `data/posts.parquet` | The posts table (canonical, Parquet) | | `csv/posts.csv.gz` | The same table as gzip CSV | | `jsonl/posts.jsonl.gz` | The same table as gzip JSON Lines | | `data/annotations.parquet` | The annotations table (canonical, Parquet) | | `csv/annotations.csv.gz` | The same table as gzip CSV | | `original/` | The 1 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 ### posts (9,165 rows) Pieces of content people wrote: posts, comments, replies, tweets, messages, reviews. | Column | Type | Meaning | |---|---|---| | `post_id` | string | Minted by ECHO as echo::, because upstream gives no ID; stable only within this version. | | `text` | string | text as in the upstream file: the tweet text, including its retweet prefix. (quality: Kept as upstream wrote it, without Unicode normalisation or unescaping.) | | `x_hashtags` | string | hashtags as in the upstream file: a Python-style list of the tweet's hashtags as text; empty (null) where none. | | `x_source` | string | source as in the upstream file: the client the tweet was posted from. | | `x_user_created` | string | user_created as in the upstream file: the creation time of the author's account (day-month-year hour:minute), kept as text because no time zone is stated. (quality: 3 rows are shifted by a comma in the text (see notes); their values here are not account times.) | | `x_user_friends` | string | user_friends as in the upstream file: the author's friends (followed accounts) count, kept as text because of the 3 shifted rows. | | `x_user_favourites` | string | user_favourites as in the upstream file: the author's favourites count, kept as text because of the 3 shifted rows. | | `x_is_retweet` | string | is_retweet as in the upstream file: FALSE; empty (null) in 3 rows. | ### annotations (9,165 rows) Labels attached to posts, users, threads, links or text spans, by people, models or rules. | Column | Type | Meaning | |---|---|---| | `target_id` | string | The post_id of the labelled row: the same minted ID as posts.post_id of that row. | | `label` | string | hate label as in the upstream file: 0 or 1. The Zenodo record says only that the file holds tweets "and their corresponding labels of hate speech"; it does not say which code means hate. | | `target_type` | string | post: every label refers to a row of posts. | | `task` | string | hate-speech (the task named by the Zenodo record). | ## Quick start Python (pandas): ```python import pandas as pd df = pd.read_parquet("https://echo.directory/download/tweetblm/v1.0.0/data/posts.parquet") ``` DuckDB (reads over HTTP without downloading the file first): ```sql SELECT * FROM 'https://echo.directory/download/tweetblm/v1.0.0/data/posts.parquet' LIMIT 10; ``` R (arrow): ```r df <- arrow::read_parquet("https://echo.directory/download/tweetblm/v1.0.0/data/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. - 3,181 of the tweets start with RT @, that is they are retweets as written; the is_retweet column says FALSE for nearly all rows, so it does not mark them. - 3 rows are shifted: the following fields are shifted, so their account columns hold other text (one holds a later part of a tweet). They are kept as found, and the account columns are text for this reason. - The Zenodo record gives only a one-line description ("Collection of BLM related tweets and their corresponding labels of hate speech") and no collection period; the account-creation times in the file (2006 and later) and the 2020 record date are the only evidence of the period. - The label codes are not defined by the record; the distribution of the labels is in the description. - `posts.text`: Kept as upstream wrote it, without Unicode normalisation or unescaping. - `posts.x_user_created`: 3 rows are shifted by a comma in the text (see notes); their values here are not account times. ## Credit - **Raj Ratn Pranesh**, creator (https://zenodo.org/records/4000383): Birla Institute of Technology, Mesra, as listed on Zenodo - **Sumit Kumar**, creator (https://zenodo.org/records/4000383): Birla Institute of Technology, Mesra - **Ambesh Shekhar**, creator (https://zenodo.org/records/4000383): Birla Institute of Technology, Mesra - **Zenodo**, distributor (https://zenodo.org/records/4000383) - **ECHO, Syracuse University**, packager (https://echo.directory) ## Licence and terms CC BY 4.0; SPDX `CC-BY-4.0`, https://creativecommons.org/licenses/by/4.0/. See `LICENSE.md` for the upstream terms. The Zenodo record 4000383 (https://zenodo.org/records/4000383) gives the licence CC BY 4.0. The tweets were written by Twitter users; the record asks for no other conditions. ## 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{https://doi.org/10.48550/arxiv.2108.12521, doi = {10.48550/ARXIV.2108.12521}, url = {https://arxiv.org/abs/2108.12521}, author = {Kumar, Sumit and Pranesh, Raj Ratn}, keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences}, title = {TweetBLM: A Hate Speech Dataset and Analysis of Black Lives Matter-related Microblogs on Twitter}, publisher = {arXiv}, year = {2021}, copyright = {Creative Commons Attribution 4.0 International} } ``` ## Versions This is version 1.0.0. Every version is kept unchanged at its own address (`https://echo.directory/download/tweetblm/v1.0.0/`); `CHANGELOG.md` lists what changed between versions.