Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
gabrielaltay commited on
Commit
66e1546
1 Parent(s): 0c1d6f2
Files changed (5) hide show
  1. bigbiohub.py +4 -54
  2. languages.json +0 -792
  3. licenses.py +8 -17
  4. licenses.json → licenses_data.py +5 -5
  5. scitail.py +6 -5
bigbiohub.py CHANGED
@@ -1,12 +1,8 @@
1
- import json
2
- from collections import defaultdict
3
- from enum import Enum
4
- from types import SimpleNamespace
5
-
6
  from dataclasses import dataclass
 
7
  import datasets
8
-
9
- from . licenses import License, Licenses
10
 
11
 
12
  BigBioValues = SimpleNamespace(NULL="<BB_NULL_STR>")
@@ -23,22 +19,10 @@ class BigBioConfig(datasets.BuilderConfig):
23
  subset_id: str = None
24
 
25
 
26
- # shamelessly compied from:
27
- # https://github.com/huggingface/datasets/blob/master/src/datasets/utils/metadata.py
28
- langs_json = json.load(open("languages.json", "r"))
29
- langs_dict = {k.replace("-", "_").upper(): v for k, v in langs_json.items()}
30
  Lang = Enum("Lang", langs_dict)
31
 
32
 
33
- METADATA: dict = {
34
- "_LOCAL": bool,
35
- "_LANGUAGES": Lang,
36
- "_PUBMED": bool,
37
- "_LICENSE": License,
38
- "_DISPLAYNAME": str,
39
- }
40
-
41
-
42
  class Tasks(Enum):
43
  NAMED_ENTITY_RECOGNITION = "NER"
44
  NAMED_ENTITY_DISAMBIGUATION = "NED"
@@ -55,31 +39,6 @@ class Tasks(Enum):
55
  TEXT_CLASSIFICATION = "TXTCLASS"
56
 
57
 
58
- TASK_TO_SCHEMA = {
59
- Tasks.NAMED_ENTITY_RECOGNITION: "KB",
60
- Tasks.NAMED_ENTITY_DISAMBIGUATION: "KB",
61
- Tasks.EVENT_EXTRACTION: "KB",
62
- Tasks.RELATION_EXTRACTION: "KB",
63
- Tasks.COREFERENCE_RESOLUTION: "KB",
64
- Tasks.QUESTION_ANSWERING: "QA",
65
- Tasks.TEXTUAL_ENTAILMENT: "TE",
66
- Tasks.SEMANTIC_SIMILARITY: "PAIRS",
67
- Tasks.TEXT_PAIRS_CLASSIFICATION: "PAIRS",
68
- Tasks.PARAPHRASING: "T2T",
69
- Tasks.TRANSLATION: "T2T",
70
- Tasks.SUMMARIZATION: "T2T",
71
- Tasks.TEXT_CLASSIFICATION: "TEXT",
72
- }
73
-
74
- SCHEMA_TO_TASKS = defaultdict(set)
75
- for task, schema in TASK_TO_SCHEMA.items():
76
- SCHEMA_TO_TASKS[schema].add(task)
77
- SCHEMA_TO_TASKS = dict(SCHEMA_TO_TASKS)
78
-
79
- VALID_TASKS = set(TASK_TO_SCHEMA.keys())
80
- VALID_SCHEMAS = set(TASK_TO_SCHEMA.values())
81
-
82
-
83
  entailment_features = datasets.Features(
84
  {
85
  "id": datasets.Value("string"),
@@ -197,12 +156,3 @@ kb_features = datasets.Features(
197
  ],
198
  }
199
  )
200
-
201
- SCHEMA_TO_FEATURES = {
202
- "KB": kb_features,
203
- "QA": qa_features,
204
- "TE": entailment_features,
205
- "T2T": text2text_features,
206
- "TEXT": text_features,
207
- "PAIRS": pairs_features,
208
- }
 
 
 
 
 
 
1
  from dataclasses import dataclass
2
+ from enum import Enum
3
  import datasets
4
+ from datasets.utils.metadata import known_language_codes
5
+ from types import SimpleNamespace
6
 
7
 
8
  BigBioValues = SimpleNamespace(NULL="<BB_NULL_STR>")
 
19
  subset_id: str = None
20
 
21
 
22
+ langs_dict = {k.replace("-", "_").upper(): v for k, v in known_language_codes.items()}
 
 
 
23
  Lang = Enum("Lang", langs_dict)
24
 
25
 
 
 
 
 
 
 
 
 
 
26
  class Tasks(Enum):
27
  NAMED_ENTITY_RECOGNITION = "NER"
28
  NAMED_ENTITY_DISAMBIGUATION = "NED"
 
39
  TEXT_CLASSIFICATION = "TXTCLASS"
40
 
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  entailment_features = datasets.Features(
43
  {
44
  "id": datasets.Value("string"),
 
156
  ],
157
  }
158
  )
 
 
 
 
 
 
 
 
 
