sileod commited on
Commit
ee40c96
·
verified ·
1 Parent(s): 392d312

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +45 -502
README.md CHANGED
@@ -14,547 +14,86 @@ tags:
14
  - procedural
15
  - synthetic
16
  configs:
17
- - config_name: business_document_extraction
18
  data_files:
19
  - split: train
20
- path: business_document_extraction/train-*
21
  - split: validation
22
- path: business_document_extraction/validation-*
23
  - split: test
24
- path: business_document_extraction/test-*
25
- - config_name: conditional_list_extraction
26
  data_files:
27
  - split: train
28
- path: conditional_list_extraction/train-*
29
  - split: validation
30
- path: conditional_list_extraction/validation-*
31
  - split: test
32
- path: conditional_list_extraction/test-*
33
- - config_name: date_range_extraction
34
  data_files:
35
  - split: train
36
- path: date_range_extraction/train-*
37
  - split: validation
38
- path: date_range_extraction/validation-*
39
  - split: test
40
- path: date_range_extraction/test-*
41
- - config_name: html_extraction
42
  data_files:
43
  - split: train
44
- path: html_extraction/train-*
45
  - split: validation
46
- path: html_extraction/validation-*
47
  - split: test
48
- path: html_extraction/test-*
49
- - config_name: log_query_extraction
50
  data_files:
51
  - split: train
52
- path: log_query_extraction/train-*
53
  - split: validation
54
- path: log_query_extraction/validation-*
55
  - split: test
56
- path: log_query_extraction/test-*
57
- - config_name: nested_structure_extraction
58
  data_files:
59
  - split: train
60
- path: nested_structure_extraction/train-*
61
  - split: validation
62
- path: nested_structure_extraction/validation-*
63
  - split: test
64
- path: nested_structure_extraction/test-*
65
- - config_name: record_field_extraction
66
  data_files:
67
  - split: train
68
- path: record_field_extraction/train-*
69
  - split: validation
70
- path: record_field_extraction/validation-*
71
  - split: test
72
- path: record_field_extraction/test-*
73
- - config_name: spec_match_extraction
74
  data_files:
75
  - split: train
76
- path: spec_match_extraction/train-*
77
  - split: validation
78
- path: spec_match_extraction/validation-*
79
  - split: test
80
- path: spec_match_extraction/test-*
81
- - config_name: state_update_extraction
82
  data_files:
83
  - split: train
84
- path: state_update_extraction/train-*
85
  - split: validation
86
- path: state_update_extraction/validation-*
87
  - split: test
88
- path: state_update_extraction/test-*
89
- - config_name: typed_mention_extraction
90
  data_files:
91
  - split: train
92
- path: typed_mention_extraction/train-*
93
  - split: validation
94
- path: typed_mention_extraction/validation-*
95
  - split: test
