# Swahili Tweet Sentiment 2,263 tweets written in Swahili, each with a sentiment label (-1, 0 or 1). The dataset was published on Hugging Face as "A new Swahili tweet dataset for sentiment analysis" and credits Davis David, Zephania Reuben and Eliya Masesa. It is a single CSV file with two columns: the tweet text (Tweets) and an integer label (Labels). The file has no tweet ids, user ids, handles or timestamps. The dataset card does not describe how the tweets were collected or labelled. ## At a glance - **Platform:** Twitter (X) - **Tables:** x_tweets (2,263 rows) - **Version:** 1.0.0 - **Licence:** MIT; SPDX `MIT` ## Contents | Path | What it is | |---|---| | `data/x_tweets.parquet` | The x_tweets table (canonical, Parquet) | | `csv/x_tweets.csv.gz` | The same table as gzip CSV | | `jsonl/x_tweets.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_tweets (2,263 rows) | Column | Type | Meaning | |---|---|---| | `text` | string | The text of the tweet in Swahili, as given in the source file. Many texts begin with spaces, and the text may contain @mentions. | | `x_label` | integer | The sentiment label: -1, 0 or 1. The dataset card does not define these values; they appear to mean negative, neutral and positive. | ## Quick start Python (pandas): ```python import pandas as pd df = pd.read_parquet("https://echo.directory/download/twitter-swahili-tweet-sentiment/v1.0.0/data/x_tweets.parquet") ``` DuckDB (reads over HTTP without downloading the file first): ```sql SELECT * FROM 'https://echo.directory/download/twitter-swahili-tweet-sentiment/v1.0.0/data/x_tweets.parquet' LIMIT 10; ``` R (arrow): ```r df <- arrow::read_parquet("https://echo.directory/download/twitter-swahili-tweet-sentiment/v1.0.0/data/x_tweets.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 dataset card does not say what the labels -1, 0 and 1 mean; negative/neutral/positive is only inferred from the values and sample rows. - The card does not describe how the tweets were collected or who annotated them. - There are no tweet ids or user ids, so the tweets are kept in an x_ table rather than posts. Many tweet texts have leading whitespace, which is kept as in the source file. - The CSV has 2,264 lines: a header row and 2,263 tweets. ## Credit - **Davis David**, creator - **Zephania Reuben**, creator - **Eliya Masesa**, creator - **Hugging Face (dataset Davis/Swahili-tweet-sentiment)**, distributor (https://huggingface.co/datasets/Davis/Swahili-tweet-sentiment) - **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 given only in the metadata (front matter) of the dataset card. The card has no further licence text. ## 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} } ``` ## Versions This is version 1.0.0. Every version is kept unchanged at its own address (`https://echo.directory/download/twitter-swahili-tweet-sentiment/v1.0.0/`); `CHANGELOG.md` lists what changed between versions.