languages.json DELETED
@@ -1,792 +0,0 @@
1
- {
2
- "af": "Afrikaans",
3
- "af-NA": "Afrikaans (Namibia)",
4
- "af-ZA": "Afrikaans (South Africa)",
5
- "agq": "Aghem",
6
- "agq-CM": "Aghem (Cameroon)",
7
- "ak": "Akan",
8
- "ak-GH": "Akan (Ghana)",
9
- "am": "Amharic",
10
- "am-ET": "Amharic (Ethiopia)",
11
- "ar": "Arabic",
12
- "ar-001": "Arabic (World)",
13
- "ar-AE": "Arabic (United Arab Emirates)",
14
- "ar-BH": "Arabic (Bahrain)",
15
- "ar-DJ": "Arabic (Djibouti)",
16
- "ar-DZ": "Arabic (Algeria)",
17
- "ar-EG": "Arabic (Egypt)",
18
- "ar-EH": "Arabic (Western Sahara)",
19
- "ar-ER": "Arabic (Eritrea)",
20
- "ar-IL": "Arabic (Israel)",
21
- "ar-IQ": "Arabic (Iraq)",
22
- "ar-JO": "Arabic (Jordan)",
23
- "ar-KM": "Arabic (Comoros)",
24
- "ar-KW": "Arabic (Kuwait)",
25
- "ar-LB": "Arabic (Lebanon)",
26
- "ar-LY": "Arabic (Libya)",
27
- "ar-MA": "Arabic (Morocco)",
28
- "ar-MR": "Arabic (Mauritania)",
29
- "ar-OM": "Arabic (Oman)",
30
- "ar-PS": "Arabic (Palestinian Territories)",
31
- "ar-QA": "Arabic (Qatar)",
32
- "ar-SA": "Arabic (Saudi Arabia)",
33
- "ar-SD": "Arabic (Sudan)",
34
- "ar-SO": "Arabic (Somalia)",
35
- "ar-SS": "Arabic (South Sudan)",
36
- "ar-SY": "Arabic (Syria)",
37
- "ar-TD": "Arabic (Chad)",
38
- "ar-TN": "Arabic (Tunisia)",
39
- "ar-YE": "Arabic (Yemen)",
40
- "as": "Assamese",
41
- "as-IN": "Assamese (India)",
42
- "asa": "Asu",
43
- "asa-TZ": "Asu (Tanzania)",
44
- "ast": "Asturian",
45
- "ast-ES": "Asturian (Spain)",
46
- "az": "Azerbaijani",
47
- "az-Cyrl": "Azerbaijani (Cyrillic)",
48
- "az-Cyrl-AZ": "Azerbaijani (Cyrillic, Azerbaijan)",
49
- "az-Latn": "Azerbaijani (Latin)",
50
- "az-Latn-AZ": "Azerbaijani (Latin, Azerbaijan)",
51
- "bas": "Basaa",
52
- "bas-CM": "Basaa (Cameroon)",
53
- "be": "Belarusian",
54
- "be-BY": "Belarusian (Belarus)",
55
- "bem": "Bemba",
56
- "bem-ZM": "Bemba (Zambia)",
57
- "bez": "Bena",
58
- "bez-TZ": "Bena (Tanzania)",
59
- "bg": "Bulgarian",
60
- "bg-BG": "Bulgarian (Bulgaria)",
61
- "bm": "Bambara",
62
- "bm-ML": "Bambara (Mali)",
63
- "bn": "Bangla",
64
- "bn-BD": "Bangla (Bangladesh)",
65
- "bn-IN": "Bangla (India)",
66
- "bo": "Tibetan",
67
- "bo-CN": "Tibetan (China)",
68
- "bo-IN": "Tibetan (India)",
69
- "br": "Breton",
70
- "br-FR": "Breton (France)",
71
- "brx": "Bodo",
72
- "brx-IN": "Bodo (India)",
73
- "bs": "Bosnian",
74
- "bs-Cyrl": "Bosnian (Cyrillic)",
75
- "bs-Cyrl-BA": "Bosnian (Cyrillic, Bosnia & Herzegovina)",
76
- "bs-Latn": "Bosnian",
77
- "bs-Latn-BA": "Bosnian (Bosnia & Herzegovina)",
78
- "ca": "Catalan",
79
- "ca-AD": "Catalan (Andorra)",
80
- "ca-ES": "Catalan (Spain)",
81
- "ca-ES-valencia": "Catalan (Spain)",
82
- "ca-FR": "Catalan (France)",
83
- "ca-IT": "Catalan (Italy)",
84
- "ccp": "Chakma",
85
- "ccp-BD": "Chakma (Bangladesh)",
86
- "ccp-IN": "Chakma (India)",
87
- "ce": "Chechen",
88
- "ce-RU": "Chechen (Russia)",
89
- "ceb": "Cebuano",
90
- "ceb-PH": "Cebuano (Philippines)",
91
- "cgg": "Chiga",
92
- "cgg-UG": "Chiga (Uganda)",
93
- "chr": "Cherokee",
94
- "chr-US": "Cherokee (United States)",
95
- "ckb": "Central Kurdish",
96
- "ckb-IQ": "Central Kurdish (Iraq)",
97
- "ckb-IR": "Central Kurdish (Iran)",
98
- "cs": "Czech",
99
- "cs-CZ": "Czech (Czechia)",
100
- "cu": "Church Slavic",
101
- "cu-RU": "Church Slavic (Russia)",
102
- "cy": "Welsh",
103
- "cy-GB": "Welsh (United Kingdom)",
104
- "da": "Danish",
105
- "da-DK": "Danish (Denmark)",
106
- "da-GL": "Danish (Greenland)",
107
- "dav": "Taita",
108
- "dav-KE": "Taita (Kenya)",
109
- "de": "German",
110
- "de-AT": "German (Austria)",
111
- "de-BE": "German (Belgium)",
112
- "de-CH": "German (Switzerland)",
113
- "de-DE": "German (Germany)",
114
- "de-IT": "German (Italy)",
115
- "de-LI": "German (Liechtenstein)",
116
- "de-LU": "German (Luxembourg)",
117
- "dje": "Zarma",
118
- "dje-NE": "Zarma (Niger)",
119
- "dsb": "Lower Sorbian",
120
- "dsb-DE": "Lower Sorbian (Germany)",
121
- "dua": "Duala",
122
- "dua-CM": "Duala (Cameroon)",
123
- "dyo": "Jola-Fonyi",
124
- "dyo-SN": "Jola-Fonyi (Senegal)",
125
- "dz": "Dzongkha",
126
- "dz-BT": "Dzongkha (Bhutan)",
127
- "ebu": "Embu",
128
- "ebu-KE": "Embu (Kenya)",
129
- "ee": "Ewe",
130
- "ee-GH": "Ewe (Ghana)",
131
- "ee-TG": "Ewe (Togo)",
132
- "el": "Greek",
133
- "el-CY": "Greek (Cyprus)",
134
- "el-GR": "Greek (Greece)",
135
- "en": "English",
136
- "en-001": "English (World)",
137
- "en-150": "English (Europe)",
138
- "en-AE": "English (United Arab Emirates)",
139
- "en-AG": "English (Antigua & Barbuda)",
140
- "en-AI": "English (Anguilla)",
141
- "en-AS": "English (American Samoa)",
142
- "en-AT": "English (Austria)",
143
- "en-AU": "English (Australia)",
144
- "en-BB": "English (Barbados)",
145
- "en-BE": "English (Belgium)",
146
- "en-BI": "English (Burundi)",
147
- "en-BM": "English (Bermuda)",
148
- "en-BS": "English (Bahamas)",
149
- "en-BW": "English (Botswana)",
150
- "en-BZ": "English (Belize)",
151
- "en-CA": "English (Canada)",
152
- "en-CC": "English (Cocos (Keeling) Islands)",
153
- "en-CH": "English (Switzerland)",
154
- "en-CK": "English (Cook Islands)",
155
- "en-CM": "English (Cameroon)",
156
- "en-CX": "English (Christmas Island)",
157
- "en-CY": "English (Cyprus)",
158
- "en-DE": "English (Germany)",
159
- "en-DG": "English (Diego Garcia)",
160
- "en-DK": "English (Denmark)",
161
- "en-DM": "English (Dominica)",
162
- "en-ER": "English (Eritrea)",
163
- "en-FI": "English (Finland)",
164
- "en-FJ": "English (Fiji)",
165
- "en-FK": "English (Falkland Islands)",
166
- "en-FM": "English (Micronesia)",
167
- "en-GB": "English (United Kingdom)",
168
- "en-GD": "English (Grenada)",
169
- "en-GG": "English (Guernsey)",
170
- "en-GH": "English (Ghana)",
171
- "en-GI": "English (Gibraltar)",
172
- "en-GM": "English (Gambia)",
173
- "en-GU": "English (Guam)",
174
- "en-GY": "English (Guyana)",
175
- "en-HK": "English (Hong Kong SAR China)",
176
- "en-IE": "English (Ireland)",
177
- "en-IL": "English (Israel)",
178
- "en-IM": "English (Isle of Man)",
179
- "en-IN": "English (India)",
180
- "en-IO": "English (British Indian Ocean Territory)",
181
- "en-JE": "English (Jersey)",
182
- "en-JM": "English (Jamaica)",
183
- "en-KE": "English (Kenya)",
184
- "en-KI": "English (Kiribati)",
185
- "en-KN": "English (St. Kitts & Nevis)",
186
- "en-KY": "English (Cayman Islands)",
187
- "en-LC": "English (St. Lucia)",
188
- "en-LR": "English (Liberia)",
189
- "en-LS": "English (Lesotho)",
190
- "en-MG": "English (Madagascar)",
191
- "en-MH": "English (Marshall Islands)",
192
- "en-MO": "English (Macao SAR China)",
193
- "en-MP": "English (Northern Mariana Islands)",
194
- "en-MS": "English (Montserrat)",
195
- "en-MT": "English (Malta)",
196
- "en-MU": "English (Mauritius)",
197
- "en-MW": "English (Malawi)",
198
- "en-MY": "English (Malaysia)",
199
- "en-NA": "English (Namibia)",
200
- "en-NF": "English (Norfolk Island)",
201
- "en-NG": "English (Nigeria)",
202
- "en-NL": "English (Netherlands)",
203
- "en-NR": "English (Nauru)",
204
- "en-NU": "English (Niue)",
205
- "en-NZ": "English (New Zealand)",
206
- "en-PG": "English (Papua New Guinea)",
207
- "en-PH": "English (Philippines)",
208
- "en-PK": "English (Pakistan)",
209
- "en-PN": "English (Pitcairn Islands)",
210
- "en-PR": "English (Puerto Rico)",
211
- "en-PW": "English (Palau)",
212
- "en-RW": "English (Rwanda)",
213
- "en-SB": "English (Solomon Islands)",
214
- "en-SC": "English (Seychelles)",
215
- "en-SD": "English (Sudan)",
216
- "en-SE": "English (Sweden)",
217
- "en-SG": "English (Singapore)",
218
- "en-SH": "English (St. Helena)",
219
- "en-SI": "English (Slovenia)",
220
- "en-SL": "English (Sierra Leone)",
221
- "en-SS": "English (South Sudan)",
222
- "en-SX": "English (Sint Maarten)",
223
- "en-SZ": "English (Eswatini)",
224
- "en-TC": "English (Turks & Caicos Islands)",
225
- "en-TK": "English (Tokelau)",
226
- "en-TO": "English (Tonga)",
227
- "en-TT": "English (Trinidad & Tobago)",
228
- "en-TV": "English (Tuvalu)",
229
- "en-TZ": "English (Tanzania)",
230
- "en-UG": "English (Uganda)",
231
- "en-UM": "English (U.S. Outlying Islands)",
232
- "en-US": "English (United States)",
233
- "en-US-posix": "English (United States)",
234
- "en-VC": "English (St. Vincent & Grenadines)",
235
- "en-VG": "English (British Virgin Islands)",
236
- "en-VI": "English (U.S. Virgin Islands)",
237
- "en-VU": "English (Vanuatu)",
238
- "en-WS": "English (Samoa)",
239
- "en-ZA": "English (South Africa)",
240
- "en-ZM": "English (Zambia)",
241
- "en-ZW": "English (Zimbabwe)",
242
- "eo": "Esperanto",
243
- "eo-001": "Esperanto (World)",
244
- "es": "Spanish",
245
- "es-419": "Spanish (Latin America)",
246
- "es-AR": "Spanish (Argentina)",
247
- "es-BO": "Spanish (Bolivia)",
248
- "es-BR": "Spanish (Brazil)",
249
- "es-BZ": "Spanish (Belize)",
250
- "es-CL": "Spanish (Chile)",
251
- "es-CO": "Spanish (Colombia)",
252
- "es-CR": "Spanish (Costa Rica)",
253
- "es-CU": "Spanish (Cuba)",
254
- "es-DO": "Spanish (Dominican Republic)",
255
- "es-EA": "Spanish (Ceuta & Melilla)",
256
- "es-EC": "Spanish (Ecuador)",
257
- "es-ES": "Spanish (Spain)",
258
- "es-GQ": "Spanish (Equatorial Guinea)",
259
- "es-GT": "Spanish (Guatemala)",
260
- "es-HN": "Spanish (Honduras)",
261
- "es-IC": "Spanish (Canary Islands)",
262
- "es-MX": "Spanish (Mexico)",
263
- "es-NI": "Spanish (Nicaragua)",
264
- "es-PA": "Spanish (Panama)",
265
- "es-PE": "Spanish (Peru)",
266
- "es-PH": "Spanish (Philippines)",
267
- "es-PR": "Spanish (Puerto Rico)",
268
- "es-PY": "Spanish (Paraguay)",
269
- "es-SV": "Spanish (El Salvador)",
270
- "es-US": "Spanish (United States)",
271
- "es-UY": "Spanish (Uruguay)",
272
- "es-VE": "Spanish (Venezuela)",
273
- "et": "Estonian",
274
- "et-EE": "Estonian (Estonia)",
275
- "eu": "Basque",
276
- "eu-ES": "Basque (Spain)",
277
- "ewo": "Ewondo",
278
- "ewo-CM": "Ewondo (Cameroon)",
279
- "fa": "Persian",
280
- "fa-AF": "Persian (Afghanistan)",
281
- "fa-IR": "Persian (Iran)",
282
- "ff": "Fulah",
283
- "ff-Adlm": "Fulah (Adlam)",
284
- "ff-Adlm-BF": "Fulah (Adlam, Burkina Faso)",
285
- "ff-Adlm-CM": "Fulah (Adlam, Cameroon)",
286
- "ff-Adlm-GH": "Fulah (Adlam, Ghana)",
287
- "ff-Adlm-GM": "Fulah (Adlam, Gambia)",
288
- "ff-Adlm-GN": "Fulah (Adlam, Guinea)",
289
- "ff-Adlm-GW": "Fulah (Adlam, Guinea-Bissau)",
290
- "ff-Adlm-LR": "Fulah (Adlam, Liberia)",
291
- "ff-Adlm-MR": "Fulah (Adlam, Mauritania)",
292
- "ff-Adlm-NE": "Fulah (Adlam, Niger)",
293
- "ff-Adlm-NG": "Fulah (Adlam, Nigeria)",
294
- "ff-Adlm-SL": "Fulah (Adlam, Sierra Leone)",
295
- "ff-Adlm-SN": "Fulah (Adlam, Senegal)",
296
- "ff-Latn": "Fulah (Latin)",
297
- "ff-Latn-BF": "Fulah (Latin, Burkina Faso)",
298
- "ff-Latn-CM": "Fulah (Latin, Cameroon)",
299
- "ff-Latn-GH": "Fulah (Latin, Ghana)",
300
- "ff-Latn-GM": "Fulah (Latin, Gambia)",
301
- "ff-Latn-GN": "Fulah (Latin, Guinea)",
302
- "ff-Latn-GW": "Fulah (Latin, Guinea-Bissau)",
303
- "ff-Latn-LR": "Fulah (Latin, Liberia)",
304
- "ff-Latn-MR": "Fulah (Latin, Mauritania)",
305
- "ff-Latn-NE": "Fulah (Latin, Niger)",
306
- "ff-Latn-NG": "Fulah (Latin, Nigeria)",
307
- "ff-Latn-SL": "Fulah (Latin, Sierra Leone)",
308
- "ff-Latn-SN": "Fulah (Latin, Senegal)",
309
- "fi": "Finnish",
310
- "fi-FI": "Finnish (Finland)",
311
- "fil": "Filipino",
312
- "fil-PH": "Filipino (Philippines)",
313
- "fo": "Faroese",
314
- "fo-DK": "Faroese (Denmark)",
315
- "fo-FO": "Faroese (Faroe Islands)",
316
- "fr": "French",
317
- "fr-BE": "French (Belgium)",
318
- "fr-BF": "French (Burkina Faso)",
319
- "fr-BI": "French (Burundi)",
320
- "fr-BJ": "French (Benin)",
321
- "fr-BL": "French (St. Barth\u00e9lemy)",
322
- "fr-CA": "French (Canada)",
323
- "fr-CD": "French (Congo - Kinshasa)",
324
- "fr-CF": "French (Central African Republic)",
325
- "fr-CG": "French (Congo - Brazzaville)",
326
- "fr-CH": "French (Switzerland)",
327
- "fr-CI": "French (C\u00f4te d\u2019Ivoire)",
328
- "fr-CM": "French (Cameroon)",
329
- "fr-DJ": "French (Djibouti)",
330
- "fr-DZ": "French (Algeria)",
331
- "fr-FR": "French (France)",
332
- "fr-GA": "French (Gabon)",
333
- "fr-GF": "French (French Guiana)",
334
- "fr-GN": "French (Guinea)",
335
- "fr-GP": "French (Guadeloupe)",
336
- "fr-GQ": "French (Equatorial Guinea)",
337
- "fr-HT": "French (Haiti)",
338
- "fr-KM": "French (Comoros)",
339
- "fr-LU": "French (Luxembourg)",
340
- "fr-MA": "French (Morocco)",
341
- "fr-MC": "French (Monaco)",
342
- "fr-MF": "French (St. Martin)",
343
- "fr-MG": "French (Madagascar)",
344
- "fr-ML": "French (Mali)",
345
- "fr-MQ": "French (Martinique)",
346
- "fr-MR": "French (Mauritania)",
347
- "fr-MU": "French (Mauritius)",
348
- "fr-NC": "French (New Caledonia)",
349
- "fr-NE": "French (Niger)",
350
- "fr-PF": "French (French Polynesia)",
351
- "fr-PM": "French (St. Pierre & Miquelon)",
352
- "fr-RE": "French (R\u00e9union)",
353
- "fr-RW": "French (Rwanda)",
354
- "fr-SC": "French (Seychelles)",
355
- "fr-SN": "French (Senegal)",
356
- "fr-SY": "French (Syria)",
357
- "fr-TD": "French (Chad)",
358
- "fr-TG": "French (Togo)",
359
- "fr-TN": "French (Tunisia)",
360
- "fr-VU": "French (Vanuatu)",
361
- "fr-WF": "French (Wallis & Futuna)",
362
- "fr-YT": "French (Mayotte)",
363
- "fur": "Friulian",
364
- "fur-IT": "Friulian (Italy)",
365
- "fy": "Western Frisian",
366
- "fy-NL": "Western Frisian (Netherlands)",
367
- "ga": "Irish",
368
- "ga-GB": "Irish (United Kingdom)",
369
- "ga-IE": "Irish (Ireland)",
370
- "gd": "Scottish Gaelic",
371
- "gd-GB": "Scottish Gaelic (United Kingdom)",
372
- "gl": "Galician",
373
- "gl-ES": "Galician (Spain)",
374
- "gsw": "Swiss German",
375
- "gsw-CH": "Swiss German (Switzerland)",
376
- "gsw-FR": "Swiss German (France)",
377
- "gsw-LI": "Swiss German (Liechtenstein)",
378
- "gu": "Gujarati",
379
- "gu-IN": "Gujarati (India)",
380
- "guz": "Gusii",
381
- "guz-KE": "Gusii (Kenya)",
382
- "gv": "Manx",
383
- "gv-IM": "Manx (Isle of Man)",
384
- "ha": "Hausa",
385
- "ha-GH": "Hausa (Ghana)",
386
- "ha-NE": "Hausa (Niger)",
387
- "ha-NG": "Hausa (Nigeria)",
388
- "haw": "Hawaiian",
389
- "haw-US": "Hawaiian (United States)",
390
- "he": "Hebrew",
391
- "he-IL": "Hebrew (Israel)",
392
- "hi": "Hindi",
393
- "hi-IN": "Hindi (India)",
394
- "hr": "Croatian",
395
- "hr-BA": "Croatian (Bosnia & Herzegovina)",
396
- "hr-HR": "Croatian (Croatia)",
397
- "hsb": "Upper Sorbian",
398
- "hsb-DE": "Upper Sorbian (Germany)",
399
- "hu": "Hungarian",
400
- "hu-HU": "Hungarian (Hungary)",
401
- "hy": "Armenian",
402
- "hy-AM": "Armenian (Armenia)",
403
- "ia": "Interlingua",
404
- "ia-001": "Interlingua (World)",
405
- "id": "Indonesian",
406
- "id-ID": "Indonesian (Indonesia)",
407
- "ig": "Igbo",
408
- "ig-NG": "Igbo (Nigeria)",
409
- "ii": "Sichuan Yi",
410
- "ii-CN": "Sichuan Yi (China)",
411
- "is": "Icelandic",
412
- "is-IS": "Icelandic (Iceland)",
413
- "it": "Italian",
414
- "it-CH": "Italian (Switzerland)",
415
- "it-IT": "Italian (Italy)",
416
- "it-SM": "Italian (San Marino)",
417
- "it-VA": "Italian (Vatican City)",
418
- "ja": "Japanese",
419
- "ja-JP": "Japanese (Japan)",
420
- "jgo": "Ngomba",
421
- "jgo-CM": "Ngomba (Cameroon)",
422
- "jmc": "Machame",
423
- "jmc-TZ": "Machame (Tanzania)",
424
- "jv": "Javanese",
425
- "jv-ID": "Javanese (Indonesia)",
426
- "ka": "Georgian",
427
- "ka-GE": "Georgian (Georgia)",
428
- "kab": "Kabyle",
429
- "kab-DZ": "Kabyle (Algeria)",
430
- "kam": "Kamba",
431
- "kam-KE": "Kamba (Kenya)",
432
- "kde": "Makonde",
433
- "kde-TZ": "Makonde (Tanzania)",
434
- "kea": "Kabuverdianu",
435
- "kea-CV": "Kabuverdianu (Cape Verde)",
436
- "khq": "Koyra Chiini",
437
- "khq-ML": "Koyra Chiini (Mali)",
438
- "ki": "Kikuyu",
439
- "ki-KE": "Kikuyu (Kenya)",
440
- "kk": "Kazakh",
441
- "kk-KZ": "Kazakh (Kazakhstan)",
442
- "kkj": "Kako",
443
- "kkj-CM": "Kako (Cameroon)",
444
- "kl": "Kalaallisut",
445
- "kl-GL": "Kalaallisut (Greenland)",
446
- "kln": "Kalenjin",
447
- "kln-KE": "Kalenjin (Kenya)",
448
- "km": "Khmer",
449
- "km-KH": "Khmer (Cambodia)",
450
- "kn": "Kannada",
451
- "kn-IN": "Kannada (India)",
452
- "ko": "Korean",
453
- "ko-KP": "Korean (North Korea)",
454
- "ko-KR": "Korean (South Korea)",
455
- "kok": "Konkani",
456
- "kok-IN": "Konkani (India)",
457
- "ks": "Kashmiri",
458
- "ks-Arab": "Kashmiri (Arabic)",
459
- "ks-IN": "Kashmiri (India)",
460
- "ksb": "Shambala",
461
- "ksb-TZ": "Shambala (Tanzania)",
462
- "ksf": "Bafia",
463
- "ksf-CM": "Bafia (Cameroon)",
464
- "ksh": "Colognian",
465
- "ksh-DE": "Colognian (Germany)",
466
- "ku": "Kurdish",
467
- "ku-TR": "Kurdish (Turkey)",
468
- "kw": "Cornish",
469
- "kw-GB": "Cornish (United Kingdom)",
470
- "ky": "Kyrgyz",
471
- "ky-KG": "Kyrgyz (Kyrgyzstan)",
472
- "lag": "Langi",
473
- "lag-TZ": "Langi (Tanzania)",
474
- "lb": "Luxembourgish",
475
- "lb-LU": "Luxembourgish (Luxembourg)",
476
- "lg": "Ganda",
477
- "lg-UG": "Ganda (Uganda)",
478
- "lkt": "Lakota",
479
- "lkt-US": "Lakota (United States)",
480
- "ln": "Lingala",
481
- "ln-AO": "Lingala (Angola)",
482
- "ln-CD": "Lingala (Congo - Kinshasa)",
483
- "ln-CF": "Lingala (Central African Republic)",
484
- "ln-CG": "Lingala (Congo - Brazzaville)",
485
- "lo": "Lao",
486
- "lo-LA": "Lao (Laos)",
487
- "lrc": "Northern Luri",
488
- "lrc-IQ": "Northern Luri (Iraq)",
489
- "lrc-IR": "Northern Luri (Iran)",
490
- "lt": "Lithuanian",
491
- "lt-LT": "Lithuanian (Lithuania)",
492
- "lu": "Luba-Katanga",
493
- "lu-CD": "Luba-Katanga (Congo - Kinshasa)",
494
- "luo": "Luo (Kenya and Tanzania)",
495
- "luo-KE": "Luo (Kenya and Tanzania) (Kenya)",
496
- "luy": "Luyia",
497
- "luy-KE": "Luyia (Kenya)",
498
- "lv": "Latvian",
499
- "lv-LV": "Latvian (Latvia)",
500
- "mai": "Maithili",
501
- "mai-IN": "Maithili (India)",
502
- "mas": "Masai",
503
- "mas-KE": "Masai (Kenya)",
504
- "mas-TZ": "Masai (Tanzania)",
505
- "mer": "Meru",
506
- "mer-KE": "Meru (Kenya)",
507
- "mfe": "Morisyen",
508
- "mfe-MU": "Morisyen (Mauritius)",
509
- "mg": "Malagasy",
510
- "mg-MG": "Malagasy (Madagascar)",
511
- "mgh": "Makhuwa-Meetto",
512
- "mgh-MZ": "Makhuwa-Meetto (Mozambique)",
513
- "mgo": "Meta\u02bc",
514
- "mgo-CM": "Meta\u02bc (Cameroon)",
515
- "mi": "Maori",
516
- "mi-NZ": "Maori (New Zealand)",
517
- "mk": "Macedonian",
518
- "mk-MK": "Macedonian (North Macedonia)",
519
- "ml": "Malayalam",
520
- "ml-IN": "Malayalam (India)",
521
- "mn": "Mongolian",
522
- "mn-MN": "Mongolian (Mongolia)",
523
- "mni": "Manipuri",
524
- "mni-Beng": "Manipuri (Bangla)",
525
- "mni-Beng-IN": "Manipuri (Bangla, India)",
526
- "mr": "Marathi",
527
- "mr-IN": "Marathi (India)",
528
- "ms": "Malay",
529
- "ms-BN": "Malay (Brunei)",
530
- "ms-ID": "Malay (Indonesia)",
531
- "ms-MY": "Malay (Malaysia)",
532
- "ms-SG": "Malay (Singapore)",
533
- "mt": "Maltese",
534
- "mt-MT": "Maltese (Malta)",
535
- "mua": "Mundang",
536
- "mua-CM": "Mundang (Cameroon)",
537
- "my": "Burmese",
538
- "my-MM": "Burmese (Myanmar (Burma))",
539
- "mzn": "Mazanderani",
540
- "mzn-IR": "Mazanderani (Iran)",
541
- "naq": "Nama",
542
- "naq-NA": "Nama (Namibia)",
543
- "nb": "Norwegian Bokm\u00e5l",
544
- "nb-NO": "Norwegian Bokm\u00e5l (Norway)",
545
- "nb-SJ": "Norwegian Bokm\u00e5l (Svalbard & Jan Mayen)",
546
- "nd": "North Ndebele",
547
- "nd-ZW": "North Ndebele (Zimbabwe)",
548
- "nds": "Low German",
549
- "nds-DE": "Low German (Germany)",
550
- "nds-NL": "Low German (Netherlands)",
551
- "ne": "Nepali",
552
- "ne-IN": "Nepali (India)",
553
- "ne-NP": "Nepali (Nepal)",
554
- "nl": "Dutch",
555
- "nl-AW": "Dutch (Aruba)",
556
- "nl-BE": "Dutch (Belgium)",
557
- "nl-BQ": "Dutch (Caribbean Netherlands)",
558
- "nl-CW": "Dutch (Cura\u00e7ao)",
559
- "nl-NL": "Dutch (Netherlands)",
560
- "nl-SR": "Dutch (Suriname)",
561
- "nl-SX": "Dutch (Sint Maarten)",
562
- "nmg": "Kwasio",
563
- "nmg-CM": "Kwasio (Cameroon)",
564
- "nn": "Norwegian Nynorsk",
565
- "nn-NO": "Norwegian Nynorsk (Norway)",
566
- "nnh": "Ngiemboon",
567
- "nnh-CM": "Ngiemboon (Cameroon)",
568
- "nus": "Nuer",
569
- "nus-SS": "Nuer (South Sudan)",
570
- "nyn": "Nyankole",
571
- "nyn-UG": "Nyankole (Uganda)",
572
- "om": "Oromo",
573
- "om-ET": "Oromo (Ethiopia)",
574
- "om-KE": "Oromo (Kenya)",
575
- "or": "Odia",
576
- "or-IN": "Odia (India)",
577
- "os": "Ossetic",
578
- "os-GE": "Ossetic (Georgia)",
579
- "os-RU": "Ossetic (Russia)",
580
- "pa": "Punjabi",
581
- "pa-Arab": "Punjabi (Arabic)",
582
- "pa-Arab-PK": "Punjabi (Arabic, Pakistan)",
583
- "pa-Guru": "Punjabi",
584
- "pa-Guru-IN": "Punjabi (India)",
585
- "pcm": "Nigerian Pidgin",
586
- "pcm-NG": "Nigerian Pidgin (Nigeria)",
587
- "pl": "Polish",
588
- "pl-PL": "Polish (Poland)",
589
- "prg": "Prussian",
590
- "prg-001": "Prussian (World)",
591
- "ps": "Pashto",
592
- "ps-AF": "Pashto (Afghanistan)",
593
- "ps-PK": "Pashto (Pakistan)",
594
- "pt": "Portuguese",
595
- "pt-AO": "Portuguese (Angola)",
596
- "pt-BR": "Portuguese (Brazil)",
597
- "pt-CH": "Portuguese (Switzerland)",
598
- "pt-CV": "Portuguese (Cape Verde)",
599
- "pt-GQ": "Portuguese (Equatorial Guinea)",
600
- "pt-GW": "Portuguese (Guinea-Bissau)",
601
- "pt-LU": "Portuguese (Luxembourg)",
602
- "pt-MO": "Portuguese (Macao SAR China)",
603
- "pt-MZ": "Portuguese (Mozambique)",
604
- "pt-PT": "Portuguese (Portugal)",
605
- "pt-ST": "Portuguese (S\u00e3o Tom\u00e9 & Pr\u00edncipe)",
606
- "pt-TL": "Portuguese (Timor-Leste)",
607
- "qu": "Quechua",
608
- "qu-BO": "Quechua (Bolivia)",
609
- "qu-EC": "Quechua (Ecuador)",
610
- "qu-PE": "Quechua (Peru)",
611
- "rm": "Romansh",
612
- "rm-CH": "Romansh (Switzerland)",
613
- "rn": "Rundi",
614
- "rn-BI": "Rundi (Burundi)",
615
- "ro": "Romanian",
616
- "ro-MD": "Romanian (Moldova)",
617
- "ro-RO": "Romanian (Romania)",
618
- "rof": "Rombo",
619
- "rof-TZ": "Rombo (Tanzania)",
620
- "und": "Unknown language",
621
- "ru": "Russian",
622
- "ru-BY": "Russian (Belarus)",
623
- "ru-KG": "Russian (Kyrgyzstan)",
624
- "ru-KZ": "Russian (Kazakhstan)",
625
- "ru-MD": "Russian (Moldova)",
626
- "ru-RU": "Russian (Russia)",
627
- "ru-UA": "Russian (Ukraine)",
628
- "rw": "Kinyarwanda",
629
- "rw-RW": "Kinyarwanda (Rwanda)",
630
- "rwk": "Rwa",
631
- "rwk-TZ": "Rwa (Tanzania)",
632
- "sah": "Sakha",
633
- "sah-RU": "Sakha (Russia)",
634
- "saq": "Samburu",
635
- "saq-KE": "Samburu (Kenya)",
636
- "sat": "Santali",
637
- "sat-Olck": "Santali (Ol Chiki)",
638
- "sat-Olck-IN": "Santali (Ol Chiki, India)",
639
- "sbp": "Sangu",
640
- "sbp-TZ": "Sangu (Tanzania)",
641
- "sd": "Sindhi",
642
- "sd-Arab": "Sindhi (Arabic)",
643
- "sd-Arab-PK": "Sindhi (Arabic, Pakistan)",
644
- "sd-Deva": "Sindhi (Devanagari)",
645
- "sd-Deva-IN": "Sindhi (Devanagari, India)",
646
- "se": "Northern Sami",
647
- "se-FI": "Northern Sami (Finland)",
648
- "se-NO": "Northern Sami (Norway)",
649
- "se-SE": "Northern Sami (Sweden)",
650
- "seh": "Sena",
651
- "seh-MZ": "Sena (Mozambique)",
652
- "ses": "Koyraboro Senni",
653
- "ses-ML": "Koyraboro Senni (Mali)",
654
- "sg": "Sango",
655
- "sg-CF": "Sango (Central African Republic)",
656
- "shi": "Tachelhit",
657
- "shi-Latn": "Tachelhit (Latin)",
658
- "shi-Latn-MA": "Tachelhit (Latin, Morocco)",
659
- "shi-Tfng": "Tachelhit (Tifinagh)",
660
- "shi-Tfng-MA": "Tachelhit (Tifinagh, Morocco)",
661
- "si": "Sinhala",
662
- "si-LK": "Sinhala (Sri Lanka)",
663
- "sk": "Slovak",
664
- "sk-SK": "Slovak (Slovakia)",
665
- "sl": "Slovenian",
666
- "sl-SI": "Slovenian (Slovenia)",
667
- "smn": "Inari Sami",
668
- "smn-FI": "Inari Sami (Finland)",
669
- "sn": "Shona",
670
- "sn-ZW": "Shona (Zimbabwe)",
671
- "so": "Somali",
672
- "so-DJ": "Somali (Djibouti)",
673
- "so-ET": "Somali (Ethiopia)",
674
- "so-KE": "Somali (Kenya)",
675
- "so-SO": "Somali (Somalia)",
676
- "sq": "Albanian",
677
- "sq-AL": "Albanian (Albania)",
678
- "sq-MK": "Albanian (North Macedonia)",
679
- "sq-XK": "Albanian (Kosovo)",
680
- "sr": "Serbian",
681
- "sr-Cyrl": "Serbian (Cyrillic)",
682
- "sr-Cyrl-BA": "Serbian (Cyrillic, Bosnia & Herzegovina)",
683
- "sr-Cyrl-ME": "Serbian (Cyrillic, Montenegro)",
684
- "sr-Cyrl-RS": "Serbian (Cyrillic, Serbia)",
685
- "sr-Cyrl-XK": "Serbian (Cyrillic, Kosovo)",
686
- "sr-Latn": "Serbian (Latin)",
687
- "sr-Latn-BA": "Serbian (Latin, Bosnia & Herzegovina)",
688
- "sr-Latn-ME": "Serbian (Latin, Montenegro)",
689
- "sr-Latn-RS": "Serbian (Latin, Serbia)",
690
- "sr-Latn-XK": "Serbian (Latin, Kosovo)",
691
- "su": "Sundanese",
692
- "su-Latn": "Sundanese (Latin)",
693
- "su-Latn-ID": "Sundanese (Latin, Indonesia)",
694
- "sv": "Swedish",
695
- "sv-AX": "Swedish (\u00c5land Islands)",
696
- "sv-FI": "Swedish (Finland)",
697
- "sv-SE": "Swedish (Sweden)",
698
- "sw": "Swahili",
699
- "sw-CD": "Swahili (Congo - Kinshasa)",
700
- "sw-KE": "Swahili (Kenya)",
701
- "sw-TZ": "Swahili (Tanzania)",
702
- "sw-UG": "Swahili (Uganda)",
703
- "ta": "Tamil",
704
- "ta-IN": "Tamil (India)",
705
- "ta-LK": "Tamil (Sri Lanka)",
706
- "ta-MY": "Tamil (Malaysia)",
707
- "ta-SG": "Tamil (Singapore)",
708
- "te": "Telugu",
709
- "te-IN": "Telugu (India)",
710
- "teo": "Teso",
711
- "teo-KE": "Teso (Kenya)",
712
- "teo-UG": "Teso (Uganda)",
713
- "tg": "Tajik",
714
- "tg-TJ": "Tajik (Tajikistan)",
715
- "th": "Thai",
716
- "th-TH": "Thai (Thailand)",
717
- "ti": "Tigrinya",
718
- "ti-ER": "Tigrinya (Eritrea)",
719
- "ti-ET": "Tigrinya (Ethiopia)",
720
- "tk": "Turkmen",
721
- "tk-TM": "Turkmen (Turkmenistan)",
722
- "to": "Tongan",
723
- "to-TO": "Tongan (Tonga)",
724
- "tr": "Turkish",
725
- "tr-CY": "Turkish (Cyprus)",
726
- "tr-TR": "Turkish (Turkey)",
727
- "tt": "Tatar",
728
- "tt-RU": "Tatar (Russia)",
729
- "twq": "Tasawaq",
730
- "twq-NE": "Tasawaq (Niger)",
731
- "tzm": "Central Atlas Tamazight",
732
- "tzm-MA": "Central Atlas Tamazight (Morocco)",
733
- "ug": "Uyghur",
734
- "ug-CN": "Uyghur (China)",
735
- "uk": "Ukrainian",
736
- "uk-UA": "Ukrainian (Ukraine)",
737
- "ur": "Urdu",
738
- "ur-IN": "Urdu (India)",
739
- "ur-PK": "Urdu (Pakistan)",
740
- "uz": "Uzbek",
741
- "uz-Arab": "Uzbek (Arabic)",
742
- "uz-Arab-AF": "Uzbek (Arabic, Afghanistan)",
743
- "uz-Cyrl": "Uzbek (Cyrillic)",
744
- "uz-Cyrl-UZ": "Uzbek (Cyrillic, Uzbekistan)",
745
- "uz-Latn": "Uzbek (Latin)",
746
- "uz-Latn-UZ": "Uzbek (Latin, Uzbekistan)",
747
- "vai": "Vai",
748
- "vai-Latn": "Vai (Latin)",
749
- "vai-Latn-LR": "Vai (Latin, Liberia)",
750
- "vai-Vaii": "Vai (Vai)",
751
- "vai-Vaii-LR": "Vai (Vai, Liberia)",
752
- "vi": "Vietnamese",
753
- "vi-VN": "Vietnamese (Vietnam)",
754
- "vo": "Volap\u00fck",
755
- "vo-001": "Volap\u00fck (World)",
756
- "vun": "Vunjo",
757
- "vun-TZ": "Vunjo (Tanzania)",
758
- "wae": "Walser",
759
- "wae-CH": "Walser (Switzerland)",
760
- "wo": "Wolof",
761
- "wo-SN": "Wolof (Senegal)",
762
- "xh": "Xhosa",
763
- "xh-ZA": "Xhosa (South Africa)",
764
- "xog": "Soga",
765
- "xog-UG": "Soga (Uganda)",
766
- "yav": "Yangben",
767
- "yav-CM": "Yangben (Cameroon)",
768
- "yi": "Yiddish",
769
- "yi-001": "Yiddish (World)",
770
- "yo": "Yoruba",
771
- "yo-BJ": "Yoruba (Benin)",
772
- "yo-NG": "Yoruba (Nigeria)",
773
- "yue": "Cantonese",
774
- "yue-Hans": "Cantonese (Simplified)",
775
- "yue-Hans-CN": "Cantonese (Simplified, China)",
776
- "yue-Hant": "Cantonese (Traditional)",
777
- "yue-Hant-HK": "Cantonese (Traditional, Hong Kong SAR China)",
778
- "zgh": "Standard Moroccan Tamazight",
779
- "zgh-MA": "Standard Moroccan Tamazight (Morocco)",
780
- "zh": "Chinese",
781
- "zh-Hans": "Chinese (Simplified)",
782
- "zh-Hans-CN": "Chinese (Simplified, China)",
783
- "zh-Hans-HK": "Chinese (Simplified, Hong Kong SAR China)",
784
- "zh-Hans-MO": "Chinese (Simplified, Macao SAR China)",
785
- "zh-Hans-SG": "Chinese (Simplified, Singapore)",
786
- "zh-Hant": "Chinese (Traditional)",
787
- "zh-Hant-HK": "Chinese (Traditional, Hong Kong SAR China)",
788
- "zh-Hant-MO": "Chinese (Traditional, Macao SAR China)",
789
- "zh-Hant-TW": "Chinese (Traditional, Taiwan)",
790
- "zu": "Zulu",
791
- "zu-ZA": "Zulu (South Africa)"
792
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
licenses.py CHANGED
@@ -1,11 +1,7 @@
1
- """
2
- License objects.
3
- """
4
-
5
- import json
6
  from dataclasses import dataclass
7
- from types import SimpleNamespace
8
  from typing import Dict, Optional
 
 
9
 
10
 
11
  @dataclass
@@ -55,11 +51,6 @@ class CustomLicense(License):
55
  )