96
- path: typed_mention_extraction/test-*
97
- dataset_info:
98
- - config_name: business_document_extraction
99
- features:
100
- - name: id
101
- dtype: string
102
- - name: source
103
- dtype: string
104
- - name: split
105
- dtype: string
106
- - name: state
107
- dtype: string
108
- - name: fields
109
- list:
110
- - name: name
111
- dtype: string
112
- - name: type
113
- dtype: string
114
- - name: instruction
115
- dtype: string
116
- - name: answers
117
- list:
118
- - name: 'null'
119
- dtype: bool
120
- - name: values
121
- list:
122
- - name: text
123
- dtype: string
124
- - name: start
125
- dtype: int32
126
- - name: end
127
- dtype: int32
128
- - name: metadata
129
- dtype: string
130
- - name: level
131
- dtype: int32
132
- splits:
133
- - name: train
134
- num_bytes: 16359203
135
- num_examples: 10000
136
- - name: validation
137
- num_bytes: 818171
138
- num_examples: 500
139
- - name: test
140
- num_bytes: 817144
141
- num_examples: 500
142
- download_size: 8320458
143
- dataset_size: 17994518
144
- - config_name: conditional_list_extraction
145
- features:
146
- - name: id
147
- dtype: string
148
- - name: source
149
- dtype: string
150
- - name: split
151
- dtype: string
152
- - name: state
153
- dtype: string
154
- - name: fields
155
- list:
156
- - name: name
157
- dtype: string
158
- - name: type
159
- dtype: string
160
- - name: instruction
161
- dtype: string
162
- - name: answers
163
- list:
164
- - name: 'null'
165
- dtype: bool
166
- - name: values
167
- list:
168
- - name: text
169
- dtype: string
170
- - name: start
171
- dtype: int32
172
- - name: end
173
- dtype: int32
174
- - name: metadata
175
- dtype: string
176
- - name: level
177
- dtype: int32
178
- splits:
179
- - name: train
180
- num_bytes: 13499820
181
- num_examples: 10000
182
- - name: validation
183
- num_bytes: 668985
184
- num_examples: 500
185
- - name: test
186
- num_bytes: 688874
187
- num_examples: 500
188
- download_size: 7759770
189
- dataset_size: 14857679
190
- - config_name: date_range_extraction
191
- features:
192
- - name: id
193
- dtype: string
194
- - name: source
195
- dtype: string
196
- - name: split
197
- dtype: string
198
- - name: state
199
- dtype: string
200
- - name: fields
201
- list:
202
- - name: name
203
- dtype: string
204
- - name: type
205
- dtype: string
206
- - name: instruction
207
- dtype: string
208
- - name: answers
209
- list:
210
- - name: 'null'
211
- dtype: bool
212
- - name: values
213
- list:
214
- - name: text
215
- dtype: string
216
- - name: start
217
- dtype: int32
218
- - name: end
219
- dtype: int32
220
- - name: metadata
221
- dtype: string
222
- - name: level
223
- dtype: int32
224
- splits:
225
- - name: train
226
- num_bytes: 18538139
227
- num_examples: 10000
228
- - name: validation
229
- num_bytes: 952046
230
- num_examples: 500
231
- - name: test
232
- num_bytes: 918981
233
- num_examples: 500
234
- download_size: 9822763
235
- dataset_size: 20409166
236
- - config_name: html_extraction
237
- features:
238
- - name: id
239
- dtype: string
240
- - name: source
241
- dtype: string
242
- - name: split
243
- dtype: string
244
- - name: state
245
- dtype: string
246
- - name: fields
247
- list:
248
- - name: name
249
- dtype: string
250
- - name: type
251
- dtype: string
252
- - name: instruction
253
- dtype: string
254
- - name: answers
255
- list:
256
- - name: 'null'
257
- dtype: bool
258
- - name: values
259
- list:
260
- - name: text
261
- dtype: string
262
- - name: start
263
- dtype: int32
264
- - name: end
265
- dtype: int32
266
- - name: metadata
267
- dtype: string
268
- - name: level
269
- dtype: int32
270
- splits:
271
- - name: train
272
- num_bytes: 25944175
273
- num_examples: 10000
274
- - name: validation
275
- num_bytes: 1300906
276
- num_examples: 500
277
- - name: test
278
- num_bytes: 1276293
279
- num_examples: 500
280
- download_size: 15178233
281
- dataset_size: 28521374
282
- - config_name: log_query_extraction
283
- features:
284
- - name: id
285
- dtype: string
286
- - name: source
287
- dtype: string
288
- - name: split
289
- dtype: string
290
- - name: state
291
- dtype: string
292
- - name: fields
293
- list:
294
- - name: name
295
- dtype: string
296
- - name: type
297
- dtype: string
298
- - name: instruction
299
- dtype: string
300
- - name: answers
301
- list:
302
- - name: 'null'
303
- dtype: bool
304
- - name: values
305
- list:
306
- - name: text
307
- dtype: string
308
- - name: start
309
- dtype: int32
310
- - name: end
311
- dtype: int32
312
- - name: metadata
313
- dtype: string
314
- - name: level
315
- dtype: int32
316
- splits:
317
- - name: train
318
- num_bytes: 19672746
319
- num_examples: 10000
320
- - name: validation
321
- num_bytes: 970744
322
- num_examples: 500
323
- - name: test
324
- num_bytes: 984359
325
- num_examples: 500
326
- download_size: 10270020
327
- dataset_size: 21627849
328
- - config_name: nested_structure_extraction
329
- features:
330
- - name: id
331
- dtype: string
332
- - name: source
333
- dtype: string
334
- - name: split
335
- dtype: string
336
- - name: state
337
- dtype: string
338
- - name: fields
339
- list:
340
- - name: name
341
- dtype: string
342
- - name: type
343
- dtype: string
344
- - name: instruction
345
- dtype: string
346
- - name: answers
347
- list:
348
- - name: 'null'
349
- dtype: bool
350
- - name: values
351
- list:
352
- - name: text
353
- dtype: string
354
- - name: start
355
- dtype: int32
356
- - name: end
357
- dtype: int32
358
- - name: metadata
359
- dtype: string
360
- - name: level
361
- dtype: int32
362
- splits:
363
- - name: train
364
- num_bytes: 24283302
365
- num_examples: 10000
366
- - name: validation
367
- num_bytes: 1206511
368
- num_examples: 500
369
- - name: test
370
- num_bytes: 1244639
371
- num_examples: 500
372
- download_size: 12703477
373
- dataset_size: 26734452
374
- - config_name: record_field_extraction
375
- features:
376
- - name: id
377
- dtype: string
378
- - name: source
379
- dtype: string
380
- - name: split
381
- dtype: string
382
- - name: state
383
- dtype: string
384
- - name: fields
385
- list:
386
- - name: name
387
- dtype: string
388
- - name: type
389
- dtype: string
390
- - name: instruction
391
- dtype: string
392
- - name: answers
393
- list:
394
- - name: 'null'
395
- dtype: bool
396
- - name: values
397
- list:
398
- - name: text
399
- dtype: string
400
- - name: start
401
- dtype: int32
402
- - name: end
403
- dtype: int32
404
- - name: metadata
405
- dtype: string
406
- - name: level
407
- dtype: int32
408
- splits:
409
- - name: train
410
- num_bytes: 9572177
411
- num_examples: 10000
412
- - name: validation
413
- num_bytes: 498310
414
- num_examples: 500
415
- - name: test
416
- num_bytes: 480353
417
- num_examples: 500
418
- download_size: 5400923
419
- dataset_size: 10550840
420
- - config_name: spec_match_extraction
421
- features:
422
- - name: id
423
- dtype: string
424
- - name: source
425
- dtype: string
426
- - name: split
427
- dtype: string
428
- - name: state
429
- dtype: string
430
- - name: fields
431
- list:
432
- - name: name
433
- dtype: string
434
- - name: type
435
- dtype: string
436
- - name: instruction
437
- dtype: string
438
- - name: answers
439
- list:
440
- - name: 'null'
441
- dtype: bool
442
- - name: values
443
- list:
444
- - name: text
445
- dtype: string
446
- - name: start
447
- dtype: int32
448
- - name: end
449
- dtype: int32
450
- - name: metadata
451
- dtype: string
452
- - name: level
453
- dtype: int32
454
- splits:
455
- - name: train
456
- num_bytes: 29666535
457
- num_examples: 10000
458
- - name: validation
459
- num_bytes: 1499917
460
- num_examples: 500
461
- - name: test
462
- num_bytes: 1465228
463
- num_examples: 500
464
- download_size: 15276721
465
- dataset_size: 32631680
466
- - config_name: state_update_extraction
467
- features:
468
- - name: id
469
- dtype: string
470
- - name: source
471
- dtype: string
472
- - name: split
473
- dtype: string
474
- - name: state
475
- dtype: string
476
- - name: fields
477
- list:
478
- - name: name
479
- dtype: string
480
- - name: type
481
- dtype: string
482
- - name: instruction
483
- dtype: string
484
- - name: answers
485
- list:
486
- - name: 'null'
487
- dtype: bool
488
- - name: values
489
- list:
490
- - name: text
491
- dtype: string
492
- - name: start
493
- dtype: int32
494
- - name: end
495
- dtype: int32
496
- - name: metadata
497
- dtype: string
498
- - name: level
499
- dtype: int32
500
- splits:
501
- - name: train
502
- num_bytes: 12818851
503
- num_examples: 10000
504
- - name: validation
505
- num_bytes: 622506
506
- num_examples: 500
507
- - name: test
508
- num_bytes: 640339
509
- num_examples: 500
510
- download_size: 7026141
511
- dataset_size: 14081696
512
- - config_name: typed_mention_extraction
513
- features:
514
- - name: id
515
- dtype: string
516
- - name: source
517
- dtype: string
518
- - name: split
519
- dtype: string
520
- - name: state
521
- dtype: string
522
- - name: fields
523
- list:
524
- - name: name
525
- dtype: string
526
- - name: type
527
- dtype: string
528
- - name: instruction
529
- dtype: string
530
- - name: answers
531
- list:
532
- - name: 'null'
533
- dtype: bool
534
- - name: values
535
- list:
536
- - name: text
537
- dtype: string
538
- - name: start
539
- dtype: int32
540
- - name: end
541
- dtype: int32
542
- - name: metadata
543
- dtype: string
544
- - name: level
545
- dtype: int32
546
- splits:
547
- - name: train
548
- num_bytes: 10837028
549
- num_examples: 10000
550
- - name: validation
551
- num_bytes: 548523
552
- num_examples: 500
553
- - name: test
554
- num_bytes: 552408
555
- num_examples: 500
556
- download_size: 7532131
557
- dataset_size: 11937959
558
  ---
