Swahili Tweet Sentiment

AnalyzedSmalltextTwitter (X)

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.

Download data package README Original files as received BibTeX JSONSimilar datasets

Analytics

11.6
Flesch–Kincaid grade
US school grade level
13.7
Automated readability index
Frequent terms
kwakwenyekatikakamasanachakuwaleoyakohabarisikuhiiwatusasakazizaidihudumamtukilailikunatafadhalikupatatunaombawetuwakochangamotoyakevyahiyotaarifasimunambatatizoyetuhapakutokatanzaniakupitiandiosaapiabaadamkuuwakatihatandanisioraisasante
Topic clusters

Topic 0

leo
mkuu
waziri
tanzania
katika
nchini
cha
saa

Topic 1

kwa
kuwasiliana nasi
habari ahsante
tatizo
huduma
yako
changamoto
vifurushi

Topic 2

mechi
bet
wiki
leo
kesho
sasa
kucheza
gari

Topic 3

shule
watoto
elimu
wanafunzi
walimu
serikali
mtoto
mwanafunzi

Topic 4

namba yako
tunaomba
kwa msaada
tafadhali
habari
simu
gani
pole sana

Topic 5

kila
mtu
huru
handle
retweet
mpya
kwa
tweet

Topic 6

mimi
sina
wangu
kwanza
coco
yangu
ila
nina

Topic 7

dawa
kwa
tumbo
mara
maji
kama
wengi
faida

Topic 8

wanawake
kosa
uongozi
sheria
ukatili
makosa
haki
ukwel

Topic 9

sio
zoezi
huyu
kazi
hakuna
mtoto
halina
aeleza

Topic 10

bei
pesa
kabisa
kabla
ndinga
mtu
kuzingatia
kazi

Topic 11

endelea
kufurahia
huduma
zetu
sana
pamoja
nasi
kuwasiliana nasi
Show all 16 topics

Topic 12

hapa
karibu
mbele
kwenda
mambo
asee
bonanza
dhamana

Topic 13

ila
mtanzania
mtu
maana
chochote
ukweli
wewe
namna

Topic 14

asante
maoni
ahsante kwa
kutembelea
kwa
sana
ukurasa
ushauri

Topic 15

sana
hii
mengi
sisi
yetu
mtaji
hususani
nyimbo

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 table
R (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/.

BibTeX · RIS · CSL-JSON

Similar datasets 10 all with scores →