Datasets:
shmuhammad
commited on
Commit
•
04b7d12
1
Parent(s):
297bed5
Update README.md
Browse files
README.md
CHANGED
@@ -106,6 +106,30 @@ The AfriSenti dataset has 3 splits: train, validation, and test. Below are the s
|
|
106 |
| test | 2,000 | 959 | 5,304 | 3,683 | 2,962 | 2,097 | 4,155 | 3,663 | 1,027 | 749 | 2,001 | 255 | 950 | 4,516 |
|
107 |
| total | 9,483 | 3,062 | 22,155 | 15,718 | 9,762 | 2,494 | 10,559 | 7,495 | 5,158 | 3,014 | 2,400 | 1,264 | 4,821 | 15,130 |
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
|
110 |
|
111 |
## Dataset Creation
|
|
|
106 |
| test | 2,000 | 959 | 5,304 | 3,683 | 2,962 | 2,097 | 4,155 | 3,663 | 1,027 | 749 | 2,001 | 255 | 950 | 4,516 |
|
107 |
| total | 9,483 | 3,062 | 22,155 | 15,718 | 9,762 | 2,494 | 10,559 | 7,495 | 5,158 | 3,014 | 2,400 | 1,264 | 4,821 | 15,130 |
|
108 |
|
109 |
+
### How to use it
|
110 |
+
|
111 |
+
|
112 |
+
```
|
113 |
+
from datasets import load_dataset
|
114 |
+
|
115 |
+
# you can load specific language in the AfriSenti. This download train, validation and test sets.
|
116 |
+
ds = load_dataset("shmuhammad/AfriSenti", "amh")
|
117 |
+
|
118 |
+
|
119 |
+
# you can load specific train set only
|
120 |
+
ds = load_dataset("shmuhammad/AfriSenti", "amh", split = "train")
|
121 |
+
|
122 |
+
|
123 |
+
# download split test
|
124 |
+
ds = load_dataset("shmuhammad/AfriSenti", "amh", split = "test")
|
125 |
+
|
126 |
+
|
127 |
+
# download validation set
|
128 |
+
ds = load_dataset("shmuhammad/AfriSenti", "amh", split = "validation")
|
129 |
+
|
130 |
+
|
131 |
+
```
|
132 |
+
|
133 |
|
134 |
|
135 |
## Dataset Creation
|