56
 
57
 
58
- def _get_variable_name(k: str) -> str:
59
-
60
- return k.replace("-", "_").upper().replace(".", "p").replace("+", "plus")
61
-
62
-
63
  _GENIA_PROJECT_LICENSE_TEXT = """
64
  GENIA Project License for Annotated Corpora
65
 
@@ -272,6 +263,11 @@ PublicDomainMark_1p0 = CustomLicense(
272
  )
273
 
274
 
 
 
 
 
 
275
  def load_json_licenses() -> Dict[str, str]:
276
  """
277
  Load all licenses from JSON file.
@@ -280,12 +276,7 @@ def load_json_licenses() -> Dict[str, str]:
280
 
281
  # shamelessly compied from:
282
  # https://github.com/huggingface/datasets/blob/master/src/datasets/utils/metadata.py
283
- licenses = {
284
- _get_variable_name(k): v
285
- for k, v in json.loads(
286
- open("licenses.json", "r").read()
287
- ).items()
288
- }
289
 
290
  licenses["ZERO_BSD"] = licenses.pop("0BSD")
291
 
 
 
 
 
 
 
1
  from dataclasses import dataclass
 
2
  from typing import Dict, Optional
3
+ from types import SimpleNamespace
4
+ from .licenses_data import LICENSES_DATA
5
 