559
 
560
  # procedural-extraction
@@ -566,7 +105,7 @@ so spans are exact and labels noise-free (each generator samples a latent struct
566
  a merged configuration tree or a DOM, and a solver computes the answer; independent readers of the rendered
567
  texts recompute every answer in reasoning-core's tests); nulls are earned (the text mentions a negated, proposed, former or
568
  other entity's value, not nothing). The tasks are generated by
569
- [reasoning-core](https://github.com/sileod/reasoning-core) (commit `6a3e925`, see
570
  [provenance.json](provenance.json)) and are a procedural component of the `extraction` config of
571
  [tasksource-jev-typed-decisions](https://huggingface.co/datasets/tasksource/tasksource-jev-typed-decisions).
572
 
@@ -580,6 +119,8 @@ other entity's value, not nothing). The tasks are generated by
580
  | `business_document_extraction` | The value in force on a date in an invoice, purchase order, contract or insurance policy: numbered amendments override printed values and each other, dated windows, schedule references that chain, near-miss keys (subtotal vs total) |
581
  | `nested_structure_extraction` | Path, any-depth and predicate-filter queries on a JSON, YAML or XML configuration whose override layers deep-merge or replace whole blocks |
582
  | `html_extraction` | Fields of the main item in raw HTML: scope (nested and related item cards), visibility (hidden, template, struck prices), dt/dd, label-for, attributes and spec tables with rowspan/colspan |
 
 
583
 
584
  Levels 0 to 4 are drawn uniformly; `level` is a column. Mean per-field score by level (0 / 1 / 2 / 3 / 4):
585
 
@@ -593,6 +134,8 @@ Levels 0 to 4 are drawn uniformly; `level` is a column. Mean per-field score by
593
  | `business_document_extraction` | 10,000 | 500 | 500 | 0.90 / 0.91 / 0.90 / 0.84 / 0.80 | 0.82 / 0.53 / 0.56 / 0.44 / 0.43 |
594
  | `nested_structure_extraction` | 10,000 | 500 | 500 | 0.93 / 0.88 / 0.94 / 0.86 / 0.86 | 0.18 / 0.20 / 0.20 / 0.20 / 0.18 |
595
  | `html_extraction` | 10,000 | 500 | 500 | 0.98 / 0.96 / 0.94 / 0.98 / 0.90 | 0.35 / 0.31 / 0.30 / 0.27 / 0.39 |
 
 
596
 
597
  ## Schema
598
 
 
14
  - procedural
15
  - synthetic
16
  configs:
17
+ - config_name: record_field_extraction
18
  data_files:
19
  - split: train
20
+ path: record_field_extraction/train-*.parquet
21
  - split: validation
22
+ path: record_field_extraction/validation-*.parquet
23
  - split: test
24
+ path: record_field_extraction/test-*.parquet
25
+ - config_name: state_update_extraction
26
  data_files:
27
  - split: train
28
+ path: state_update_extraction/train-*.parquet
29
  - split: validation
30
+ path: state_update_extraction/validation-*.parquet
31
  - split: test
32
+ path: state_update_extraction/test-*.parquet
33
+ - config_name: conditional_list_extraction
34
  data_files:
35
  - split: train
36
+ path: conditional_list_extraction/train-*.parquet
37
  - split: validation
38
+ path: conditional_list_extraction/validation-*.parquet
39
  - split: test
40
+ path: conditional_list_extraction/test-*.parquet
41
+ - config_name: log_query_extraction
42
  data_files:
43
  - split: train
44
+ path: log_query_extraction/train-*.parquet
45
  - split: validation
46
+ path: log_query_extraction/validation-*.parquet
47
  - split: test
48
+ path: log_query_extraction/test-*.parquet
49
+ - config_name: typed_mention_extraction
50
  data_files:
51
  - split: train
52
+ path: typed_mention_extraction/train-*.parquet
53
  - split: validation
54
+ path: typed_mention_extraction/validation-*.parquet
55
  - split: test
56
+ path: typed_mention_extraction/test-*.parquet
57
+ - config_name: business_document_extraction
58
  data_files:
59
  - split: train
60
+ path: business_document_extraction/train-*.parquet
61
  - split: validation
62
+ path: business_document_extraction/validation-*.parquet
63
  - split: test
64
+ path: business_document_extraction/test-*.parquet
65
+ - config_name: nested_structure_extraction
66
  data_files:
67
  - split: train
68
+ path: nested_structure_extraction/train-*.parquet
69
  - split: validation
70
+ path: nested_structure_extraction/validation-*.parquet
71
  - split: test
72
+ path: nested_structure_extraction/test-*.parquet
73
+ - config_name: html_extraction
74
  data_files:
75
  - split: train
76
+ path: html_extraction/train-*.parquet
77
  - split: validation
78
+ path: html_extraction/validation-*.parquet
79
  - split: test
80
+ path: html_extraction/test-*.parquet
81
+ - config_name: date_range_extraction
82
  data_files:
83
  - split: train
84
+ path: date_range_extraction/train-*.parquet
85
  - split: validation
86
+ path: date_range_extraction/validation-*.parquet
87
  - split: test
88
+ path: date_range_extraction/test-*.parquet
89
+ - config_name: spec_match_extraction
90
  data_files:
91
  - split: train
92
+ path: spec_match_extraction/train-*.parquet
93
  - split: validation
94
+ path: spec_match_extraction/validation-*.parquet
95
  - split: test
96
+ path: spec_match_extraction/test-*.parquet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  ---
98
 
99
  # procedural-extraction
 
105
  a merged configuration tree or a DOM, and a solver computes the answer; independent readers of the rendered
106
  texts recompute every answer in reasoning-core's tests); nulls are earned (the text mentions a negated, proposed, former or
107
  other entity's value, not nothing). The tasks are generated by
108
+ [reasoning-core](https://github.com/sileod/reasoning-core) (commit `8676e4e`, see
109
  [provenance.json](provenance.json)) and are a procedural component of the `extraction` config of
110
  [tasksource-jev-typed-decisions](https://huggingface.co/datasets/tasksource/tasksource-jev-typed-decisions).
111
 
 
119
  | `business_document_extraction` | The value in force on a date in an invoice, purchase order, contract or insurance policy: numbered amendments override printed values and each other, dated windows, schedule references that chain, near-miss keys (subtotal vs total) |
120
  | `nested_structure_extraction` | Path, any-depth and predicate-filter queries on a JSON, YAML or XML configuration whose override layers deep-merge or replace whole blocks |
121
  | `html_extraction` | Fields of the main item in raw HTML: scope (nested and related item cards), visibility (hidden, template, struck prices), dt/dd, label-for, attributes and spec tables with rowspan/colspan |
122
+ | `date_range_extraction` | Every invoice, shipment, contract or ticket whose date of one role (issued vs due) falls in a range, before/after a date, in a month or on a weekday, or the earliest/latest; dates ISO, worded, day/month or month/day numeric under a stated section convention, year-less under a stated year, or relative to another record |
123
+ | `spec_match_extraction` | Every laptop, e-bike or monitor meeting conjunctive spec requirements, or the best such one; specs and thresholds in mixed exact units (g/kg, GB/TB, min/h, Wh/kWh, in/cm) and a stated number convention (1.234,5), near-miss products failing one requirement, unstated specs not qualifying |
124
 
125
  Levels 0 to 4 are drawn uniformly; `level` is a column. Mean per-field score by level (0 / 1 / 2 / 3 / 4):
126
 
 
134
  | `business_document_extraction` | 10,000 | 500 | 500 | 0.90 / 0.91 / 0.90 / 0.84 / 0.80 | 0.82 / 0.53 / 0.56 / 0.44 / 0.43 |
135
  | `nested_structure_extraction` | 10,000 | 500 | 500 | 0.93 / 0.88 / 0.94 / 0.86 / 0.86 | 0.18 / 0.20 / 0.20 / 0.20 / 0.18 |
136
  | `html_extraction` | 10,000 | 500 | 500 | 0.98 / 0.96 / 0.94 / 0.98 / 0.90 | 0.35 / 0.31 / 0.30 / 0.27 / 0.39 |
137
+ | `date_range_extraction` | 10,000 | 500 | 500 | 0.75 / 0.62 / 0.60 / 0.44 / 0.44 | 0.16 / 0.03 / 0.03 / 0.00 / 0.02 |
138
+ | `spec_match_extraction` | 10,000 | 500 | 500 | 0.81 / 0.53 / 0.27 / 0.25 / 0.17 | 0.11 / 0.08 / 0.04 / 0.03 / 0.04 |
139
 
140
  ## Schema
141