Datasets:
Upload 4 files
Browse files
README.md
CHANGED
|
@@ -1,3 +1,101 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- ha
|
| 4 |
+
- yo
|
| 5 |
+
- sw
|
| 6 |
license: cc-by-4.0
|
| 7 |
+
task_categories:
|
| 8 |
+
- text-classification
|
| 9 |
+
tags:
|
| 10 |
+
- sentiment-analysis
|
| 11 |
+
- african-languages
|
| 12 |
+
- hausa
|
| 13 |
+
- yoruba
|
| 14 |
+
- swahili
|
| 15 |
+
- autoscientist-challenge
|
| 16 |
+
size_categories:
|
| 17 |
+
- 10K<n<100K
|
| 18 |
---
|
| 19 |
+
|
| 20 |
+
# Combined Sentiment Dataset: Hausa, Yorùbá, Swahili
|
| 21 |
+
|
| 22 |
+
A stitched multi-source sentiment classification dataset combining three
|
| 23 |
+
independently collected sentiment corpora for Hausa, Yorùbá, and Swahili,
|
| 24 |
+
built for the [Adaption Labs AutoScientist Challenge](https://adaptionlabs.ai/blog/autoscientist-challenge)
|
| 25 |
+
(Language category).
|
| 26 |
+
|
| 27 |
+
## Why this dataset
|
| 28 |
+
|
| 29 |
+
Existing sentiment resources for these languages are dominated by a single
|
| 30 |
+
domain (Twitter). This dataset combines **three different sources across
|
| 31 |
+
three different domains** to reduce domain overfitting and give a more
|
| 32 |
+
robust sentiment signal:
|
| 33 |
+
|
| 34 |
+
| Source | Domain | Languages | Rows |
|
| 35 |
+
|---|---|---|---|
|
| 36 |
+
| [AfriSenti](https://github.com/afrisenti-semeval/afrisent-semeval-2023) | Twitter | Hausa, Yorùbá, Swahili | 40,290 |
|
| 37 |
+
| [NollySenti](https://github.com/IyanuSh/NollySenti) | Nollywood movie reviews (human-translated) | Hausa, Yorùbá | 2,510 |
|
| 38 |
+
| [Neurotech-HQ Swahili](https://github.com/Neurotech-HQ/swahili-sentiment-analysis-dataset) | Social media / product reviews (back-translated) | Swahili | 3,925 |
|
| 39 |
+
|
| 40 |
+
## Dataset structure
|
| 41 |
+
|
| 42 |
+
- `text`: the raw text (tweet, movie review, or social media comment)
|
| 43 |
+
- `label`: one of `positive`, `negative`, `neutral` (single unified label column)
|
| 44 |
+
- `language`: `hausa`, `yoruba`, or `swahili`
|
| 45 |
+
- `source`: which of the three original datasets the row came from
|
| 46 |
+
- `domain`: `twitter`, `movie_review`, or `social_media_reviews`
|
| 47 |
+
- `split`: `train`, `dev`, or `test`
|
| 48 |
+
|
| 49 |
+
## Splits
|
| 50 |
+
|
| 51 |
+
All three languages use an identical **70 / 15 / 15** train/dev/test split,
|
| 52 |
+
stratified by label, computed after pooling all sources per language
|
| 53 |
+
(NOT the original per-source splits — see Limitations).
|
| 54 |
+
|
| 55 |
+
| Language | Total | Train | Dev | Test |
|
| 56 |
+
|---|---|---|---|---|
|
| 57 |
+
| Hausa | 23,162 | 16,213 | 3,474 | 3,475 |
|
| 58 |
+
| Yorùbá | 16,627 | 11,639 | 2,494 | 2,494 |
|
| 59 |
+
| Swahili | 6,936 | 4,855 | 1,040 | 1,041 |
|
| 60 |
+
|
| 61 |
+
## Limitations
|
| 62 |
+
|
| 63 |
+
- **Label imbalance across sources**: NollySenti and the Neurotech Swahili
|
| 64 |
+
set are binary (positive/negative only). `neutral` examples come
|
| 65 |
+
exclusively from AfriSenti, so neutral coverage is thinner relative to
|
| 66 |
+
positive/negative for all three languages.
|
| 67 |
+
- **Re-split, not original splits**: because splits were recomputed by
|
| 68 |
+
pooling sources, this is not directly comparable row-for-row to
|
| 69 |
+
benchmarks trained on the original AfriSenti or NollySenti splits (e.g.
|
| 70 |
+
`Davlan/afrisenti-twitter-sentiment-afroxlmr-large`). Use as a fresh
|
| 71 |
+
baseline, not a drop-in replacement.
|
| 72 |
+
- **Neurotech Swahili has no official original split** — an 80/10/10 split
|
| 73 |
+
was assigned with a fixed seed (42) before being pooled and re-split here.
|
| 74 |
+
- **Swahili domain composition differs** from Hausa/Yorùbá: it is roughly
|
| 75 |
+
half Twitter, half social-media/product reviews, while Hausa and Yorùbá
|
| 76 |
+
are Twitter-dominant with a smaller movie-review slice.
|
| 77 |
+
|
| 78 |
+
## Citation
|
| 79 |
+
|
| 80 |
+
If you use this combined dataset, please cite all three original sources:
|
| 81 |
+
|
| 82 |
+
```
|
| 83 |
+
@inproceedings{muhammad2023afrisenti,
|
| 84 |
+
title={AfriSenti: A Twitter Sentiment Analysis Benchmark for African Languages},
|
| 85 |
+
author={Muhammad, Shamsuddeen Hassan and others},
|
| 86 |
+
year={2023}
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
@inproceedings{shode2023nollysenti,
|
| 90 |
+
title={NollySenti: Leveraging Transfer Learning and Machine Translation for Nigerian Movie Sentiment Classification},
|
| 91 |
+
author={Shode, Iyanuoluwa and Adelani, David Ifeoluwa and Peng, Jing and Feldman, Anna},
|
| 92 |
+
year={2023}
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
@misc{neurotech2021swahili,
|
| 96 |
+
title={Swahili Sentiment Analysis Dataset},
|
| 97 |
+
author={Neurotech-HQ},
|
| 98 |
+
year={2021},
|
| 99 |
+
howpublished={\\url{https://github.com/Neurotech-HQ/swahili-sentiment-analysis-dataset}}
|
| 100 |
+
}
|
| 101 |
+
```
|
test.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
validation.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|