michsethowusu commited on
Commit
84bc3d9
·
verified ·
1 Parent(s): 644e14d

Add dataset README for sentiment corpus

Browse files
Files changed (1) hide show
  1. README.md +95 -21
README.md CHANGED
@@ -1,24 +1,98 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: Lingala
5
- dtype: string
6
- - name: sentiment
7
- dtype: string
8
- - name: __index_level_0__
9
- dtype: int64
10
- splits:
11
- - name: train
12
- num_bytes: 28833901
13
- num_examples: 427979
14
- download_size: 17709218
15
- dataset_size: 28833901
16
- configs:
17
- - config_name: default
18
- data_files:
19
- - split: train
20
- path: data/train-*
21
  ---
22
- # Dataset Card for "lingala-sentiments-corpus"
23
 
24
- [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ task_categories:
4
+ - text-classification
5
+ language:
6
+ - lin
7
+ tags:
8
+ - sentiment
9
+ - african-languages
10
+ - nlp
11
+ - text-classification
12
+ - binary-classification
13
+ size_categories:
14
+ - 100K<n<1M
 
 
 
 
 
 
15
  ---
 
16
 
17
+ # Lingala Sentiment Corpus
18
+
19
+ ## Dataset Description
20
+
21
+ This dataset contains sentiment-labeled text data in Lingala for binary sentiment classification (Positive/Negative). Sentiments are extracted and processed from the English meanings of the sentences using DistilBERT for sentiment classification. The dataset is part of a larger collection of African language sentiment analysis resources.
22
+
23
+ ## Dataset Statistics
24
+
25
+ - **Total samples**: 427,979
26
+ - **Positive sentiment**: 251923 (58.9%)
27
+ - **Negative sentiment**: 176056 (41.1%)
28
+
29
+ ## Dataset Structure
30
+
31
+ ### Data Fields
32
+
33
+ - **Text Column**: Contains the original text in Lingala
34
+ - **sentiment**: Sentiment label (Positive or Negative only)
35
+
36
+ ### Data Splits
37
+
38
+ This dataset contains a single split with all the processed data.
39
+
40
+ ## Data Processing
41
+
42
+ The sentiment labels were generated using:
43
+ - Model: `distilbert-base-uncased-finetuned-sst-2-english`
44
+ - Processing: Batch processing with optimization for efficiency
45
+ - Deduplication: Duplicate entries were removed based on text content
46
+ - **Filtering**: Only Positive and Negative sentiments retained for binary classification
47
+
48
+ ## Usage
49
+
50
+ ```python
51
+ from datasets import load_dataset
52
+
53
+ # Load the dataset
54
+ dataset = load_dataset("michsethowusu/lingala-sentiments-corpus")
55
+
56
+ # Access the data
57
+ print(dataset['train'][0])
58
+
59
+ # Check sentiment distribution
60
+ from collections import Counter
61
+ sentiments = [item['sentiment'] for item in dataset['train']]
62
+ print(Counter(sentiments))
63
+ ```
64
+
65
+ ## Use Cases
66
+
67
+ This dataset is ideal for:
68
+ - Binary sentiment classification tasks
69
+ - Training sentiment analysis models for Lingala
70
+ - Cross-lingual sentiment analysis research
71
+ - African language NLP model development
72
+
73
+ ## Citation
74
+
75
+ If you use this dataset in your research, please cite:
76
+
77
+ ```bibtex
78
+ @dataset{lingala_sentiments_corpus,
79
+ title={Lingala Sentiment Corpus},
80
+ author={Mich-Seth Owusu},
81
+ year={2025},
82
+ url={https://huggingface.co/datasets/michsethowusu/lingala-sentiments-corpus}
83
+ }
84
+ ```
85
+
86
+ ## License
87
+
88
+ This dataset is released under the MIT License.
89
+
90
+ ## Contact
91
+
92
+ For questions or issues regarding this dataset, please open an issue on the dataset repository.
93
+
94
+ ## Dataset Creation
95
+
96
+ **Date**: 2025-07-02
97
+ **Processing Pipeline**: Automated sentiment analysis using HuggingFace Transformers
98
+ **Quality Control**: Deduplication, batch processing optimizations, and binary sentiment filtering applied