apmoore1 commited on
Commit
84d18f7
·
verified ·
1 Parent(s): 8781b35

Dataset structure

Browse files
Files changed (1) hide show
  1. README.md +603 -0
README.md CHANGED
@@ -36,7 +36,610 @@ This dataset can be used to train, in a semi-supervised manner, a POS tagger or
36
 
37
  ## Dataset Structure
38
 
 
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
  ## Dataset Card Authors
42
 
 
36
 
37
  ## Dataset Structure
38
 
39
+ Example Wikipedia page, a lot of the data has been removed, e.g. the text is only the first 15 or so words. Each sample in the dataset is one Wikipedia page. The full schema is shown below this example.
40
 
41
+ ``` json
42
+ {
43
+ "document_id": "3021080",
44
+ "wikidata_id": "Q921355",
45
+ "title": "Erik Adolf von Willebrand",
46
+ "text": "Erik Adolf von Willebrand (1 February 1870 \u2013 12 September 1949) was a Finnish physician ...",
47
+ "ascii_text": "Erik Adolf von Willebrand (1 February 1870 - 12 September 1949) was a Finnish physician ...",
48
+ "language": "en",
49
+ "quality": "good",
50
+ "ores_articletopics": {
51
+ "Geography.Regions.Europe.Northern Europe": 0.584,
52
+ "Culture.Biography.Biography*": 0.983,
53
+ "Geography.Regions.Europe.Europe*": 0.857,
54
+ "STEM.STEM*": 0.983
55
+ },
56
+ "categories": [
57
+ "CS1 Swedish-language sources (sv)",
58
+ "CS1 Finnish-language sources (fi)",
59
+ "CS1: long volume value",
60
+ "Good articles",
61
+ "Articles with short description",
62
+ "Short description is different from Wikidata",
63
+ "Use dmy dates from July 2018",
64
+ "Articles with hCards",
65
+ "CS1 German-language sources (de)",
66
+ "CS1 errors: missing periodical",
67
+ "CS1 Dutch-language sources (nl)",
68
+ "AC with 0 elements",
69
+ "1870 births",
70
+ "1949 deaths",
71
+ "Academics of the University of Helsinki",
72
+ "Finnish hematologists",
73
+ "Finnish people of German descent",
74
+ "People from Vaasa",
75
+ "Swedish-speaking Finns",
76
+ "University of Helsinki alumni",
77
+ "20th-century Finnish physicians"
78
+ ],
79
+ "popularity_score": 8.327128616319467e-08,
80
+ "timestamp": "2021-12-26T18:49:13Z",
81
+ "tokens": [
82
+ "Erik",
83
+ "Adolf",
84
+ "von",
85
+ "Willebrand",
86
+ "(",
87
+ "1",
88
+ "February",
89
+ "1870",
90
+ "-",
91
+ "12",
92
+ "September",
93
+ "1949",
94
+ ")",
95
+ "was",
96
+ "a",
97
+ "Finnish",
98
+ "physician",
99
+ "who"
100
+ ],
101
+ "lemmas": [
102
+ "erik",
103
+ "adolf",
104
+ "von",
105
+ "willebrand",
106
+ "PUNC",
107
+ "1",
108
+ "february",
109
+ "1870",
110
+ "PUNC",
111
+ "12",
112
+ "september",
113
+ "1949",
114
+ "PUNC",
115
+ "be",
116
+ "a"
117
+ ],
118
+ "pos": [
119
+ [
120
+ [
121
+ "NP1",
122
+ 100
123
+ ]
124
+ ],
125
+ [
126
+ [
127
+ "NP1",
128
+ 100
129
+ ]
130
+ ],
131
+ [
132
+ [
133
+ "NP1",
134
+ 100
135
+ ]
136
+ ],
137
+ [
138
+ [
139
+ "NP1",
140
+ 100
141
+ ]
142
+ ],
143
+ [
144
+ [
145
+ "(",
146
+ 100
147
+ ]
148
+ ],
149
+ [
150
+ [
151
+ "MC1",
152
+ 100
153
+ ]
154
+ ],
155
+ [
156
+ [
157
+ "NPM1",
158
+ 100
159
+ ]
160
+ ],
161
+ [
162
+ [
163
+ "MC",
164
+ 100
165
+ ]
166
+ ],
167
+ [
168
+ [
169
+ "-",
170
+ 100
171
+ ]
172
+ ],
173
+ [
174
+ [
175
+ "MC",
176
+ 100
177
+ ]
178
+ ]
179
+ ],
180
+ "usas": [
181
+ [
182
+ {
183
+ "tags": [
184
+ {
185
+ "tag": "Z1",
186
+ "number_positive_markers": 0,
187
+ "number_negative_markers": 0,
188
+ "rarity_marker_1": false,
189
+ "rarity_marker_2": false,
190
+ "female": true,
191
+ "male": true,
192
+ "antecedents": false,
193
+ "neuter": false,
194
+ "idiom": false
195
+ }
196
+ ]
197
+ },
198
+ {
199
+ "tags": [
200
+ {
201
+ "tag": "Z3",
202
+ "number_positive_markers": 0,
203
+ "number_negative_markers": 0,
204
+ "rarity_marker_1": false,
205
+ "rarity_marker_2": false,
206
+ "female": false,
207
+ "male": false,
208
+ "antecedents": true,
209
+ "neuter": false,
210
+ "idiom": false
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ "tags": [
216
+ {
217
+ "tag": "Z1",
218
+ "number_positive_markers": 0,
219
+ "number_negative_markers": 0,
220
+ "rarity_marker_1": false,
221
+ "rarity_marker_2": false,
222
+ "female": false,
223
+ "male": true,
224
+ "antecedents": false,
225
+ "neuter": false,
226
+ "idiom": false
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ "tags": [
232
+ {
233
+ "tag": "Z1",
234
+ "number_positive_markers": 0,
235
+ "number_negative_markers": 0,
236
+ "rarity_marker_1": false,
237
+ "rarity_marker_2": false,
238
+ "female": true,
239
+ "male": true,
240
+ "antecedents": false,
241
+ "neuter": false,
242
+ "idiom": false
243
+ }
244
+ ]
245
+ },
246
+ {
247
+ "tags": [
248
+ {
249
+ "tag": "Z3",
250
+ "number_positive_markers": 0,
251
+ "number_negative_markers": 0,
252
+ "rarity_marker_1": false,
253
+ "rarity_marker_2": false,
254
+ "female": false,
255
+ "male": false,
256
+ "antecedents": true,
257
+ "neuter": false,
258
+ "idiom": false
259
+ }
260
+ ]
261
+ }
262
+ ]
263
+ ],
264
+ "usas_raw": [
265
+ "Z1mf[i2.3.1 Z3c[i2.3.1 Z1m Z1mf[i1.2.1 Z3c[i1.2.1",
266
+ "Z1mf[i2.3.2 Z3c[i2.3.2 Z1mf[i4.3.1 Z3c[i4.3.1 Z1m Z1mf[i1.2.2 Z3c[i1.2.2 Z1mf[i3.2.1 Z3c[i3.2.1"
267
+ ],
268
+ "sentence_boundaries": [
269
+ [
270
+ 0,
271
+ 24
272
+ ],
273
+ [
274
+ 24,
275
+ 36
276
+ ]
277
+ ]
278
+ }
279
+ ```
280
+
281
+ The only keys that are not explained in the schema below are the following:
282
+ * `lemmas` - A list of lemmas one per token.
283
+ * `pos` - These are a list of POS tags, one tag per token. Each tag is made up of a list/tuple of length 2:
284
+ * POS tag, e.g. `NPM1`
285
+ * Confidence - 0-100 confidence of predicting this tag, 100 is very confident 0 is not confident.
286
+ * `usas` - A list of `USASTagGroup`s, one USAS Tag Group per token. A USAS Tag Group is a formatted version of the `usas_raw` output.
287
+ * `usas_raw` - The raw non formatted version of `usas`, one per token.
288
+ * `sentence_boundaries` - A list of tuples, each tuple represents the token boundaries of a sentence. For instance `tokens[sentence_boundaries[0][0]: sentence_boundaries[0][1]]` represents the tokens of the first sentence.
289
+
290
+
291
+ ``` json
292
+ {
293
+ "USASTag": {
294
+ "description": "Represents all of the properties associated with a USAS tag.",
295
+ "properties": {
296
+ "tag": {
297
+ "description": "USAS Tag",
298
+ "examples": [
299
+ "A1.1.1"
300
+ ],
301
+ "title": "USAS Tag",
302
+ "type": "string"
303
+ },
304
+ "number_positive_markers": {
305
+ "default": 0,
306
+ "description": "Number of positive markers.",
307
+ "examples": [
308
+ 0,
309
+ 1,
310
+ 2,
311
+ 3
312
+ ],
313
+ "title": "Positive Markers",
314
+ "type": "integer"
315
+ },
316
+ "number_negative_markers": {
317
+ "default": 0,
318
+ "description": "Number of negative markers.",
319
+ "examples": [
320
+ 0,
321
+ 1,
322
+ 2,
323
+ 3
324
+ ],
325
+ "title": "Negative Markers",
326
+ "type": "integer"
327
+ },
328
+ "rarity_marker_1": {
329
+ "default": false,
330
+ "description": "Rarity marker 1 indicated by %",
331
+ "title": "Rare Marker 1",
332
+ "type": "boolean"
333
+ },
334
+ "rarity_marker_2": {
335
+ "default": false,
336
+ "description": "Rarity marker 2 indicated by @",
337
+ "title": "Rare Marker 2",
338
+ "type": "boolean"
339
+ },
340
+ "female": {
341
+ "default": false,
342
+ "description": "Female",
343
+ "title": "Female",
344
+ "type": "boolean"
345
+ },
346
+ "male": {
347
+ "default": false,
348
+ "description": "Male",
349
+ "title": "Male",
350
+ "type": "boolean"
351
+ },
352
+ "antecedents": {
353
+ "default": false,
354
+ "description": "Potential antecedents of conceptual anaphors (neutral for number)",
355
+ "title": "Antecedents",
356
+ "type": "boolean"
357
+ },
358
+ "neuter": {
359
+ "default": false,
360
+ "description": "Neuter",
361
+ "title": "Neuter",
362
+ "type": "boolean"
363
+ },
364
+ "idiom": {
365
+ "default": false,
366
+ "description": "Is it an idiom",
367
+ "title": "Idiom",
368
+ "type": "boolean"
369
+ }
370
+ },
371
+ "required": [
372
+ "tag"
373
+ ]
374
+ },
375
+ "USASTagGroup": {
376
+ "description": "Represents a grouping of one or more USAS tags that are associated to a token.",
377
+ "properties": {
378
+ "tags": {
379
+ "description": "A grouping of one or more USAS tags whereby if more than one exists then the word is an equal member of all semantic tags/categories",
380
+ "examples": [
381
+ [
382
+ {
383
+ "antecedents": false,
384
+ "female": false,
385
+ "idiom": false,
386
+ "male": false,
387
+ "neuter": false,
388
+ "number_negative_markers": 0,
389
+ "number_positive_markers": 0,
390
+ "rarity_marker_1": false,
391
+ "rarity_marker_2": false,
392
+ "tag": "A1.1.1"
393
+ }
394
+ ],
395
+ [
396
+ {
397
+ "antecedents": false,
398
+ "female": false,
399
+ "idiom": false,
400
+ "male": false,
401
+ "neuter": false,
402
+ "number_negative_markers": 1,
403
+ "number_positive_markers": 0,
404
+ "rarity_marker_1": false,
405
+ "rarity_marker_2": false,
406
+ "tag": "E2"
407
+ },
408
+ {
409
+ "antecedents": false,
410
+ "female": false,
411
+ "idiom": false,
412
+ "male": false,
413
+ "neuter": false,
414
+ "number_negative_markers": 0,
415
+ "number_positive_markers": 1,
416
+ "rarity_marker_1": false,
417
+ "rarity_marker_2": false,
418
+ "tag": "S7.1"
419
+ }
420
+ ]
421
+ ]
422
+ }
423
+ },
424
+ "required": [
425
+ "tags"
426
+ ]
427
+ }
428
+ },
429
+ "properties": {
430
+ "document_id": {
431
+ "description": "ID that uniquely represents that document within the Mosaico Mongo DB",
432
+ "examples": [
433
+ "3021080"
434
+ ],
435
+ "title": "Document ID",
436
+ "type": "string"
437
+ },
438
+ "wikidata_id": {
439
+ "description": "Wikidata ID, every Wikipedia page should one as it is an unique ID that allows you to access it's global unique URL https://www.wikidata.org/entity/ID",
440
+ "examples": [
441
+ "Q921355"
442
+ ],
443
+ "title": "Wikidata ID",
444
+ "type": "string"
445
+ },
446
+ "title": {
447
+ "description": "Wikipedia page title",
448
+ "examples": [
449
+ "Erik Adolf von Willebrand"
450
+ ],
451
+ "title": "Title",
452
+ "type": "string"
453
+ },
454
+ "text": {
455
+ "description": "The UTF-8 encoded Wikipedia article text",
456
+ "title": "Text",
457
+ "type": "string"
458
+ },
459
+ "ascii_text": {
460
+ "description": "ASCII encoded version of the Wikipedia article text",
461
+ "title": "ASCII Text",
462
+ "type": "string"
463
+ },
464
+ "language": {
465
+ "const": "en",
466
+ "description": "Language of the Wikipedia article",
467
+ "examples": [
468
+ "en"
469
+ ],
470
+ "title": "Language",
471
+ "type": "string"
472
+ },
473
+ "quality": {
474
+ "description": "Quality of the Wikipedia page as determined by the Wikipedia community",
475
+ "enum": [
476
+ "good",
477
+ "featured"
478
+ ],
479
+ "examples": [
480
+ "good",
481
+ "featured"
482
+ ],
483
+ "title": "Quality",
484
+ "type": "string"
485
+ },
486
+ "ores_articletopics": {
487
+ "additionalProperties": {
488
+ "type": "number"
489
+ },
490
+ "description": "High level article topics that are easily searchable and have been predicted by a machine learning model. This will be represented as a dictionary of topic and score whereby the score is between 0-1 where 1 indicates the model is more confident of it's prediction.",
491
+ "examples": [
492
+ {
493
+ "Geography.Regions.Europe.Northern Europe": 0.584
494
+ }
495
+ ],
496
+ "title": "ORES article topics",
497
+ "type": "object"
498
+ },
499
+ "categories": {
500
+ "description": "A noisy list of article topics that are found on the Wikipedia page at the end. To note that the hierarchy of this category system can be found through the SQL database dumps according to this source. The reason these are noisy is that they sometimes contain meta data topics like `CS1 Swedish-language sources (sv)` or `Good articles`.",
501
+ "examples": [
502
+ [
503
+ "CS1 Swedish-language sources (sv)",
504
+ "AC with 0 elements",
505
+ "1870 births",
506
+ "1949 deaths",
507
+ "Academics of the University of Helsinki",
508
+ "Finnish hematologists",
509
+ "Finnish people of German descent",
510
+ "People from Vaasa"
511
+ ]
512
+ ],
513
+ "items": {
514
+ "type": "string"
515
+ },
516
+ "title": "Categories",
517
+ "type": "array"
518
+ },
519
+ "popularity_score": {
520
+ "anyOf": [
521
+ {
522
+ "type": "number"
523
+ },
524
+ {
525
+ "type": "null"
526
+ }
527
+ ],
528
+ "description": "As defined in the cirrus schema, 'A floating point number representing the percentage of page views to this wiki that requests this page. This is only available for content pages.' If the popularity score cannot be validated or found it will have a value of `None`.",
529
+ "examples": [
530
+ 8.327128616319467e-08,
531
+ null
532
+ ],
533
+ "title": "Popularity Score"
534
+ },
535
+ "timestamp": {
536
+ "anyOf": [
537
+ {
538
+ "type": "string"
539
+ },
540
+ {
541
+ "type": "null"
542
+ }
543
+ ],
544
+ "description": "Timestamp of the most recently index/edited version of the page. If the timestamp cannot be found it will have a value of `None`.",
545
+ "examples": [
546
+ "2021-12-26T18:49:13Z",
547
+ null
548
+ ],
549
+ "title": "timestamp"
550
+ },
551
+ "tokens": {
552
+ "items": {
553
+ "type": "string"
554
+ },
555
+ "title": "Tokens",
556
+ "type": "array"
557
+ },
558
+ "lemmas": {
559
+ "items": {
560
+ "type": "string"
561
+ },
562
+ "title": "Lemmas",
563
+ "type": "array"
564
+ },
565
+ "pos": {
566
+ "items": {
567
+ "items": {
568
+ "maxItems": 2,
569
+ "minItems": 2,
570
+ "prefixItems": [
571
+ {
572
+ "type": "string"
573
+ },
574
+ {
575
+ "type": "integer"
576
+ }
577
+ ],
578
+ "type": "array"
579
+ },
580
+ "type": "array"
581
+ },
582
+ "title": "POS",
583
+ "type": "array"
584
+ },
585
+ "usas": {
586
+ "items": {
587
+ "items": {
588
+ "$ref": "#/$defs/USASTagGroup"
589
+ },
590
+ "type": "array"
591
+ },
592
+ "title": "USAS",
593
+ "type": "array"
594
+ },
595
+ "usas_raw": {
596
+ "items": {
597
+ "type": "string"
598
+ },
599
+ "title": "USAS Raw",
600
+ "type": "array"
601
+ },
602
+ "sentence_boundaries": {
603
+ "items": {
604
+ "maxItems": 2,
605
+ "minItems": 2,
606
+ "prefixItems": [
607
+ {
608
+ "type": "integer"
609
+ },
610
+ {
611
+ "type": "integer"
612
+ }
613
+ ],
614
+ "type": "array"
615
+ },
616
+ "title": "Sentence Boundaries",
617
+ "type": "array"
618
+ }
619
+ },
620
+ "required": [
621
+ "document_id",
622
+ "wikidata_id",
623
+ "title",
624
+ "text",
625
+ "ascii_text",
626
+ "language",
627
+ "quality",
628
+ "ores_articletopics",
629
+ "categories",
630
+ "popularity_score",
631
+ "timestamp",
632
+ "tokens",
633
+ "lemmas",
634
+ "pos",
635
+ "usas",
636
+ "usas_raw",
637
+ "sentence_boundaries"
638
+ ],
639
+ "title": "TaggedWikiDataExport",
640
+ "type": "object"
641
+ }
642
+ ```
643
 
644
  ## Dataset Card Authors
645