michsethowusu's picture
Add dataset README
0885679 verified
metadata
license: mit
task_categories:
  - text-classification
language:
  - afr
tags:
  - emotion
  - african-languages
  - nlp
  - text-classification
size_categories:
  - 1M<n<10M

Afrikaans-english Emotion Analysis Corpus

Dataset Description

This dataset contains emotion-labeled text data in Afrikaans-english for emotion classification (joy, sadness, anger, fear, surprise, disgust, neutral). Emotions were extracted and processed from the English meanings of the sentences using the model j-hartmann/emotion-english-distilroberta-base. The dataset is part of a larger collection of African language emotion analysis resources.

Dataset Statistics

  • Total samples: 2,000,000
  • Joy: 148931 (7.4%)
  • Sadness: 86347 (4.3%)
  • Anger: 75658 (3.8%)
  • Fear: 81158 (4.1%)
  • Surprise: 73041 (3.7%)
  • Disgust: 136629 (6.8%)
  • Neutral: 1398236 (69.9%)

Dataset Structure

Data Fields

  • Text Column: Contains the original text in Afrikaans-english
  • emotion: Emotion label (joy, sadness, anger, fear, surprise, disgust, neutral)

Data Splits

This dataset contains a single split with all the processed data.

Data Processing

The emotion labels were generated using:

  • Model: j-hartmann/emotion-english-distilroberta-base
  • Processing: Batch processing with optimization for efficiency
  • Deduplication: Duplicate entries were removed based on text content

Usage

from datasets import load_dataset

# Load the dataset
dataset = load_dataset("michsethowusu/afrikaans-english-emotions-corpus")

# Access the data
print(dataset['train'][0])

Citation

If you use this dataset in your research, please cite:

@dataset{afrikaans-english_emotions_corpus,
  title={Afrikaans-english Emotions Corpus},
  author={Mich-Seth Owusu},
  year={2025},
  url={https://huggingface.co/datasets/michsethowusu/afrikaans-english-emotions-corpus}
}

License

This dataset is released under the MIT License.

Contact

For questions or issues regarding this dataset, please open an issue on the dataset repository.

Dataset Creation

Date: 2025-07-04 Processing Pipeline: Automated emotion analysis using HuggingFace Transformers Quality Control: Deduplication and batch processing optimizations applied