Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- ps
|
| 5 |
+
pretty_name: Pashto Emotion Analysis - Cleaned Dataset
|
| 6 |
+
size_categories: n<1K
|
| 7 |
+
task_categories:
|
| 8 |
+
- text-classification
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Pashto Emotion Dataset (Cleaned Format)
|
| 12 |
+
|
| 13 |
+
This dataset contains **897 Pashto sentences** labeled for emotion analysis. It is part of a larger project to create resources for Pashto natural language processing.
|
| 14 |
+
|
| 15 |
+
The data has been cleaned and formatted for easy use in various training and analysis pipelines.
|
| 16 |
+
|
| 17 |
+
## Dataset Structure
|
| 18 |
+
|
| 19 |
+
Each entry in the dataset is a JSON object with the following fields:
|
| 20 |
+
|
| 21 |
+
| Field | Type | Description |
|
| 22 |
+
| :--- | :--- | :--- |
|
| 23 |
+
| `id` | `string` | A unique identifier for the example (e.g., `ex_000001`). |
|
| 24 |
+
| `text` | `string` | The original Pashto sentence. |
|
| 25 |
+
| `emojis` | `list[string]` | A list of emojis present in the text. |
|
| 26 |
+
| `emotion` | `string` | The classified emotion (e.g., `مثبت`, `منفي`, `خنثی`). |
|
| 27 |
+
| `intensity` | `float` | The intensity of the emotion, on a scale from `0.0` to `1.0`. |
|
| 28 |
+
| `cot` | `string` | The "Chain of Thought" reasoning from the DeepSeek model explaining the classification. |
|
| 29 |
+
|
| 30 |
+
### Example Record
|
| 31 |
+
```json
|
| 32 |
+
{
|
| 33 |
+
"id": "ex_000001",
|
| 34 |
+
"text": "او احتمال لري چې دا به غوره وي 🙂",
|
| 35 |
+
"emojis": ["🙂"],
|
| 36 |
+
"emotion": "مثبت",
|
| 37 |
+
"intensity": 0.6,
|
| 38 |
+
"cot": "احتمال ښیي چې وینا کونکی د یوې مثبتې پایلې هیله لري، مګر ډاډ نلري — 'احتمال لري' د ناڅرګندتیا ښودنه کوي، خو 🙂 دا ناڅرګندتیا نرمه کوي."
|
| 39 |
+
}
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
## Usage
|
| 43 |
+
|
| 44 |
+
Load the dataset directly from Hugging Face Datasets:
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from datasets import load_dataset
|
| 48 |
+
|
| 49 |
+
# Load the dataset
|
| 50 |
+
dataset = load_dataset("nassimjp/pashto-emotion-cleaned", split="train")
|
| 51 |
+
|
| 52 |
+
# Access an example
|
| 53 |
+
print(dataset[0]["text"])
|
| 54 |
+
print(f"Emotion: {dataset[0]['emotion']}, Intensity: {dataset[0]['intensity']}")
|
| 55 |
+
print(f"CoT: {dataset[0]['cot']}")
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## Statistics
|
| 59 |
+
|
| 60 |
+
- **Total Examples:** 897
|
| 61 |
+
- **Average CoT Length:** 120 characters
|
| 62 |
+
- **Examples with Emojis:** 897 (100%)
|
| 63 |
+
|
| 64 |
+
### Emotion Distribution
|
| 65 |
+
|
| 66 |
+
| Emotion | Count | Percentage |
|
| 67 |
+
| :--- | :--- | :--- |
|
| 68 |
+
| خنثی (Neutral) | 347 | 38.7% |
|
| 69 |
+
| مثبت (Positive) | 340 | 37.9% |
|
| 70 |
+
| منفي (Negative) | 116 | 12.9% |
|
| 71 |
+
| طنز (Playful/Sarcastic) | 75 | 8.4% |
|
| 72 |
+
| مخلوط (Mixed) | 15 | 1.7% |
|
| 73 |
+
| حیرانتیا (Surprise) | 3 | 0.3% |
|
| 74 |
+
|
| 75 |
+
## Related Datasets
|
| 76 |
+
|
| 77 |
+
This "cleaned" version is one of three formats available for this data. Depending on your use case, you might prefer one of the other formats:
|
| 78 |
+
|
| 79 |
+
- **For standard fine-tuning (prompt/response):** [nassimjp/pashto-emotion-train](https://huggingface.co/datasets/nassimjp/pashto-emotion-train)
|
| 80 |
+
- **For chat model fine-tuning (conversations list):** [nassimjp/pashto-emotion-chat](https://huggingface.co/datasets/nassimjp/pashto-emotion-chat)
|
| 81 |
+
|
| 82 |
+
## License
|
| 83 |
+
|
| 84 |
+
This dataset is released under the MIT License.
|