6
 
7
  @dataclass
 
51
  )
52
 
53
 
 
 
 
 
 
54
  _GENIA_PROJECT_LICENSE_TEXT = """
55
  GENIA Project License for Annotated Corpora
56
 
 
263
  )
264
 
265
 
266
+ def _get_variable_name(k: str) -> str:
267
+
268
+ return k.replace("-", "_").upper().replace(".", "p").replace("+", "plus")
269
+
270
+
271
  def load_json_licenses() -> Dict[str, str]:
272
  """
273
  Load all licenses from JSON file.
 
276
 
277
  # shamelessly compied from:
278
  # https://github.com/huggingface/datasets/blob/master/src/datasets/utils/metadata.py
279
+ licenses = {_get_variable_name(k): v for k, v in LICENSES_DATA.items()}
 
 
 
 
 
280
 
281
  licenses["ZERO_BSD"] = licenses.pop("0BSD")
282
 
licenses.json → licenses_data.py RENAMED
@@ -1,4 +1,4 @@
1
- {
2
  "other": "Other license",
3
  "unknown": "License information unavailable",
4
  "0bsd": "BSD Zero Clause License",
@@ -47,12 +47,12 @@
47
  "blueoak-1.0.0": "Blue Oak Model License 1.0.0",
48
  "borceux": "Borceux license",
49
  "bsd-1-clause": "BSD 1-Clause License",
50
- "bsd-2-clause": "BSD 2-Clause \"Simplified\" License",
51
  "bsd-2-clause-freebsd": "BSD 2-Clause FreeBSD License",
52
  "bsd-2-clause-netbsd": "BSD 2-Clause NetBSD License",
53
  "bsd-2-clause-patent": "BSD-2-Clause Plus Patent License",
54
  "bsd-2-clause-views": "BSD 2-Clause with views sentence",
55
- "bsd-3-clause": "BSD 3-Clause \"New\" or \"Revised\" License",
56
  "bsd-3-clause-attribution": "BSD with attribution",
57
  "bsd-3-clause-clear": "BSD 3-Clause Clear License",
58
  "bsd-3-clause-lbnl": "Lawrence Berkeley National Labs BSD variant license",
@@ -60,7 +60,7 @@
60
  "bsd-3-clause-no-nuclear-license-2014": "BSD 3-Clause No Nuclear License 2014",
61
  "bsd-3-clause-no-nuclear-warranty": "BSD 3-Clause No Nuclear Warranty",
62
  "bsd-3-clause-open-mpi": "BSD 3-Clause Open MPI variant",
63
- "bsd-4-clause": "BSD 4-Clause \"Original\" or \"Old\" License",
64
  "bsd-4-clause-uc": "BSD-4-Clause (University of California-Specific)",
65
  "bsd-protection": "BSD Protection License",
66
  "bsd-source-code": "BSD Source Code Attribution",
@@ -448,5 +448,5 @@
448
  "zlib-acknowledgement": "zlib/libpng License with Acknowledgement",
449
  "zpl-1.1": "Zope Public License 1.1",
450
  "zpl-2.0": "Zope Public License 2.0",
451
- "zpl-2.1": "Zope Public License 2.1"
452
  }
 
