Swahili Tweet Sentiment
A Hugging Face dataset of 2,263 Swahili tweets, each with a sentiment label of -1, 0 or 1. The authors are Davis David, Zephania Reuben and Eliya Masesa. The data are one CSV file with two columns, the tweet text and its label, and contain no user or tweet identifiers. The dataset is MIT-licensed.
Cite this dataset at
twitter-swahili-tweet-sentiment.echo.directory
Analytics
Topic 0
Topic 1
Topic 2
Topic 3
Topic 4
Topic 5
Topic 6
Topic 7
Topic 8
Topic 9
Topic 10
Topic 11
Show all 16 topics
Topic 12
Topic 13
Topic 14
Topic 15
Computed over the full corpus.
Record
- Catalog key
twitter-swahili-tweet-sentiment- Authors
- Davis David; Zephania Reuben; Eliya Masesa
- Year
- 2022
- Source paper
- Davis/Swahili-tweet-sentiment
- License
- license: mit (MIT)
- Contents
- 2,263 tweets (extra table)
Rows of the data package, version 1.0.0. - Languages
- sw
- Tasks
- Sentiment classification inferred
- Region
- Global (inferred: the platform is used worldwide)
Provenance
- Originally published at
- https://huggingface.co/datasets/Davis/Swahili-tweet-sentiment unverified
- Original files as received
- The source files, unconverted, kept for reference: mirrored on echo.directory on 2026-11-26, 251.8 KB across 3 files. Checksums in MANIFEST.json. For use, start with the data package below.
- Data package
- Version 1.0.0 of this dataset as an ECHO Data Package: x_tweets (2,263 rows).
Use from code
Read the x_tweets table directly from echo.directory, without downloading it first.
Every file of this package, with checksums, is listed in files.json; see the API documentation.
Python (DuckDB)
import duckdb # pip install duckdb
df = duckdb.sql("SELECT * FROM 'https://echo.directory/download/twitter-swahili-tweet-sentiment/v1.0.0/data/x_tweets.parquet' LIMIT 1000").df() # drop LIMIT for the whole tableR (arrow)
library(arrow) # install.packages("arrow")
df <- read_parquet("https://echo.directory/download/twitter-swahili-tweet-sentiment/v1.0.0/data/x_tweets.parquet")SQL (DuckDB)
SELECT * FROM 'https://echo.directory/download/twitter-swahili-tweet-sentiment/v1.0.0/data/x_tweets.parquet' LIMIT 10;How to cite
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{david2022davis,
title = {Davis/Swahili-tweet-sentiment},
author = {Davis David and Zephania Reuben and Eliya Masesa},
year = {2022},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/Davis/Swahili-tweet-sentiment}
} APA
Switzer, B., & Zafarani, R. (2026). ECHO: Exploratory Compendium of Humanity Online [Data repository]. Syracuse University. https://echo.directory
Davis David, Zephania Reuben, & Eliya Masesa (2022). Swahili Tweet Sentiment [Data set]. https://twitter-swahili-tweet-sentiment.echo.directory/
MLA
Switzer, Braden, and Reza Zafarani. ECHO: Exploratory Compendium of Humanity Online. Syracuse University, 2026, echo.directory.
Davis David, et al. Swahili Tweet Sentiment. 2022, twitter-swahili-tweet-sentiment.echo.directory/.
