nassimjp commited on
Commit
a82b230
·
verified ·
1 Parent(s): 7b1d9ee

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +156 -0
README.md ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_name: pashto-sentiment
3
+ language:
4
+ - ps
5
+ task_categories:
6
+ - text-classification
7
+ task_ids:
8
+ - sentiment-classification
9
+ license: apache-2.0
10
+ size_categories:
11
+ - 1k<n<10k
12
+ annotations_creators:
13
+ - expert-generated
14
+ source_datasets:
15
+ - original
16
+ pretty_name: Pashto Sentiment Dataset
17
+ ---
18
+
19
+
20
+
21
+ # **Pashto Sentiment Dataset — 2026 Edition**
22
+
23
+ A high‑quality **Pashto Sentiment Classification** dataset designed for training and evaluating Pashto NLP models.
24
+ This dataset provides **clean**, **normalized**, and **manually‑verified** sentiment labels suitable for SFT, supervised classification, and benchmarking Pashto LLMs.
25
+
26
+ ---
27
+
28
+ ## **📦 Dataset Summary**
29
+
30
+ The **Pashto Sentiment Dataset** contains short and medium‑length Pashto texts annotated with one of three sentiment classes:
31
+
32
+ - **Positive**
33
+ - **Negative**
34
+ - **Neutral**
35
+
36
+ Each sample is normalized, deduplicated, and formatted for direct use in machine‑learning pipelines.
37
+
38
+ ---
39
+
40
+ ## **📊 Dataset Structure**
41
+
42
+ ### **Features**
43
+ | Field | Type | Description |
44
+ |-------|-------|-------------|
45
+ | `text` | string | Pashto sentence or short paragraph |
46
+ | `label` | string | One of: `"positive"`, `"negative"`, `"neutral"` |
47
+
48
+ ### **Example**
49
+ ```json
50
+ {
51
+ "text": "دا کار ډېر ښه ترسره شوی دی او زه پرې خوشاله یم",
52
+ "label": "positive"
53
+ }
54
+ ```
55
+
56
+ ---
57
+
58
+ ## **🧹 Cleaning & Normalization Pipeline**
59
+
60
+ The dataset was processed using the **Talanda NLP pipeline**, including:
61
+
62
+ - Unicode normalization (NFKC)
63
+ - Pashto‑specific orthographic cleanup
64
+ - Removal of duplicate or near‑duplicate samples
65
+ - Length filtering (min 5 chars, max 512 chars)
66
+ - Sentiment consistency checks
67
+ - LMDB‑based caching for deterministic extraction
68
+
69
+ ---
70
+
71
+ ## **📁 File Format**
72
+
73
+ The dataset is provided in **JSONL** format:
74
+
75
+ ```
76
+ pashto-sentiment/
77
+
78
+ ```
79
+
80
+ Each line is a single JSON object containing `text` and `label`.
81
+
82
+ ---
83
+
84
+ ## **🚀 Usage**
85
+
86
+ ### **Load with HuggingFace Datasets**
87
+ ```python
88
+ from datasets import load_dataset
89
+
90
+ ds = load_dataset("nassimjp/pashto-sentiment")
91
+
92
+ print(ds["train"][0])
93
+ ```
94
+
95
+ ### **Use in a Classification Model**
96
+ ```python
97
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
98
+
99
+ tokenizer = AutoTokenizer.from_pretrained("bert-base-multilingual-cased")
100
+ model = AutoModelForSequenceClassification.from_pretrained(
101
+ "bert-base-multilingual-cased",
102
+ num_labels=3
103
+ )
104
+
105
+ inputs = tokenizer(ds["train"][0]["text"], return_tensors="pt")
106
+ outputs = model(**inputs)
107
+ ```
108
+
109
+ ---
110
+
111
+ ## **📈 Intended Applications**
112
+
113
+ - Pashto sentiment classification models
114
+ - SFT for Pashto LLMs
115
+ - Benchmarking Pashto text‑understanding tasks
116
+ - Domain‑specific sentiment analysis (news, social media, reviews)
117
+
118
+ ---
119
+
120
+ ## **⚠️ Limitations**
121
+
122
+ - Sentiment labels are not multi‑class (no fine‑grained emotions)
123
+ - Dataset focuses on general‑domain text; domain‑specific corpora may require additional tuning
124
+ - Some ambiguous sentences may have borderline sentiment
125
+
126
+ ---
127
+
128
+ ## **📜 License**
129
+
130
+ This dataset is released under the **Apache 2.0 License**.
131
+
132
+ ---
133
+
134
+ ## **🤝 Citation**
135
+
136
+ If you use this dataset in your research, please cite:
137
+
138
+ ```
139
+ @dataset{nassimjp_pashto_sentiment_2026,
140
+ author = {Nassim},
141
+ title = {Pashto Sentiment Dataset},
142
+ year = {2026},
143
+ publisher = {HuggingFace Datasets},
144
+ url = {https://huggingface.co/datasets/nassimjp/pashto-sentiment}
145
+ }
146
+ ```
147
+
148
+ ---
149
+
150
+ ## **🔗 Related Datasets**
151
+
152
+ - **PashtoNanoChat**
153
+ - **Pashto-SFT-263k**
154
+ - **Pashto Wheat SFT 14k**
155
+
156
+ ---