1
+ LICENSES_DATA = {
2
  "other": "Other license",
3
  "unknown": "License information unavailable",
4
  "0bsd": "BSD Zero Clause License",
 
47
  "blueoak-1.0.0": "Blue Oak Model License 1.0.0",
48
  "borceux": "Borceux license",
49
  "bsd-1-clause": "BSD 1-Clause License",
50
+ "bsd-2-clause": 'BSD 2-Clause "Simplified" License',
51
  "bsd-2-clause-freebsd": "BSD 2-Clause FreeBSD License",
52
  "bsd-2-clause-netbsd": "BSD 2-Clause NetBSD License",
53
  "bsd-2-clause-patent": "BSD-2-Clause Plus Patent License",
54
  "bsd-2-clause-views": "BSD 2-Clause with views sentence",
55
+ "bsd-3-clause": 'BSD 3-Clause "New" or "Revised" License',
56
  "bsd-3-clause-attribution": "BSD with attribution",
57
  "bsd-3-clause-clear": "BSD 3-Clause Clear License",
58
  "bsd-3-clause-lbnl": "Lawrence Berkeley National Labs BSD variant license",
 
60
  "bsd-3-clause-no-nuclear-license-2014": "BSD 3-Clause No Nuclear License 2014",
61
  "bsd-3-clause-no-nuclear-warranty": "BSD 3-Clause No Nuclear Warranty",
62
  "bsd-3-clause-open-mpi": "BSD 3-Clause Open MPI variant",
63
+ "bsd-4-clause": 'BSD 4-Clause "Original" or "Old" License',
64
  "bsd-4-clause-uc": "BSD-4-Clause (University of California-Specific)",
65
  "bsd-protection": "BSD Protection License",
66
  "bsd-source-code": "BSD Source Code Attribution",
 
448
  "zlib-acknowledgement": "zlib/libpng License with Acknowledgement",
449
  "zpl-1.1": "Zope Public License 1.1",
450
  "zpl-2.0": "Zope Public License 2.0",
451
+ "zpl-2.1": "Zope Public License 2.1",
452
  }
