Somtharu181coder commited on
Commit
57d98c6
·
verified ·
1 Parent(s): 058527e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +234 -1
README.md CHANGED
@@ -1,3 +1,236 @@
1
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
1
+ language:
2
+ - ne
3
+ language_code:
4
+ - npi
5
+ pretty_name: Nepali Social SFT Dataset
6
+ tags:
7
+ - nepali
8
+ - nepal
9
+ - nepali-language
10
+ - devanagari
11
+ - sft
12
+ - supervised-fine-tuning
13
+ - instruction-following
14
+ - social-science
15
+ - synthetic
16
+ - question-answering
17
+ - multiple-choice
18
+ task_categories:
19
+ - question-answering
20
+ - text-generation
21
+ - text-classification
22
  license: apache-2.0
23
+ size_categories:
24
+ - 10K<n<100K
25
+
26
+ # Nepali Social Studies MCQ — SFT Dataset
27
+
28
+ A cleaned, deduplicated, bias-corrected instruction-tuning dataset of Nepali-language
29
+ multiple-choice questions on social studies topics, derived from the Aya Dataset.
30
+
31
+ ---
32
+
33
+ ## Dataset Summary
34
+
35
+ | | |
36
+ |---|---|
37
+ | **Rows** | 27,891 |
38
+ | **Language** | Nepali (`ne` / `npi`), Devanagari script |
39
+ | **Task type** | Instruction-following (single-turn MCQ Q&A) |
40
+ | **Domain** | Social studies (सामाजिक) — MCQ only |
41
+ | **License** | Apache-2.0 (permissive) |
42
+ | **Source** | `CohereLabs/aya_dataset` (config: `default`, split: `train`), revision `f9ea04583f02a8f86404ff6c58bf75fe637df8a2` |
43
+ | **Source subset** | `aya_human_nepali` |
44
+ | **Generation type** | Synthetic (originally human-authored source, machine-processed pipeline) |
45
+ | **Format** | JSONL, one JSON object per line |
46
+
47
+ This is a processed derivative of a single upstream slice (`aya_human_nepali`).
48
+ It is **not** a general-purpose Nepali instruction dataset — every row is a 4-option
49
+ social studies multiple-choice question.
50
+
51
+ ---
52
+
53
+ ## File Structure
54
+
55
+ Each line is a JSON object:
56
+
57
+ ```json
58
+ {
59
+ "id": "sg_25728771e8644154729b5458133abea1",
60
+ "conversations": [
61
+ {"from": "human", "value": "समाजमा शान्ति कायम गर्न के आवश्यक छ? क) द्वन्द्व ख) घृणा ग) ईर्ष्या घ) सद्भाव"},
62
+ {"from": "gpt", "value": "घ) सद्भाव"}
63
+ ],
64
+ "source": "CohereLabs/aya_dataset:default:train",
65
+ "source_name": "aya_human_nepali",
66
+ "source_repo": "CohereLabs/aya_dataset",
67
+ "source_config": "default",
68
+ "source_split": "train",
69
+ "source_revision": "f9ea04583f02a8f86404ff6c58bf75fe637df8a2",
70
+ "source_row_id": "sg_25728771e8644154729b5458133abea1:1",
71
+ "language": "ne",
72
+ "language_code": "npi",
73
+ "script": "Deva",
74
+ "license": "Apache-2.0",
75
+ "license_tier": "permissive",
76
+ "task_type": "instruction-following",
77
+ "generation_type": "synthetic",
78
+ "condition": "synthetic",
79
+ "url": "",
80
+ "metadata_json": "{\"generation_domain\": \"सामाजिक\", \"generation_category\": \"सामाजिक\", \"question_type\": \"बहुविकल्पीय\", \"question_length\": \"अति छोटो तथा छोटो\", \"content_language\": \"नेपाली\", \"content_script\": \"देवनागरी\"}"
81
+ }
82
+ ```
83
+
84
+ ### Field reference
85
+
86
+ | Field | Type | Notes |
87
+ |---|---|---|
88
+ | `id` | string | Unique per row. No duplicates. |
89
+ | `conversations` | array[2] | Exactly one `human` turn (question + 4 options) and one `gpt` turn (labeled answer). |
90
+ | `source*` | string | Full upstream provenance chain, constant across the dataset (single source). |
91
+ | `language` / `language_code` / `script` | string | `ne` / `npi` / `Deva` for every row. |
92
+ | `license` / `license_tier` | string | `Apache-2.0` / `permissive` for every row. |
93
+ | `task_type` | string | `instruction-following` for every row. |
94
+ | `generation_type` / `condition` | string | `synthetic` for every row. |
95
+ | `url` | string | Always empty — no upstream URL was recorded for this source. |
96
+ | `metadata_json` | string (JSON-encoded) | See below. Must be `json.loads`'d — it's stored as a string, not a nested object. |
97
+
98
+ ### `metadata_json` sub-fields (all constant across the dataset)
99
+
100
+ | Sub-field | Value | Meaning |
101
+ |---|---|---|
102
+ | `generation_domain` | सामाजिक | Social studies |
103
+ | `generation_category` | सामाजिक | Social studies |
104
+ | `question_type` | बहुविकल्पीय | Multiple choice |
105
+ | `question_length` | अति छोटो तथा छोटो | Very short / short |
106
+ | `content_language` | नेपाली | Nepali |
107
+ | `content_script` | देवनागरी | Devanagari |
108
+
109
+ ### MCQ format convention
110
+
111
+ - Options are always labeled `क)` `ख)` `ग)` `घ)` (Devanagari equivalents of A/B/C/D), embedded in the `human` turn after the question stem.
112
+ - The `gpt` turn is always `<label>) <option text>` — the label plus the exact option text, space-separated.
113
+
114
+ ---
115
+
116
+ ## Statistics
117
+
118
+ | Metric | Value |
119
+ |---|---|
120
+ | Total rows | 27,891 |
121
+ | Question length (chars) | min 51 · median 105 · mean 105.5 · max 185 |
122
+ | Answer length (chars) | min 5 · median 18 · mean 18.2 · max 53 |
123
+ | Unique question strings | 27,889 (2 collisions — see Known Issues) |
124
+ | Answer-option label distribution | क) 21.9% · ख) 27.8% · ग) 25.4% · घ) 24.8% |
125
+
126
+ The answer-label distribution is intentionally near-uniform (see Processing History).
127
+
128
+ ---
129
+
130
+ ## Processing History
131
+
132
+ This file is the output of a 3-stage cleaning pipeline applied to a raw
133
+ `aya_human_nepali` export (originally 29,029 rows):
134
+
135
+ **Stage 1 — Structural validation**
136
+ Verified JSON validity, schema consistency, non-empty turns, and unique IDs.
137
+ No rows dropped at this stage.
138
+
139
+ **Stage 2 — Foreign-script / homoglyph contamination removal**
140
+ The raw export had characters from ~18 unrelated Unicode scripts (Armenian,
141
+ Gujarati, Gurmukhi, Greek, Arabic, Bengali, Cyrillic, Telugu, Hangul, Kannada,
142
+ Malayalam, Hebrew, Sinhala, Georgian, Thai, Ethiopic, Oriya) substituted into
143
+ what should have been pure Devanagari text — e.g. `रहित` corrupted to `रहಿತ`.
144
+ **1,117 rows** were auto-removed for this reason (a smaller number of visually
145
+ similar corruptions remain — see Known Issues).
146
+
147
+ **Stage 3 — MCQ answer-position rebalancing**
148
+ The raw export had 84.8% of correct answers sitting in option क) (position 1)
149
+ — a positional bias a model would learn to exploit instead of reading the
150
+ question. Each valid, uncorrupted MCQ had its 4 options deterministically
151
+ shuffled (seeded by row `id`, reproducible) and the question/answer text
152
+ rewritten to match. **27,891 rows** were successfully rebalanced; 21 rows
153
+ where the correct option couldn't be confidently identified (corrupted text)
154
+ were excluded rather than guessed.
155
+
156
+ `29,029 → −1,117 (contamination) → −21 (unresolvable MCQ) → 27,891 final rows`
157
+
158
+ ---
159
+
160
+ ## Known Issues (as of this file)
161
+
162
+ These are documented, not hidden — check before using for training or eval.
163
+
164
+ 1. **Residual character-level corruption (~135 rows / 0.5%)**
165
+ The contamination filter used in Stage 2 didn't cover every Unicode block.
166
+ Confirmed residual cases:
167
+ - Myanmar vowel signs (e.g. `भूमिकသ` — U+1031)
168
+ - Arabic Presentation Forms-B (e.g. a stray U+FEEC inside a Nepali word)
169
+ - Latin Extended-A ligatures/diacritics (`ğ`, `œ`) inside Nepali words
170
+ - One Private Use Area character (U+F8FF)
171
+ - Stray combining diacritics with no base character (U+0308)
172
+ These rows are not flagged in this file and should be filtered before
173
+ training if exact cleanliness matters.
174
+
175
+ 2. **2 duplicate question pairs introduced by rebalancing**
176
+ Two pairs of rows shared the same question stem and same 4-option pool in
177
+ the source data (just in different original order/answer) — a form of
178
+ near-duplication the literal-string dedup step didn't catch pre-rebalance.
179
+ Independent shuffling coincidentally produced identical final text for
180
+ each pair:
181
+ - `sg_870ce75e2773760fbd9b4cb2b69cd555` / `sg_ebe54de3e99d4de5f124c9ca0dd83d14`
182
+ - `sg_e7783f31aec816aef8f9d6786a267c0c` / `sg_8c4838103eb655741dc0fb744d2bf5b5`
183
+
184
+ 3. **Zero diversity by design, not by accident**
185
+ 100% of rows are: single source (`aya_human_nepali`), single domain
186
+ (सामाजिक), single question type (MCQ), single length bucket (short).
187
+ This is a narrow, homogeneous slice. If broader Nepali SFT coverage is
188
+ the goal, this file needs to be combined with other domains/sources —
189
+ it is not a general-purpose instruction dataset on its own.
190
+
191
+ 4. **No held-out split**
192
+ All 27,891 rows are from `source_split: train`. There is no dev/test
193
+ split in this file — carve one out before using for evaluation.
194
+
195
+ ---
196
+
197
+ ## Recommended Use
198
+
199
+ - Suitable as one ingredient in a larger Nepali instruction-tuning mix,
200
+ specifically for MCQ-style social studies knowledge.
201
+ - Not suitable on its own for general instruction-following, open-ended
202
+ generation, or any domain outside social studies MCQs — the model will
203
+ overfit to this narrow format if trained on it in isolation.
204
+ - Filter or manually review the ~135 residual-corruption rows and the 2
205
+ duplicate pairs above before final training use.
206
+
207
+ ---
208
+
209
+ ## License
210
+
211
+ Apache-2.0, inherited from the upstream `CohereLabs/aya_dataset`. Verify
212
+ this still applies to your specific use case and jurisdiction — Apache-2.0
213
+ covers the dataset structure/text; check upstream terms for any additional
214
+ conditions CohereLabs may have attached to the Aya Dataset specifically.
215
+
216
+ ---
217
+
218
+ ## Citation / Provenance
219
+
220
+ If publishing or citing this dataset, credit the upstream source:
221
+
222
+ ```
223
+ Source: CohereLabs/aya_dataset (config: default, split: train)
224
+ Revision: f9ea04583f02a8f86404ff6c58bf75fe637df8a2
225
+ Subset: aya_human_nepali
226
+ ```
227
+
228
  ---
229
+
230
+ ## Changelog
231
+
232
+ | Version | Rows | Change |
233
+ |---|---|---|
234
+ | Raw export | 29,029 | Original `aya_human_nepali` pull |
235
+ | v1 cleaned | 29,029 | Structural validation only (no removals) |
236
+ | v2 cleaned | 27,891 | + foreign-script contamination removal (−1,117) + MCQ rebalancing (−21 unresolvable) |