Heng666 commited on
Commit
8768d91
1 Parent(s): e67f7bd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +286 -0
README.md CHANGED
@@ -24,4 +24,290 @@ configs:
24
  data_files:
25
  - split: train
26
  path: data/train-*
 
 
 
 
 
 
 
 
 
 
 
27
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  data_files:
25
  - split: train
26
  path: data/train-*
27
+ license: apache-2.0
28
+ task_categories:
29
+ - question-answering
30
+ - translation
31
+ - summarization
32
+ - zero-shot-classification
33
+ language:
34
+ - zh
35
+ pretty_name: Traditional_Chinese-aya_dataset
36
+ size_categories:
37
+ - 1M<n<10M
38
  ---
39
+
40
+ ![Traditional_Chinese_Aya Header](https://huggingface.co/datasets/Heng666/Traditional_Chinese-aya_dataset/resolve/main/Traditional_Chinese_Aya_header.jpeg)
41
+ <!-- Provide a quick summary of the dataset. -->
42
+ ## 資料集描述
43
+ **繁體中文 Aya (Traditional Chinese Aya Chinese;TCA):專注於繁體中文處理的 Aya 集合的精選子集**
44
+
45
+ ### 概述
46
+ `繁體中文 Aya` 是一個精心策劃的資料集,源自 [CohereForAI](https://huggingface.co/CohereForAI) 的綜合 Aya 集合,特別關注繁體中文文本資料。
47
+ 此資料集結合了來自 [CohereForAI/aya_dataset](https://huggingface.co/datasets/CohereForAI/aya_dataset),過濾掉除繁體中文、簡體中文內容之外的所有內容。
48
+
49
+ ### 目標
50
+ `繁體中文 Aya` 的目標是為研究人員、技術專家和語言學家提供即用型繁體中文文本資源,顯著減少專注於繁體中文的 NLP 和 AI 專案中數據預處理所需的時間和精力。
51
+
52
+ ### 資料集來源與資訊
53
+ - **資料來源**: 從 [CohereForAI/aya_dataset](https://huggingface.co/datasets/CohereForAI/aya_dataset) 2 個子集而來。
54
+ - **語言**: 繁體中文、簡體中文('zho')
55
+ - **應用**: 非常適合語言建模、文本分類、情感分析、和機器翻譯等任務。
56
+ - **論文連結:** [2402.06619](https://huggingface.co/papers/2402.06619)
57
+ - **維護人:** [Heng666](https://huggingface.co/Heng666)
58
+ - **License:** Apache-2.0
59
+
60
+ ### 使用方法
61
+ 此資料集是開始繁體中文語言專案(從學術研究到商業應用)的基礎工具。
62
+ 透過提供預先過濾的繁體中文文本來源,`繁體中文 Aya` 讓研究人員、技術專家和開發人員能夠直接進行模型訓練、分析和應用程式開發,而無需進行資料清理和語言過濾的初步麻煩。
63
+
64
+ 展示範例
65
+ ```python
66
+ from datasets import load_dataset
67
+ dataset = load_dataset("Heng666/Traditional_Chinese-aya_dataset", "default")
68
+ ```
69
+ 在上面的程式碼片段中,「aya_dataset」指的是原始 「aya_dataset」中「default」子集的繁體中文版本。
70
+ 您可以透過在載入資料集時指定其名稱來載入其他子集。
71
+
72
+ ### 訪問和貢獻
73
+ 可在 [Heng666/Traditional_Chinese-aya_dataset](https://huggingface.co/datasets/Heng666/Traditional_Chinese-aya_dataset) 下的 Hugging Face Hub 上獲取,
74
+ `繁體中文 Aya` 邀請社區做出貢獻。鼓勵用戶提供回饋、提出改進建議。
75
+
76
+ ### 支持與合作
77
+ 我們致力於圍繞繁體中文人工智慧和 NLP 研究創造一個包容和支持的環境。如需支援、協作或有關資料集的疑問,請透過 Hugging Face Hub 的討論部分進行聯絡。
78
+
79
+ # Original Dataset Card of Aya by CohereForAI
80
+
81
+ ![Aya Header](https://huggingface.co/datasets/CohereForAI/aya_dataset/resolve/main/aya_header.png)
82
+ # Dataset Summary
83
+ The `Aya Dataset` is a multilingual instruction fine-tuning dataset curated by an open-science community via [Aya Annotation Platform](https://aya.for.ai/) from Cohere For AI. The dataset contains a total of 204k human-annotated prompt-completion pairs along with the demographics data of the annotators.<br>
84
+ This dataset can be used to train, finetune, and evaluate multilingual LLMs.
85
+
86
+ - **Curated by:** Contributors of [Aya Open Science Intiative](https://aya.for.ai/).
87
+ - **Language(s):** 65 languages (71 including dialects & scripts).
88
+ - **License:** [Apache 2.0](https://opensource.org/license/apache-2-0)
89
+ - **Aya Datasets Family:**
90
+
91
+ | Name | Explanation |
92
+ |------|--------------|
93
+ | [aya_dataset](https://huggingface.co/datasets/CohereForAI/aya_dataset) | Human-annotated multilingual instruction finetuning dataset, comprising over 204K instances across 65 languages. |
94
+ | [aya_collection](https://huggingface.co/datasets/CohereForAI/aya_collection) | Created by applying instruction-style templates from fluent speakers to 44 datasets, including translations of 19 instruction-style datasets into 101 languages, providing 513M instances for various tasks.|
95
+ | [aya_evaluation_suite](https://huggingface.co/datasets/CohereForAI/aya_evaluation_suite) | A diverse evaluation set for multilingual open-ended generation, featuring 250 culturally grounded prompts in 7 languages, 200 translated prompts in 24 languages, and human-edited versions selected for cross-cultural relevance from English Dolly in 6 languages.|
96
+
97
+ # Dataset
98
+ The `Aya Dataset` comprises of two types of data:
99
+ 1. **Human Annotations:** Original annotations (brand new prompts and completions written by annotators) and re-annotations (human edits of automatically generated prompts and completions).
100
+ 2. **Demographics Data:** Anonymized information for each annotator.
101
+
102
+ ## Load with Datasets
103
+ To load this dataset consisting of both prompt-completions and demographics data with `datasets`, you'll just need to install Datasets as `pip install datasets --upgrade` and then use the following code:
104
+
105
+ ```python
106
+ from datasets import load_dataset
107
+
108
+ # Load the annotations dataset
109
+ aya_dataset = load_dataset("CohereForAI/aya_dataset")
110
+
111
+ # Load the demographics dataset
112
+ aya_demographics = load_dataset("CohereForAI/aya_dataset", "demographics")
113
+ ```
114
+
115
+ ## Data Fields
116
+ ### Human Annotations (Default)
117
+ The data fields are the same among all splits:
118
+ - `inputs`: Prompt or input to the language model.
119
+ - `targets`: Completion or output of the language model.
120
+ - `language`: The language of the `inputs` and `targets`.
121
+ - `language_code`: The ISO code for the language of the `inputs` and `targets`.
122
+ - `annotation_type`: The value denoting whether `inputs` and `targets` are 'original_annotations' or 're-annotations'.
123
+ - `user_id`: Unique identifier of the annotator who submitted the prompt-completion pair.
124
+
125
+ ### Demographics Data
126
+ The data fields are the same among all splits:
127
+ - `user_id`: Unique identifier of the annotator who submitted the prompt-completion pair.
128
+ - `age_range`: Age of the annotator. Ranges from 0 to 121.
129
+ - `gender`: Gender of the annotator. The values are 'male', 'female', 'prefer not to say', 'non-binary' and 'others'.
130
+ - `languages`: List of languages spoken by the annotator.
131
+ - `dialects`: Dialects reported by the annotator.
132
+
133
+ Some empty values may be represented as 'null'.
134
+
135
+ ## Data Splits
136
+ ### Human Annotations (Default)
137
+ The following are the splits of the data:
138
+ | Split | No. of instances | Language Coverage |
139
+ |-------|------------------|-------------------|
140
+ | train | 202,364 | All |
141
+ | test | 1,750 | 7 ('Standard Arabic', 'Yoruba', 'Turkish', 'English', 'Simplified Chinese', 'Portuguese', 'Telugu')|
142
+
143
+ ### Demographics Data
144
+ The following are the splits of the data:
145
+ | Split | No. of Instances |
146
+ |-------|------------------|
147
+ | train | 1,456 |
148
+
149
+ ## Data Instances
150
+ ### Human Annotations (Default)
151
+ An example of `train` looks as follows:
152
+ ```json
153
+ {
154
+ "inputs": "What cultural events or festivals add vibrancy to Colombo's calendar...",
155
+ "targets": "Colombo's cultural calendar is adorned with diverse events and festivals that celebrate the city's rich tapestry of traditions...",
156
+ "language": "English",
157
+ "language_code": "eng",
158
+ "annotation_type": "original-annotations",
159
+ "user_id": "f0ff69570af705b75c5a0851883e..."
160
+ }
161
+ ```
162
+
163
+ ### Demographics Data
164
+ An example of `train` looks as follows:
165
+ ```json
166
+ {
167
+ "user_id": "f0ff69570af705b75c5a0851883e...",
168
+ "age_range": [ 25, 35 ],
169
+ "gender": "female",
170
+ "languages": [ "English", "Hausa" ],
171
+ "dialects": [ "Hausa" ]
172
+ }
173
+ ```
174
+
175
+ ## Statistics
176
+ ### Annotation Types
177
+ The following is the breakdown of original annotations and re-annotations in the final dataset.
178
+
179
+ | Type of Annotation | Instances |
180
+ |--------------------|-----------|
181
+ | Original Annotations | 138,844 |
182
+ | Re-Annotations | 65,270 |
183
+ | Total | 204,114|
184
+
185
+ ### Languages
186
+ The dataset covers 65 languages: 28 high-resource, 12 mid-resource, and 31 low-resource languages. The following is details about the languages, dialects & scripts included in the dataset.
187
+
188
+ <details>
189
+ <summary> Languages Info </summary>
190
+
191
+ | ISO Code | Language | Resources |
192
+ |----------|----------|-----------|
193
+ | `amh` | Amharic | Low |
194
+ | `arb`, `ary`, `ars`, `acq`, `arz` & `apc` | Arabic (Standard, Moroccan, Najdi, Ta'izzi-Adeni, Egyptian & South Levantine) | High |
195
+ | `ben` | Bengali | Mid |
196
+ | `ceb` | Cebuano | Mid |
197
+ | `dan` | Danish | Mid |
198
+ | `deu` | German | High |
199
+ | `ell` | Greek | Mid |
200
+ | `eng` | English | High |
201
+ | `eus` | Basque | High |
202
+ | `fil` | Filipino | Mid |
203
+ | `fin` | Finnish | Mid |
204
+ | `fra` | French | High |
205
+ | `gle` | Irish | Low |
206
+ | `guj` | Gujarati | Low |
207
+ | `hat` | Haitian Creole | Low |
208
+ | `hau` | Hausa | Low |
209
+ | `hin` | Hindi | High |
210
+ | `hun` | Hungarian | High |
211
+ | `ibo` | Igbo | Low |
212
+ | `ind` | Indonesian | Mid |
213
+ | `ita` | Italian | High |
214
+ | `jav` | Javanese | Low |
215
+ | `jpn` | Japanese | High |
216
+ | `kan` | Kannada | Low |
217
+ | `kir` | Kyrgyz | Low |
218
+ | `kor` | Korean | Mid |
219
+ | `kur` | Kurdish | Low |
220
+ | `lit` | Lithuanian | Mid |
221
+ | `mal` | Malayalam | Low |
222
+ | `mar` | Marathi | Low |
223
+ | `mlg` | Malagasy | Low |
224
+ | `msa` | Malay | Mid |
225
+ | `mya` | Burmese | Low |
226
+ | `nep` | Nepali | Low |
227
+ | `nld` | Dutch | High |
228
+ | `nso` | Northern Sotho | Low |
229
+ | `nya` | Chichewa | Low |
230
+ | `pan` | Punjabi | Low |
231
+ | `pes` | Persian | High |
232
+ | `pol` | Polish | High |
233
+ | `por` | Portuguese | High |
234
+ | `pus` | Pashto | Low |
235
+ | `rus` | Russian | High |
236
+ | `sin` | Sinhala | Low |
237
+ | `sna` | Shona | Low |
238
+ | `snd` | Sindhi | Low |
239
+ | `som` | Somali | Low |
240
+ | `spa` | Spanish | High |
241
+ | `sqi` | Albanian | Low |
242
+ | `srp` | Serbian | High |
243
+ | `sun` | Sundanese | Low |
244
+ | `swa` | Swahili | Low |
245
+ | `swe` | Swedish | High |
246
+ | `tam` | Tamil | Mid |
247
+ | `tel` | Telugu | Low |
248
+ | `tha` | Thai | Mid |
249
+ | `tur` | Turkish | High |
250
+ | `ukr` | Ukrainian | Mid |
251
+ | `urd` | Urdu | Mid |
252
+ | `vie` | Vietnamese | High |
253
+ | `wol` | Wolof | Low |
254
+ | `xho` | Xhosa | Low |
255
+ | `yor` | Yorùbá | Low |
256
+ | `zho` | Chinese (Traditional & Simplified) | High |
257
+ | `zul` | Zulu | Low |
258
+ </details>
259
+ <br>
260
+
261
+ # Motivations & Intentions
262
+ - **Curation Rationale:** The curation effort employed an open-science approach to create a diverse instruction-style dataset through annotators across the globe that ensures comprehensive representation across all languages. The success of the curation effort, led by volunteers across diverse backgrounds, was significantly influenced by their hope to meaningfully bring NLP advancements to their languages.
263
+
264
+
265
+ # Known Limitations
266
+ - **Language and dialect coverage:** The dataset covers a limited fraction of the world's linguistic diversity, with 93% of languages not represented, facing challenges in distinguishing between languages and dialects, lacking coverage for many regional dialects, and excluding programming languages.
267
+ - **Uneven distribution of contributions:** The dataset contains contributions in annotation activities, with a 'long tail' of annotators making only one or two contributions, leading to potential dataset imbalances across languages and a lack of diversity within certain language annotations.
268
+ - **Cultural and Personal Bias:** In the dataset, certain languages have limited representation due to a few dominant annotators, potentially leading to a narrow viewpoint and skewed distribution of content, particularly towards certain domains like news.
269
+ - **Gendered Pronouns:** Many of the languages in the Aya Dataset only contain pronouns that are explicitly gendered (e.g., Arabic) or that lack gender-neutral third-person pronouns for gender-neutral reference (e.g. Estonian).
270
+ - **Formality Distinctions:** The dataset encompasses languages with diverse formality distinctions, involving honorifics and situational choices in pronoun use, reflecting varying levels of standardization influenced by regional, cultural, and identity factors.
271
+ - **Toxic or Offensive Speech:** The Aya Annotation Platform lacked specific flags for toxic speech, relying on human verification and peer review to mitigate offensive content, but there's no guarantee that all potentially offensive data points were removed during the annotation process.
272
+ - **Accounting for mislabeled data:** The Aya Annotation Platform lacks re-labeling capabilities, leading to potential mislabeled data in the Aya Dataset, including instances of incorrect language assignments and non-compliance with instruction-style formatting.
273
+
274
+
275
+ # Additional Information
276
+ ## Provenance
277
+ - **Methods Used:** Crowd-sourced through volunteer annotations, followed by a quality assessment phase in which samples from the dataset were checked.
278
+ - **Methodology Details:**
279
+ - *Source:* Original annotations and edits of opensource NLP datasets
280
+ - *Platform:* [Aya Annotation Platform](https://aya.for.ai/)
281
+ - *Dates of Collection:* May 2023 - Dec 2023
282
+
283
+
284
+ ## Dataset Version and Maintenance
285
+ - **Maintenance Status:** Actively Maintained
286
+ - **Version Details:**
287
+ - *Current version:* 1.0
288
+ - *Last Update:* 02/2024
289
+ - *First Release:* 02/2024
290
+ - **Maintenance Plan:** Updates will be periodically made available based on volunteer contributions.
291
+
292
+
293
+ ## Authorship
294
+ - **Publishing Organization:** [Cohere For AI](https://cohere.com/research)
295
+ - **Industry Type:** Not-for-profit - Tech
296
+ - **Contact Details:** https://aya.for.ai/
297
+
298
+
299
+ ## Licensing Information
300
+ This dataset can be used for any purpose, whether academic or commercial, under the terms of the [Apache 2.0](https://opensource.org/license/apache-2-0) License.
301
+
302
+
303
+ ## Citation Information
304
+ ```bibtex
305
+ @misc{singh2024aya,
306
+ title={Aya Dataset: An Open-Access Collection for Multilingual Instruction Tuning},
307
+ author={Shivalika Singh and Freddie Vargus and Daniel Dsouza and Börje F. Karlsson and Abinaya Mahendiran and Wei-Yin Ko and Herumb Shandilya and Jay Patel and Deividas Mataciunas and Laura OMahony and Mike Zhang and Ramith Hettiarachchi and Joseph Wilson and Marina Machado and Luisa Souza Moura and Dominik Krzemiński and Hakimeh Fadaei and Irem Ergün and Ifeoma Okoh and Aisha Alaagib and Oshan Mudannayake and Zaid Alyafeai and Vu Minh Chien and Sebastian Ruder and Surya Guthikonda and Emad A. Alghamdi and Sebastian Gehrmann and Niklas Muennighoff and Max Bartolo and Julia Kreutzer and Ahmet Üstün and Marzieh Fadaee and Sara Hooker},
308
+ year={2024},
309
+ eprint={2402.06619},
310
+ archivePrefix={arXiv},
311
+ primaryClass={cs.CL}
312
+ }
313
+ ```