system HF staff commited on
Commit
9a7f164
0 Parent(s):

Update files from the datasets library (from 1.9.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.9.0

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - expert-generated
6
+ languages:
7
+ am:
8
+ - am
9
+ ha:
10
+ - ha
11
+ ig:
12
+ - ig
13
+ rw:
14
+ - rw
15
+ lg:
16
+ - lg
17
+ luo:
18
+ - luo
19
+ pcm:
20
+ - pcm
21
+ sw:
22
+ - sw
23
+ wo:
24
+ - wo
25
+ yo:
26
+ - yo
27
+
28
+ licenses:
29
+ - unknown
30
+ multilinguality:
31
+ - multilingual
32
+ size_categories:
33
+ - 10K<n<100K
34
+ source_datasets:
35
+ - original
36
+ task_categories:
37
+ - structure-prediction
38
+ task_ids:
39
+ - named-entity-recognition
40
+ paperswithcode_id: null
41
+ ---
42
+
43
+ # Dataset Card for MasakhaNER
44
+
45
+ ## Table of Contents
46
+ - [Dataset Description](#dataset-description)
47
+ - [Dataset Summary](#dataset-summary)
48
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
49
+ - [Languages](#languages)
50
+ - [Dataset Structure](#dataset-structure)
51
+ - [Data Instances](#data-instances)
52
+ - [Data Fields](#data-fields)
53
+ - [Data Splits](#data-splits)
54
+ - [Dataset Creation](#dataset-creation)
55
+ - [Curation Rationale](#curation-rationale)
56
+ - [Source Data](#source-data)
57
+ - [Annotations](#annotations)
58
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
59
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
60
+ - [Social Impact of Dataset](#social-impact-of-dataset)
61
+ - [Discussion of Biases](#discussion-of-biases)
62
+ - [Other Known Limitations](#other-known-limitations)
63
+ - [Additional Information](#additional-information)
64
+ - [Dataset Curators](#dataset-curators)
65
+ - [Licensing Information](#licensing-information)
66
+ - [Citation Information](#citation-information)
67
+ - [Contributions](#contributions)
68
+
69
+ ## Dataset Description
70
+
71
+ - **Homepage:** [homepage](https://github.com/masakhane-io/masakhane-ner)
72
+ - **Repository:** [github](https://github.com/masakhane-io/masakhane-ner)
73
+ - **Paper:** [paper](https://arxiv.org/abs/2103.11811)
74
+ - **Point of Contact:** [Masakhane](https://www.masakhane.io/) or didelani@lsv.uni-saarland.de
75
+
76
+ ### Dataset Summary
77
+
78
+ MasakhaNER is the first large publicly available high-quality dataset for named entity recognition (NER) in ten African languages.
79
+
80
+ Named entities are phrases that contain the names of persons, organizations, locations, times and quantities. Example:
81
+
82
+ [PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .
83
+
84
+ MasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:
85
+ - Amharic
86
+ - Hausa
87
+ - Igbo
88
+ - Kinyarwanda
89
+ - Luganda
90
+ - Luo
91
+ - Nigerian-Pidgin
92
+ - Swahili
93
+ - Wolof
94
+ - Yoruba
95
+
96
+ The train/validation/test sets are available for all the ten languages.
97
+
98
+ For more details see https://arxiv.org/abs/2103.11811
99
+
100
+
101
+ ### Supported Tasks and Leaderboards
102
+
103
+ [More Information Needed]
104
+
105
+ - `named-entity-recognition`: The performance in this task is measured with [F1](https://huggingface.co/metrics/f1) (higher is better). A named entity is correct only if it is an exact match of the corresponding entity in the data.
106
+
107
+ ### Languages
108
+
109
+ There are ten languages available :
110
+ - Amharic (amh)
111
+ - Hausa (hau)
112
+ - Igbo (ibo)
113
+ - Kinyarwanda (kin)
114
+ - Luganda (kin)
115
+ - Luo (luo)
116
+ - Nigerian-Pidgin (pcm)
117
+ - Swahili (swa)
118
+ - Wolof (wol)
119
+ - Yoruba (yor)
120
+
121
+ ## Dataset Structure
122
+
123
+ ### Data Instances
124
+
125
+ The examples look like this for Yorùbá:
126
+
127
+ ```
128
+ from datasets import load_dataset
129
+ data = load_dataset('masakhaner', 'yor')
130
+
131
+ # Please, specify the language code
132
+
133
+ # A data point consists of sentences seperated by empty line and tab-seperated tokens and tags.
134
+ {'id': '0',
135
+ 'ner_tags': [B-DATE, I-DATE, 0, 0, 0, 0, 0, B-PER, I-PER, I-PER, O, O, O, O],
136
+ 'tokens': ['Wákàtí', 'méje', 'ti', 'ré', 'kọjá', 'lọ', 'tí', 'Luis', 'Carlos', 'Díaz', 'ti', 'di', 'awati', '.']
137
+ }
138
+ ```
139
+
140
+ ### Data Fields
141
+
142
+ - `id`: id of the sample
143
+ - `tokens`: the tokens of the example text
144
+ - `ner_tags`: the NER tags of each token
145
+
146
+ The NER tags correspond to this list:
147
+ ```
148
+ "O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-DATE", "I-DATE",
149
+ ```
150
+
151
+ In the NER tags, a B denotes the first item of a phrase and an I any non-initial word. There are four types of phrases: person names (PER), organizations (ORG), locations (LOC) and dates & time (DATE).
152
+
153
+ It is assumed that named entities are non-recursive and non-overlapping. In case a named entity is embedded in another named entity usually, only the top level entity is marked.
154
+
155
+ ### Data Splits
156
+
157
+ For all languages, there are three splits.
158
+
159
+ The original splits were named `train`, `dev` and `test` and they correspond to the `train`, `validation` and `test` splits.
160
+
161
+ The splits have the following sizes :
162
+
163
+ | Language | Tain | Valid | Test |
164
+ | ----- | ----- | ----- | ---- |
165
+ | Amharic | 1750 | 250 | 500 |
166
+ | Hausa | 1903 | 272 | 545 |
167
+ | Igbo | 2233 | 319 | 638 |
168
+ | Kinyarwanda | 2110 | 301 | 604 |
169
+ | Luganda | 2003 | 200 | 401 |
170
+ | Luo | 644 | 92 | 185 |
171
+ | Nigerian-Pidgin | 2100 | 300 | 600 |
172
+ | Swahili | 2104 | 300 | 602 |
173
+ | Wolof | 1871 | 267 | 536 |
174
+ | Yoruba | 2124 | 303 | 608 |
175
+
176
+ ## Dataset Creation
177
+
178
+ ### Curation Rationale
179
+
180
+ The dataset was introduced to introduce new resources to ten languages that were under-served for natural language processing.
181
+
182
+ [More Information Needed]
183
+
184
+ ### Source Data
185
+
186
+ The source of the data is from the news domain, details can be found here https://arxiv.org/abs/2103.11811
187
+
188
+ #### Initial Data Collection and Normalization
189
+
190
+ The articles were word-tokenized, information on the exact pre-processing pipeline is unavailable.
191
+
192
+ #### Who are the source language producers?
193
+
194
+ The source language was produced by journalists and writers employed by the news agency and newspaper mentioned above.
195
+
196
+ ### Annotations
197
+
198
+ #### Annotation process
199
+
200
+ Details can be found here https://arxiv.org/abs/2103.11811
201
+
202
+ #### Who are the annotators?
203
+
204
+ Annotators were recruited from [Masakhane](https://www.masakhane.io/)
205
+
206
+ ### Personal and Sensitive Information
207
+
208
+ The data is sourced from newspaper source and only contains mentions of public figures or individuals
209
+
210
+ ## Considerations for Using the Data
211
+
212
+ ### Social Impact of Dataset
213
+ [More Information Needed]
214
+
215
+
216
+ ### Discussion of Biases
217
+ [More Information Needed]
218
+
219
+
220
+ ### Other Known Limitations
221
+
222
+ Users should keep in mind that the dataset only contains news text, which might limit the applicability of the developed systems to other domains.
223
+
224
+ ## Additional Information
225
+
226
+ ### Dataset Curators
227
+
228
+
229
+ ### Licensing Information
230
+
231
+ The licensing status of the data is CC 4.0 Non-Commercial
232
+
233
+ ### Citation Information
234
+
235
+ Provide the [BibTex](http://www.bibtex.org/)-formatted reference for the dataset. For example:
236
+ ```
237
+ @article{Adelani2021MasakhaNERNE,
238
+ title={MasakhaNER: Named Entity Recognition for African Languages},
239
+ author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos
240
+ and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and
241
+ Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and
242
+ Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and
243
+ Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and
244
+ Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and
245
+ C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and
246
+ Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and
247
+ Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and
248
+ Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and
249
+ Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},
250
+ journal={ArXiv},
251
+ year={2021},
252
+ volume={abs/2103.11811}
253
+ }
254
+ ```
255
+
256
+ ### Contributions
257
+
258
+ Thanks to [@dadelani](https://github.com/dadelani) for adding this dataset.
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"es": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\n\nThe shared task of CoNLL-2002 concerns language-independent named entity recognition.\nWe will concentrate on four types of named entities: persons, locations, organizations and names of miscellaneous entities that do not belong to the previous three groups.\nThe participants of the shared task will be offered training and test data for at least two languages.\nThey will use the data for developing a named-entity recognition system that includes a machine learning component.\nInformation sources other than the training data may be used in this shared task.\nWe are especially interested in methods that can use additional unannotated data for improving their performance (for example co-training).\n\nThe train/validation/test sets are available in Spanish and Dutch.\n\nFor more details see https://www.clips.uantwerpen.be/conll2002/ner/ and https://www.aclweb.org/anthology/W02-2024/\n", "citation": "@inproceedings{tjong-kim-sang-2002-introduction,\n title = \"Introduction to the {C}o{NLL}-2002 Shared Task: Language-Independent Named Entity Recognition\",\n author = \"Tjong Kim Sang, Erik F.\",\n booktitle = \"{COLING}-02: The 6th Conference on Natural Language Learning 2002 ({C}o{NLL}-2002)\",\n year = \"2002\",\n url = \"https://www.aclweb.org/anthology/W02-2024\",\n}\n", "homepage": "https://www.aclweb.org/anthology/W02-2024/", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 60, "names": ["AO", "AQ", "CC", "CS", "DA", "DE", "DD", "DI", "DN", "DP", "DT", "Faa", "Fat", "Fc", "Fd", "Fe", "Fg", "Fh", "Fia", "Fit", "Fp", "Fpa", "Fpt", "Fs", "Ft", "Fx", "Fz", "I", "NC", "NP", "P0", "PD", "PI", "PN", "PP", "PR", "PT", "PX", "RG", "RN", "SP", "VAI", "VAM", "VAN", "VAP", "VAS", "VMG", "VMI", "VMM", "VMN", "VMP", "VMS", "VSG", "VSI", "VSM", "VSN", "VSP", "VSS", "Y", "Z"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-MISC", "I-MISC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "conll2002", "config_name": "es", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 6672173, "num_examples": 8324, "dataset_name": "conll2002"}, "validation": {"name": "validation", "num_bytes": 1333784, "num_examples": 1916, "dataset_name": "conll2002"}, "test": {"name": "test", "num_bytes": 1294156, "num_examples": 1518, "dataset_name": "conll2002"}}, "download_checksums": {"https://raw.githubusercontent.com/teropa/nlp/master/resources/corpora/conll2002/esp.train": {"num_bytes": 2970825, "checksum": "a20d95cab7d88a19a86f8c1ad6329325c99fbd9529ed978cbd7e31d4b01b4008"}, "https://raw.githubusercontent.com/teropa/nlp/master/resources/corpora/conll2002/esp.testa": {"num_bytes": 594058, "checksum": "85c17793b77881c53d19017d9d0f1e6fb98b7ddcab54a5f24b05ed1793103c87"}, "https://raw.githubusercontent.com/teropa/nlp/master/resources/corpora/conll2002/esp.testb": {"num_bytes": 575807, "checksum": "1f8f7a392c6d4979a5592a5794eed43d7869b46da6851bbcde99714149f1d016"}}, "download_size": 4140690, "post_processing_size": null, "dataset_size": 9300113, "size_in_bytes": 13440803}, "nl": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\n\nThe shared task of CoNLL-2002 concerns language-independent named entity recognition.\nWe will concentrate on four types of named entities: persons, locations, organizations and names of miscellaneous entities that do not belong to the previous three groups.\nThe participants of the shared task will be offered training and test data for at least two languages.\nThey will use the data for developing a named-entity recognition system that includes a machine learning component.\nInformation sources other than the training data may be used in this shared task.\nWe are especially interested in methods that can use additional unannotated data for improving their performance (for example co-training).\n\nThe train/validation/test sets are available in Spanish and Dutch.\n\nFor more details see https://www.clips.uantwerpen.be/conll2002/ner/ and https://www.aclweb.org/anthology/W02-2024/\n", "citation": "@inproceedings{tjong-kim-sang-2002-introduction,\n title = \"Introduction to the {C}o{NLL}-2002 Shared Task: Language-Independent Named Entity Recognition\",\n author = \"Tjong Kim Sang, Erik F.\",\n booktitle = \"{COLING}-02: The 6th Conference on Natural Language Learning 2002 ({C}o{NLL}-2002)\",\n year = \"2002\",\n url = \"https://www.aclweb.org/anthology/W02-2024\",\n}\n", "homepage": "https://www.aclweb.org/anthology/W02-2024/", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 12, "names": ["Adj", "Adv", "Art", "Conj", "Int", "Misc", "N", "Num", "Prep", "Pron", "Punc", "V"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-MISC", "I-MISC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "conll2002", "config_name": "nl", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 5308959, "num_examples": 15807, "dataset_name": "conll2002"}, "validation": {"name": "validation", "num_bytes": 994298, "num_examples": 2896, "dataset_name": "conll2002"}, "test": {"name": "test", "num_bytes": 1808862, "num_examples": 5196, "dataset_name": "conll2002"}}, "download_checksums": {"https://raw.githubusercontent.com/teropa/nlp/master/resources/corpora/conll2002/ned.train": {"num_bytes": 2377174, "checksum": "0a419dcb356b62c8cff38515675550b3d5dbea9f45a1c4956328dbd5cc7fcdbc"}, "https://raw.githubusercontent.com/teropa/nlp/master/resources/corpora/conll2002/ned.testa": {"num_bytes": 450785, "checksum": "51259d4bfe52462f211d3d0b67173a7ecbfa296e199f6c6bd0895f4c78155057"}, "https://raw.githubusercontent.com/teropa/nlp/master/resources/corpora/conll2002/ned.testb": {"num_bytes": 814282, "checksum": "2aa748edb82e6f9c4d82e57a4bed69ded18cfa4803122c75070335d513517488"}}, "download_size": 3642241, "post_processing_size": null, "dataset_size": 8112119, "size_in_bytes": 11754360}, "amh": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\nMasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:\n- Amharic\n- Hausa\n- Igbo\n- Kinyarwanda\n- Luganda\n- Luo\n- Nigerian-Pidgin\n- Swahili\n- Wolof\n- Yoruba\n\nThe train/validation/test sets are available for all the ten languages.\n\nFor more details see https://arxiv.org/abs/2103.11811\n", "citation": "@article{Adelani2021MasakhaNERNE,\n title={MasakhaNER: Named Entity Recognition for African Languages},\n author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos \n and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and \n Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and \n Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and\n Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and \n Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and \n C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and \n Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and \n Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and\n Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and \n Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},\n journal={ArXiv},\n year={2021},\n volume={abs/2103.11811}\n}\n", "homepage": "https://arxiv.org/abs/2103.11811", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-DATE", "I-DATE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "masakhaner", "config_name": "amh", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 639927, "num_examples": 1751, "dataset_name": "masakhaner"}, "validation": {"name": "validation", "num_bytes": 92768, "num_examples": 251, "dataset_name": "masakhaner"}, "test": {"name": "test", "num_bytes": 184286, "num_examples": 501, "dataset_name": "masakhaner"}}, "download_checksums": {"https://github.com/masakhane-io/masakhane-ner/raw/main/data/amh/train.txt": {"num_bytes": 399218, "checksum": "4cd4bb953f2d2a47172f5589133324657c785ed577acc3ebd7d5a74a106b0883"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/amh/dev.txt": {"num_bytes": 58077, "checksum": "0ba1bb30f7519c255341a9438fda19e0f61f15aa344e5ba038eb50144147e21d"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/amh/test.txt": {"num_bytes": 114656, "checksum": "8957bf06668ea28842acaca3caaf139aac1e078b56bf7aec593c1bb8fff7d938"}}, "download_size": 571951, "post_processing_size": null, "dataset_size": 916981, "size_in_bytes": 1488932}, "hau": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\nMasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:\n- Amharic\n- Hausa\n- Igbo\n- Kinyarwanda\n- Luganda\n- Luo\n- Nigerian-Pidgin\n- Swahili\n- Wolof\n- Yoruba\n\nThe train/validation/test sets are available for all the ten languages.\n\nFor more details see https://arxiv.org/abs/2103.11811\n", "citation": "@article{Adelani2021MasakhaNERNE,\n title={MasakhaNER: Named Entity Recognition for African Languages},\n author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos \n and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and \n Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and \n Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and\n Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and \n Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and \n C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and \n Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and \n Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and\n Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and \n Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},\n journal={ArXiv},\n year={2021},\n volume={abs/2103.11811}\n}\n", "homepage": "https://arxiv.org/abs/2103.11811", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-DATE", "I-DATE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "masakhaner", "config_name": "hau", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 929864, "num_examples": 1913, "dataset_name": "masakhaner"}, "validation": {"name": "validation", "num_bytes": 139518, "num_examples": 277, "dataset_name": "masakhaner"}, "test": {"name": "test", "num_bytes": 282986, "num_examples": 553, "dataset_name": "masakhaner"}}, "download_checksums": {"https://github.com/masakhane-io/masakhane-ner/raw/main/data/hau/train.txt": {"num_bytes": 436199, "checksum": "f09523f77aacc7d89e935ce8fdd0d7d6afb7ba06e4a6040a431f295b0b937939"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/hau/dev.txt": {"num_bytes": 65392, "checksum": "a4695528b190c629f417e66feda127650611ee8d0f0d0ce14dee8f1506da0f7f"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/hau/test.txt": {"num_bytes": 131781, "checksum": "1f636716cb1633490bc475951721d81a637b033045123f3ee84fee2a1ea06c70"}}, "download_size": 633372, "post_processing_size": null, "dataset_size": 1352368, "size_in_bytes": 1985740}, "ibo": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\nMasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:\n- Amharic\n- Hausa\n- Igbo\n- Kinyarwanda\n- Luganda\n- Luo\n- Nigerian-Pidgin\n- Swahili\n- Wolof\n- Yoruba\n\nThe train/validation/test sets are available for all the ten languages.\n\nFor more details see https://arxiv.org/abs/2103.11811\n", "citation": "@article{Adelani2021MasakhaNERNE,\n title={MasakhaNER: Named Entity Recognition for African Languages},\n author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos \n and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and \n Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and \n Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and\n Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and \n Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and \n C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and \n Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and \n Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and\n Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and \n Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},\n journal={ArXiv},\n year={2021},\n volume={abs/2103.11811}\n}\n", "homepage": "https://arxiv.org/abs/2103.11811", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-DATE", "I-DATE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "masakhaner", "config_name": "ibo", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 749212, "num_examples": 2236, "dataset_name": "masakhaner"}, "validation": {"name": "validation", "num_bytes": 110587, "num_examples": 321, "dataset_name": "masakhaner"}, "test": {"name": "test", "num_bytes": 222207, "num_examples": 639, "dataset_name": "masakhaner"}}, "download_checksums": {"https://github.com/masakhane-io/masakhane-ner/raw/main/data/ibo/train.txt": {"num_bytes": 354547, "checksum": "9731a5268749b43c5f1c7ac1f420aa7b856cbe2a0002b14dd1d2f809257612bb"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/ibo/dev.txt": {"num_bytes": 53684, "checksum": "059e81794392a659efd65218ae988ff4ae680cd5beceae84caa5a8658767e8ee"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/ibo/test.txt": {"num_bytes": 107184, "checksum": "ecfc765813ac82b5807e3cf00e26020ec971e5ebd93c71e172c7f48df427d818"}}, "download_size": 515415, "post_processing_size": null, "dataset_size": 1082006, "size_in_bytes": 1597421}, "kin": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\nMasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:\n- Amharic\n- Hausa\n- Igbo\n- Kinyarwanda\n- Luganda\n- Luo\n- Nigerian-Pidgin\n- Swahili\n- Wolof\n- Yoruba\n\nThe train/validation/test sets are available for all the ten languages.\n\nFor more details see https://arxiv.org/abs/2103.11811\n", "citation": "@article{Adelani2021MasakhaNERNE,\n title={MasakhaNER: Named Entity Recognition for African Languages},\n author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos \n and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and \n Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and \n Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and\n Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and \n Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and \n C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and \n Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and \n Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and\n Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and \n Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},\n journal={ArXiv},\n year={2021},\n volume={abs/2103.11811}\n}\n", "homepage": "https://arxiv.org/abs/2103.11811", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-DATE", "I-DATE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "masakhaner", "config_name": "kin", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 878762, "num_examples": 2117, "dataset_name": "masakhaner"}, "validation": {"name": "validation", "num_bytes": 121013, "num_examples": 303, "dataset_name": "masakhaner"}, "test": {"name": "test", "num_bytes": 258653, "num_examples": 606, "dataset_name": "masakhaner"}}, "download_checksums": {"https://github.com/masakhane-io/masakhane-ner/raw/main/data/kin/train.txt": {"num_bytes": 442520, "checksum": "46960b853d33b08759ec04dea5ba390ac196573b9fb868556aa3ed9ecd613d5a"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/kin/dev.txt": {"num_bytes": 61150, "checksum": "2adff8ef6a84927a9ebf68760feaffba8ff4d220fde89d6da88e084287c6cae9"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/kin/test.txt": {"num_bytes": 129354, "checksum": "d49c012b50ef2e1e5f6e424f4348d18ebc171298dd0eb34ec5a000a353f3d98f"}}, "download_size": 633024, "post_processing_size": null, "dataset_size": 1258428, "size_in_bytes": 1891452}, "lug": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\nMasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:\n- Amharic\n- Hausa\n- Igbo\n- Kinyarwanda\n- Luganda\n- Luo\n- Nigerian-Pidgin\n- Swahili\n- Wolof\n- Yoruba\n\nThe train/validation/test sets are available for all the ten languages.\n\nFor more details see https://arxiv.org/abs/2103.11811\n", "citation": "@article{Adelani2021MasakhaNERNE,\n title={MasakhaNER: Named Entity Recognition for African Languages},\n author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos \n and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and \n Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and \n Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and\n Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and \n Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and \n C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and \n Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and \n Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and\n Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and \n Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},\n journal={ArXiv},\n year={2021},\n volume={abs/2103.11811}\n}\n", "homepage": "https://arxiv.org/abs/2103.11811", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-DATE", "I-DATE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "masakhaner", "config_name": "lug", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 611933, "num_examples": 1429, "dataset_name": "masakhaner"}, "validation": {"name": "validation", "num_bytes": 70073, "num_examples": 201, "dataset_name": "masakhaner"}, "test": {"name": "test", "num_bytes": 183078, "num_examples": 408, "dataset_name": "masakhaner"}}, "download_checksums": {"https://github.com/masakhane-io/masakhane-ner/raw/main/data/lug/train.txt": {"num_bytes": 315679, "checksum": "5884e3c4be037b37dec9c1d60125638dad3510c81f903402d9c31f023deaf7fa"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/lug/dev.txt": {"num_bytes": 35254, "checksum": "654a457c9c7aaba690a6cab0a72390605288fd46668e3c17fa5f84596bbc740c"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/lug/test.txt": {"num_bytes": 94822, "checksum": "6b8b327cecc61d7228be95331e6bf3bbdeea84a3d023172359f0aa1c89b52ecc"}}, "download_size": 445755, "post_processing_size": null, "dataset_size": 865084, "size_in_bytes": 1310839}, "luo": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\nMasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:\n- Amharic\n- Hausa\n- Igbo\n- Kinyarwanda\n- Luganda\n- Luo\n- Nigerian-Pidgin\n- Swahili\n- Wolof\n- Yoruba\n\nThe train/validation/test sets are available for all the ten languages.\n\nFor more details see https://arxiv.org/abs/2103.11811\n", "citation": "@article{Adelani2021MasakhaNERNE,\n title={MasakhaNER: Named Entity Recognition for African Languages},\n author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos \n and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and \n Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and \n Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and\n Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and \n Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and \n C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and \n Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and \n Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and\n Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and \n Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},\n journal={ArXiv},\n year={2021},\n volume={abs/2103.11811}\n}\n", "homepage": "https://arxiv.org/abs/2103.11811", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-DATE", "I-DATE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "masakhaner", "config_name": "luo", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 315010, "num_examples": 645, "dataset_name": "masakhaner"}, "validation": {"name": "validation", "num_bytes": 43520, "num_examples": 93, "dataset_name": "masakhaner"}, "test": {"name": "test", "num_bytes": 87731, "num_examples": 187, "dataset_name": "masakhaner"}}, "download_checksums": {"https://github.com/masakhane-io/masakhane-ner/raw/main/data/luo/train.txt": {"num_bytes": 150174, "checksum": "a676dba1a88bfbf352150145855252f7c47c271c37da8c2d09fb3560e899fcd9"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/luo/dev.txt": {"num_bytes": 20777, "checksum": "37a270c722d1c5462907222bf3ff1cf2453075490f00867a4c8d90838080416a"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/luo/test.txt": {"num_bytes": 42330, "checksum": "9342c9a99a17b08daee32fe9ed414ab1e4810db886ba4e8b1c9f5522438479df"}}, "download_size": 213281, "post_processing_size": null, "dataset_size": 446261, "size_in_bytes": 659542}, "pcm": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\nMasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:\n- Amharic\n- Hausa\n- Igbo\n- Kinyarwanda\n- Luganda\n- Luo\n- Nigerian-Pidgin\n- Swahili\n- Wolof\n- Yoruba\n\nThe train/validation/test sets are available for all the ten languages.\n\nFor more details see https://arxiv.org/abs/2103.11811\n", "citation": "@article{Adelani2021MasakhaNERNE,\n title={MasakhaNER: Named Entity Recognition for African Languages},\n author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos \n and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and \n Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and \n Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and\n Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and \n Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and \n C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and \n Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and \n Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and\n Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and \n Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},\n journal={ArXiv},\n year={2021},\n volume={abs/2103.11811}\n}\n", "homepage": "https://arxiv.org/abs/2103.11811", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-DATE", "I-DATE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "masakhaner", "config_name": "pcm", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 868245, "num_examples": 2125, "dataset_name": "masakhaner"}, "validation": {"name": "validation", "num_bytes": 126844, "num_examples": 307, "dataset_name": "masakhaner"}, "test": {"name": "test", "num_bytes": 262200, "num_examples": 601, "dataset_name": "masakhaner"}}, "download_checksums": {"https://github.com/masakhane-io/masakhane-ner/raw/main/data/pcm/train.txt": {"num_bytes": 395332, "checksum": "7fbb8bc4f0b456e6283624d05a1bfd0e331c580ebf9564815d6f5b7453588272"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/pcm/dev.txt": {"num_bytes": 57178, "checksum": "34e2dc4868718fbb3646f2d65d3e7802866d4c17bde005ff28bfc3960de2f0bc"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/pcm/test.txt": {"num_bytes": 119544, "checksum": "de0dc15f4f74adff9486d03897354ef30ded9bedb73e058a96e3d1bd0a0c85fc"}}, "download_size": 572054, "post_processing_size": null, "dataset_size": 1257289, "size_in_bytes": 1829343}, "swa": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\nMasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:\n- Amharic\n- Hausa\n- Igbo\n- Kinyarwanda\n- Luganda\n- Luo\n- Nigerian-Pidgin\n- Swahili\n- Wolof\n- Yoruba\n\nThe train/validation/test sets are available for all the ten languages.\n\nFor more details see https://arxiv.org/abs/2103.11811\n", "citation": "@article{Adelani2021MasakhaNERNE,\n title={MasakhaNER: Named Entity Recognition for African Languages},\n author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos \n and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and \n Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and \n Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and\n Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and \n Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and \n C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and \n Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and \n Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and\n Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and \n Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},\n journal={ArXiv},\n year={2021},\n volume={abs/2103.11811}\n}\n", "homepage": "https://arxiv.org/abs/2103.11811", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-DATE", "I-DATE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "masakhaner", "config_name": "swa", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1001136, "num_examples": 2110, "dataset_name": "masakhaner"}, "validation": {"name": "validation", "num_bytes": 128578, "num_examples": 301, "dataset_name": "masakhaner"}, "test": {"name": "test", "num_bytes": 272123, "num_examples": 605, "dataset_name": "masakhaner"}}, "download_checksums": {"https://github.com/masakhane-io/masakhane-ner/raw/main/data/swa/train.txt": {"num_bytes": 490917, "checksum": "3fbefb76d97a652a29c6f856946af60e31a92ad82927bb748092c5be1b96cb08"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/swa/dev.txt": {"num_bytes": 63078, "checksum": "ee742c38cba9139f1a147baffe7d294d6e38599c67a66ec896500ac2666f53d3"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/swa/test.txt": {"num_bytes": 132318, "checksum": "f91b97def896572dfaaf6db247a01cc1a8b7bd2ce537c19956ec0a0a1ac5913c"}}, "download_size": 686313, "post_processing_size": null, "dataset_size": 1401837, "size_in_bytes": 2088150}, "wol": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\nMasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:\n- Amharic\n- Hausa\n- Igbo\n- Kinyarwanda\n- Luganda\n- Luo\n- Nigerian-Pidgin\n- Swahili\n- Wolof\n- Yoruba\n\nThe train/validation/test sets are available for all the ten languages.\n\nFor more details see https://arxiv.org/abs/2103.11811\n", "citation": "@article{Adelani2021MasakhaNERNE,\n title={MasakhaNER: Named Entity Recognition for African Languages},\n author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos \n and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and \n Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and \n Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and\n Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and \n Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and \n C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and \n Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and \n Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and\n Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and \n Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},\n journal={ArXiv},\n year={2021},\n volume={abs/2103.11811}\n}\n", "homepage": "https://arxiv.org/abs/2103.11811", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-DATE", "I-DATE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "masakhaner", "config_name": "wol", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 602092, "num_examples": 1872, "dataset_name": "masakhaner"}, "validation": {"name": "validation", "num_bytes": 71550, "num_examples": 268, "dataset_name": "masakhaner"}, "test": {"name": "test", "num_bytes": 191499, "num_examples": 540, "dataset_name": "masakhaner"}}, "download_checksums": {"https://github.com/masakhane-io/masakhane-ner/raw/main/data/wol/train.txt": {"num_bytes": 252788, "checksum": "160b946c5944313135cd0893030f9f2e5f305e1195e763124bfffd30eac787e8"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/wol/dev.txt": {"num_bytes": 29058, "checksum": "48517a2ad733938805be4bdd285518bed75f14d62068abed74c7eece550e9630"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/wol/test.txt": {"num_bytes": 82617, "checksum": "4791d2b105f1022c6b9180b7d96d10d4daa864d7f7087f1822b55ddbdd22b931"}}, "download_size": 364463, "post_processing_size": null, "dataset_size": 865141, "size_in_bytes": 1229604}, "yor": {"description": "Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.\n\nExample:\n[PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .\nMasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:\n- Amharic\n- Hausa\n- Igbo\n- Kinyarwanda\n- Luganda\n- Luo\n- Nigerian-Pidgin\n- Swahili\n- Wolof\n- Yoruba\n\nThe train/validation/test sets are available for all the ten languages.\n\nFor more details see https://arxiv.org/abs/2103.11811\n", "citation": "@article{Adelani2021MasakhaNERNE,\n title={MasakhaNER: Named Entity Recognition for African Languages},\n author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos \n and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and \n Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and \n Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and\n Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and \n Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and \n C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and \n Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and \n Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and\n Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and \n Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},\n journal={ArXiv},\n year={2021},\n volume={abs/2103.11811}\n}\n", "homepage": "https://arxiv.org/abs/2103.11811", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 9, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-DATE", "I-DATE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "masakhaner", "config_name": "yor", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1016757, "num_examples": 2172, "dataset_name": "masakhaner"}, "validation": {"name": "validation", "num_bytes": 127430, "num_examples": 306, "dataset_name": "masakhaner"}, "test": {"name": "test", "num_bytes": 359534, "num_examples": 646, "dataset_name": "masakhaner"}}, "download_checksums": {"https://github.com/masakhane-io/masakhane-ner/raw/main/data/yor/train.txt": {"num_bytes": 506380, "checksum": "8baf42a3231ab6f10ce7ed5ed434a5a5447634d1cdf979ac932b2496e3566784"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/yor/dev.txt": {"num_bytes": 62819, "checksum": "6fd8ba4c586606a08669ca56954185092f419ddf9c2c4d950815a1cb03af3832"}, "https://github.com/masakhane-io/masakhane-ner/raw/main/data/yor/test.txt": {"num_bytes": 182311, "checksum": "fbace84a8b7cc0c4078f1600a2408b06b3d182977bb64d55318590cba56c2058"}}, "download_size": 751510, "post_processing_size": null, "dataset_size": 1503721, "size_in_bytes": 2255231}}
dummy/amh/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5018a1e8a20f1c5551c080f24e3453768ca4ce0bda4a775a2ef4624c5e25ddfd
3
+ size 976
dummy/hau/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a174de3068d40116d3a106b31ecea3ab809769ed19185ac561671f1a1273d01
3
+ size 816
dummy/ibo/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3062a2b4b2a6258b19f38e8db81d0611a0f27f9222c2dc57ca21566935a38da1
3
+ size 809
dummy/kin/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc60476ee47cb50d8584b3a37b9ec5e2c65432257aa96442ff397f2460e9e299
3
+ size 845
dummy/lug/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03a0a4af1e195059c297c5342ba80c7dd71fcc1be2b53bdc04474a8f9bc3ce42
3
+ size 843
dummy/luo/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d40e326c05f83208484fe2387bb2ce7f1268164e1106110906d35db5393f1b43
3
+ size 736
dummy/pcm/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45e193cf9aa366e77cd9bca15956d0dcb5abf49b19868f6c468fb9abdbe5061c
3
+ size 793
dummy/swa/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d327960a2565952c0612cf9e937b19744bc23aa0be8db8f05710a91d3161ecc1
3
+ size 818
dummy/wol/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0db64863b8b44e6a86ec93b2dc53e56cd7346e85e3d3934b41f0a784834069ed
3
+ size 750
dummy/yor/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5add8825102f396d13b8f7c8211ee73c799d60816e525906886b98cb15d42754
3
+ size 850
masakhaner.py ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 HuggingFace Datasets Authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ # Lint as: python3
17
+ """MasakhaNER: Named Entity Recognition for African Languages"""
18
+
19
+ import datasets
20
+
21
+
22
+ logger = datasets.logging.get_logger(__name__)
23
+
24
+
25
+ _CITATION = """\
26
+ @article{Adelani2021MasakhaNERNE,
27
+ title={MasakhaNER: Named Entity Recognition for African Languages},
28
+ author={D. Adelani and Jade Abbott and Graham Neubig and Daniel D'Souza and Julia Kreutzer and Constantine Lignos
29
+ and Chester Palen-Michel and Happy Buzaaba and Shruti Rijhwani and Sebastian Ruder and Stephen Mayhew and
30
+ Israel Abebe Azime and S. Muhammad and Chris C. Emezue and Joyce Nakatumba-Nabende and Perez Ogayo and
31
+ Anuoluwapo Aremu and Catherine Gitau and Derguene Mbaye and J. Alabi and Seid Muhie Yimam and Tajuddeen R. Gwadabe and
32
+ Ignatius Ezeani and Rubungo Andre Niyongabo and Jonathan Mukiibi and V. Otiende and Iroro Orife and Davis David and
33
+ Samba Ngom and Tosin P. Adewumi and Paul Rayson and Mofetoluwa Adeyemi and Gerald Muriuki and Emmanuel Anebi and
34
+ C. Chukwuneke and N. Odu and Eric Peter Wairagala and S. Oyerinde and Clemencia Siro and Tobius Saul Bateesa and
35
+ Temilola Oloyede and Yvonne Wambui and Victor Akinode and Deborah Nabagereka and Maurice Katusiime and
36
+ Ayodele Awokoya and Mouhamadane Mboup and D. Gebreyohannes and Henok Tilaye and Kelechi Nwaike and Degaga Wolde and
37
+ Abdoulaye Faye and Blessing Sibanda and Orevaoghene Ahia and Bonaventure F. P. Dossou and Kelechi Ogueji and
38
+ Thierno Ibrahima Diop and A. Diallo and Adewale Akinfaderin and T. Marengereke and Salomey Osei},
39
+ journal={ArXiv},
40
+ year={2021},
41
+ volume={abs/2103.11811}
42
+ }
43
+ """
44
+
45
+ _DESCRIPTION = """\
46
+ MasakhaNER is the first large publicly available high-quality dataset for named entity recognition (NER) in ten African languages.
47
+
48
+ Named entities are phrases that contain the names of persons, organizations, locations, times and quantities.
49
+
50
+ Example:
51
+ [PER Wolff] , currently a journalist in [LOC Argentina] , played with [PER Del Bosque] in the final years of the seventies in [ORG Real Madrid] .
52
+ MasakhaNER is a named entity dataset consisting of PER, ORG, LOC, and DATE entities annotated by Masakhane for ten African languages:
53
+ - Amharic
54
+ - Hausa
55
+ - Igbo
56
+ - Kinyarwanda
57
+ - Luganda
58
+ - Luo
59
+ - Nigerian-Pidgin
60
+ - Swahili
61
+ - Wolof
62
+ - Yoruba
63
+
64
+ The train/validation/test sets are available for all the ten languages.
65
+
66
+ For more details see https://arxiv.org/abs/2103.11811
67
+ """
68
+
69
+ _URL = "https://github.com/masakhane-io/masakhane-ner/raw/main/data/"
70
+ _TRAINING_FILE = "train.txt"
71
+ _DEV_FILE = "dev.txt"
72
+ _TEST_FILE = "test.txt"
73
+
74
+
75
+ class MasakhanerConfig(datasets.BuilderConfig):
76
+ """BuilderConfig for Masakhaner"""
77
+
78
+ def __init__(self, **kwargs):
79
+ """BuilderConfig for Masakhaner.
80
+
81
+ Args:
82
+ **kwargs: keyword arguments forwarded to super.
83
+ """
84
+ super(MasakhanerConfig, self).__init__(**kwargs)
85
+
86
+
87
+ class Masakhaner(datasets.GeneratorBasedBuilder):
88
+ """Masakhaner dataset."""
89
+
90
+ BUILDER_CONFIGS = [
91
+ MasakhanerConfig(name="amh", version=datasets.Version("1.0.0"), description="Masakhaner Amharic dataset"),
92
+ MasakhanerConfig(name="hau", version=datasets.Version("1.0.0"), description="Masakhaner Hausa dataset"),
93
+ MasakhanerConfig(name="ibo", version=datasets.Version("1.0.0"), description="Masakhaner Igbo dataset"),
94
+ MasakhanerConfig(name="kin", version=datasets.Version("1.0.0"), description="Masakhaner Kinyarwanda dataset"),
95
+ MasakhanerConfig(name="lug", version=datasets.Version("1.0.0"), description="Masakhaner Luganda dataset"),
96
+ MasakhanerConfig(name="luo", version=datasets.Version("1.0.0"), description="Masakhaner Luo dataset"),
97
+ MasakhanerConfig(
98
+ name="pcm", version=datasets.Version("1.0.0"), description="Masakhaner Nigerian-Pidgin dataset"
99
+ ),
100
+ MasakhanerConfig(name="swa", version=datasets.Version("1.0.0"), description="Masakhaner Swahili dataset"),
101
+ MasakhanerConfig(name="wol", version=datasets.Version("1.0.0"), description="Masakhaner Wolof dataset"),
102
+ MasakhanerConfig(name="yor", version=datasets.Version("1.0.0"), description="Masakhaner Yoruba dataset"),
103
+ ]
104
+
105
+ def _info(self):
106
+ return datasets.DatasetInfo(
107
+ description=_DESCRIPTION,
108
+ features=datasets.Features(
109
+ {
110
+ "id": datasets.Value("string"),
111
+ "tokens": datasets.Sequence(datasets.Value("string")),
112
+ "ner_tags": datasets.Sequence(
113
+ datasets.features.ClassLabel(
114
+ names=[
115
+ "O",
116
+ "B-PER",
117
+ "I-PER",
118
+ "B-ORG",
119
+ "I-ORG",
120
+ "B-LOC",
121
+ "I-LOC",
122
+ "B-DATE",
123
+ "I-DATE",
124
+ ]
125
+ )
126
+ ),
127
+ }
128
+ ),
129
+ supervised_keys=None,
130
+ homepage="https://arxiv.org/abs/2103.11811",
131
+ citation=_CITATION,
132
+ )
133
+
134
+ def _split_generators(self, dl_manager):
135
+ """Returns SplitGenerators."""
136
+ urls_to_download = {
137
+ "train": f"{_URL}{self.config.name}/{_TRAINING_FILE}",
138
+ "dev": f"{_URL}{self.config.name}/{_DEV_FILE}",
139
+ "test": f"{_URL}{self.config.name}/{_TEST_FILE}",
140
+ }
141
+ downloaded_files = dl_manager.download_and_extract(urls_to_download)
142
+
143
+ return [
144
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
145
+ datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
146
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
147
+ ]
148
+
149
+ def _generate_examples(self, filepath):
150
+ logger.info("⏳ Generating examples from = %s", filepath)
151
+ with open(filepath, encoding="utf-8") as f:
152
+ guid = 0
153
+ tokens = []
154
+ ner_tags = []
155
+ for line in f:
156
+ if line == "" or line == "\n":
157
+ if tokens:
158
+ yield guid, {
159
+ "id": str(guid),
160
+ "tokens": tokens,
161
+ "ner_tags": ner_tags,
162
+ }
163
+ guid += 1
164
+ tokens = []
165
+ ner_tags = []
166
+ else:
167
+ # Masakhaner tokens are space separated
168
+ splits = line.split(" ")
169
+ tokens.append(splits[0])
170
+ ner_tags.append(splits[1].rstrip())
171
+ # last example
172
+ if tokens:
173
+ yield guid, {
174
+ "id": str(guid),
175
+ "tokens": tokens,
176
+ "ner_tags": ner_tags,
177
+ }