Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,24 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
num_bytes: 578207.2763340607
|
| 11 |
-
num_examples: 4536
|
| 12 |
-
- name: validation
|
| 13 |
-
num_bytes: 64372.723665939295
|
| 14 |
-
num_examples: 505
|
| 15 |
-
download_size: 357827
|
| 16 |
-
dataset_size: 642580.0
|
| 17 |
-
configs:
|
| 18 |
-
- config_name: default
|
| 19 |
-
data_files:
|
| 20 |
-
- split: train
|
| 21 |
-
path: data/train-*
|
| 22 |
-
- split: validation
|
| 23 |
-
path: data/validation-*
|
| 24 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# vaovao_malagasy_sentiment_corpus
|
| 2 |
+
|
| 3 |
+
# Dataset Card for Vaovao Malagasy Sentiment Corpus (VMSC)
|
| 4 |
+
|
| 5 |
+
## Dataset Summary
|
| 6 |
+
|
| 7 |
+
The **Vaovao Malagasy Sentiment Corpus (VMSC)** is the first publicly available, manually annotated sentiment dataset for the Malagasy language. It contains **5,041 sentences** from news articles published between 2022 and 2023, each labeled with binary sentiment (positive or negative).
|
| 8 |
+
|
| 9 |
+
This dataset was created by native speakers using a high-quality annotation protocol, achieving **Cohen’s Kappa = 0.96**. VMSC enables research in sentiment analysis and other downstream NLP tasks for Malagasy, a low-resource language spoken by over 25 million people.
|
| 10 |
+
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
## Supported Tasks
|
| 14 |
+
|
| 15 |
+
- Sentiment Analysis (binary classification)
|
| 16 |
+
- Text Classification
|
| 17 |
+
- Sentence-level Language Modeling
|
| 18 |
+
- Benchmarking for Low-resource NLP
|
| 19 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
---
|
| 21 |
+
|
| 22 |
+
## Languages
|
| 23 |
+
|
| 24 |
+
- **Language**: Malagasy (`mg`)
|
| 25 |
+
- **Variant**: Standard Malagasy
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
## Dataset Structure
|
| 30 |
+
|
| 31 |
+
- **Format**: CSV
|
| 32 |
+
- **Fields**:
|
| 33 |
+
- `text`: a sentence in Standard Malagasy
|
| 34 |
+
- `label`: sentiment annotation (`0` = negative, `1` = positive)
|
| 35 |
+
- **Samples**: 5,041
|
| 36 |
+
- **Sentence Length**:
|
| 37 |
+
- Minimum: 9 characters
|
| 38 |
+
- Average: 107.5 characters
|
| 39 |
+
- Maximum: 415 characters
|
| 40 |
+
- **Class Distribution**:
|
| 41 |
+
- Positive: 2,616 (51.9%)
|
| 42 |
+
- Negative: 2,425 (48.1%)
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## Annotation
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
- **Annotators**: 3 native Malagasy speakers with academic backgrounds
|
| 50 |
+
- **Annotation Protocol**:
|
| 51 |
+
- Detailed guideline with examples and decision rules
|
| 52 |
+
- Annotators labeled all examples independently
|
| 53 |
+
- Labels resolved via majority vote
|
| 54 |
+
- **Agreement**:
|
| 55 |
+
- Unanimous (3/3): 97.04%
|
| 56 |
+
- Majority (2/3): 2.96%
|
| 57 |
+
- No agreement (0/3): excluded
|
| 58 |
+
- **Cohen’s Kappa**: 0.96
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
## Source Data
|
| 63 |
+
|
| 64 |
+
- **Collection Period**: Late 2022 – 2023
|
| 65 |
+
- **Source Type**: Public Malagasy news websites
|
| 66 |
+
- **Domains**:
|
| 67 |
+
- Politics
|
| 68 |
+
- Economy
|
| 69 |
+
- Society
|
| 70 |
+
- Culture and Media
|
| 71 |
+
- Environment and Agriculture
|
| 72 |
+
- **Collection Method**:
|
| 73 |
+
- Rule-based sentence segmentation
|
| 74 |
+
- Manual cleaning and normalization
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## Benchmark Results
|
| 79 |
+
|
| 80 |
+
A wide range of machine learning and transformer models were benchmarked.
|
| 81 |
+
|
| 82 |
+
| Model | Accuracy | F1-score |
|
| 83 |
+
|----------------|----------|----------|
|
| 84 |
+
| Afro-XLM-R | 0.7980 | 0.8111 |
|
| 85 |
+
| XLM-R | 0.7683 | 0.7636 |
|
| 86 |
+
| mBERT | 0.7603 | 0.7632 |
|
| 87 |
+
| DistilBERT | 0.7445 | 0.7455 |
|
| 88 |
+
| Naive Bayes | 0.7604 | 0.7695 |
|
| 89 |
+
| SVM | 0.7584 | 0.7645 |
|
| 90 |
+
| Logistic Regression | 0.7505 | 0.7605 |
|
| 91 |
+
| BiLSTM | 0.7470 | 0.6861 |
|
| 92 |
+
| BiGRU | 0.7443 | 0.6861 |
|
| 93 |
+
| CNN | 0.6936 | 0.6861 |
|
| 94 |
+
|
| 95 |
+
**Afro-XLM-R** outperformed all models in terms of both accuracy and F1-score.
|
| 96 |
+
---
|
| 97 |
+
|
| 98 |
+
## How to Use
|
| 99 |
+
|
| 100 |
+
```python
|
| 101 |
+
from datasets import load_dataset
|
| 102 |
+
|
| 103 |
+
dataset = load_dataset('Lo-Renz-O/vaovao_malagasy_sentiment_corpus')
|
| 104 |
+
print(dataset['train'][0])
|