File size: 1,663 Bytes
dd6e125
 
9d0e85f
 
dd6e125
9d0e85f
dd6e125
9d0e85f
dd6e125
23639ee
dd6e125
9d0e85f
dd6e125
 
 
9d0e85f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dd6e125
9d0e85f
 
 
 
 
 
dd6e125
 
42a606b
db72e8f
 
 
 
 
dd6e125
42a606b
 
 
 
47dacfc
42a606b
 
 
 
47dacfc
42a606b
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
language:
- arb
license: apache-2.0
multilinguality:
- monolingual
size_categories:
- 5k<n<10k
source_datasets:
- CohereForAI/aya_dataset
task_categories:
- other
task_ids: []
pretty_name: Arabic Aya Dataset
dataset_info:
  features:
  - name: inputs
    dtype: string
  - name: targets
    dtype: string
  - name: language
    dtype: string
  - name: annotation_type
    dtype: string
  splits:
  - name: train
    num_bytes: 4970717
    num_examples: 4995
  - name: test
    num_bytes: 225650
    num_examples: 250
  download_size: 2590571
  dataset_size: 5196367
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: test
    path: data/test-*
tags: []
---
# Arabic aya dataset
This dataset is the arabic partition of the `CohereForAI/aya_dataset` dataset. 

For more information about the dataset, visit the original dataset repo: [CohereForAI/aya_dataset](https://huggingface.co/datasets/CohereForAI/aya_dataset).

the data was extracted using this simple code:

```python
# Train split.
aya_train = datasets.load_dataset("CohereForAI/aya_dataset", split="train")
arb_train = aya_train.filter(lambda x: x["language_code"] == "arb")
arb_train = arb_train.remove_columns(["language_code", "user_id"])

# Test split.
aya_test = datasets.load_dataset("CohereForAI/aya_dataset", split="test")
arb_test = aya_test.filter(lambda x: x["language_code"] == "arb")
arb_test = arb_test.remove_columns(["language_code", "user_id"])

# create dataset dictionary.
arabic_aya = datasets.DatasetDict({
    "train":arb_train,
    "test":arb_test
})

# Upload to hf hub.
arabic_aya.push_to_hub("abuelnasr/cohere_aya_arabic")
```