scitail.py CHANGED
@@ -22,16 +22,17 @@ the annotation of such premise-hypothesis pair as supports (entails) or not (neu
22
  to create the SciTail dataset. The dataset contains 27,026 examples with 10,101 examples with
23
  entails label and 16,925 examples with neutral label.
24
  """
25
- from dataclasses import dataclass
26
  import os
27
 
28
  import datasets
29
  import pandas as pd
30
 
31
- from bigbiohub import entailment_features
32
- from bigbiohub import BigBioConfig
33
- from bigbiohub import Lang, Tasks
34
- from bigbiohub import Licenses
 
 
35
 
36
 
37
  _LANGUAGES = [Lang.EN]
 
22
  to create the SciTail dataset. The dataset contains 27,026 examples with 10,101 examples with
23
  entails label and 16,925 examples with neutral label.
24
  """
 
25
  import os
26
 
27
  import datasets
28
  import pandas as pd
29
 
30
+ from .licenses_data import LICENSES_DATA
31
+ from .bigbiohub import pairs_features
32
+ from .bigbiohub import BigBioConfig
33
+ from .bigbiohub import Lang
34
+ from .licenses import Licenses
35
+ from .bigbiohub import Tasks
36
 
37
 
38
  _LANGUAGES = [Lang.EN]