sileod commited on
Commit
322a73a
·
verified ·
1 Parent(s): 2fdd843

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +74 -201
README.md CHANGED
@@ -1,220 +1,93 @@
1
  ---
2
- dataset_info:
3
- - config_name: conditional_list_extraction
4
- features:
5
- - name: id
6
- dtype: string
7
- - name: source
8
- dtype: string
9
- - name: split
10
- dtype: string
11
- - name: state
12
- dtype: string
13
- - name: fields
14
- list:
15
- - name: name
16
- dtype: string
17
- - name: type
18
- dtype: string
19
- - name: instruction
20
- dtype: string
21
- - name: answers
22
- list:
23
- - name: 'null'
24
- dtype: bool
25
- - name: values
26
- list:
27
- - name: text
28
- dtype: string
29
- - name: start
30
- dtype: int32
31
- - name: end
32
- dtype: int32
33
- - name: metadata
34
- dtype: string
35
- - name: level
36
- dtype: int32
37
- splits:
38
- - name: train
39
- num_bytes: 13433915
40
- num_examples: 10000
41
- - name: validation
42
- num_bytes: 681606
43
- num_examples: 500
44
- - name: test
45
- num_bytes: 656896
46
- num_examples: 500
47
- download_size: 7721164
48
- dataset_size: 14772417
49
- - config_name: log_query_extraction
50
- features:
51
- - name: id
52
- dtype: string
53
- - name: source
54
- dtype: string
55
- - name: split
56
- dtype: string
57
- - name: state
58
- dtype: string
59
- - name: fields
60
- list:
61
- - name: name
62
- dtype: string
63
- - name: type
64
- dtype: string
65
- - name: instruction
66
- dtype: string
67
- - name: answers
68
- list:
69
- - name: 'null'
70
- dtype: bool
71
- - name: values
72
- list:
73
- - name: text
74
- dtype: string
75
- - name: start
76
- dtype: int32
77
- - name: end
78
- dtype: int32
79
- - name: metadata
80
- dtype: string
81
- - name: level
82
- dtype: int32
83
- splits:
84
- - name: train
85
- num_bytes: 19727728
86
- num_examples: 10000
87
- - name: validation
88
- num_bytes: 961990
89
- num_examples: 500
90
- - name: test
91
- num_bytes: 1002711
92
- num_examples: 500
93
- download_size: 10309419
94
- dataset_size: 21692429
95
- - config_name: record_field_extraction
96
- features:
97
- - name: id
98
- dtype: string
99
- - name: source
100
- dtype: string
101
- - name: split
102
- dtype: string
103
- - name: state
104
- dtype: string
105
- - name: fields
106
- list:
107
- - name: name
108
- dtype: string
109
- - name: type
110
- dtype: string
111
- - name: instruction
112
- dtype: string
113
- - name: answers
114
- list:
115
- - name: 'null'
116
- dtype: bool
117
- - name: values
118
- list:
119
- - name: text
120
- dtype: string
121
- - name: start
122
- dtype: int32
123
- - name: end
124
- dtype: int32
125
- - name: metadata
126
- dtype: string
127
- - name: level
128
- dtype: int32
129
- splits:
130
- - name: train
131
- num_bytes: 9442691
132
- num_examples: 10000
133
- - name: validation
134
- num_bytes: 501206
135
- num_examples: 500
136
- - name: test
137
- num_bytes: 469015
138
- num_examples: 500
139
- download_size: 5333845
140
- dataset_size: 10412912
141
- - config_name: state_update_extraction
142
- features:
143
- - name: id
144
- dtype: string
145
- - name: source
146
- dtype: string
147
- - name: split
148
- dtype: string
149
- - name: state
150
- dtype: string
151
- - name: fields
152
- list:
153
- - name: name
154
- dtype: string
155
- - name: type
156
- dtype: string
157
- - name: instruction
158
- dtype: string
159
- - name: answers
160
- list:
161
- - name: 'null'
162
- dtype: bool
163
- - name: values
164
- list:
165
- - name: text
166
- dtype: string
167
- - name: start
168
- dtype: int32
169
- - name: end
170
- dtype: int32
171
- - name: metadata
172
- dtype: string
173
- - name: level
174
- dtype: int32
175
- splits:
176
- - name: train
177
- num_bytes: 12773776
178
- num_examples: 10000
179
- - name: validation
180
- num_bytes: 645531
181
- num_examples: 500
182
- - name: test
183
- num_bytes: 637604
184
- num_examples: 500
185
- download_size: 7015857
186
- dataset_size: 14056911
187
  configs:
188
- - config_name: conditional_list_extraction
189
  data_files:
190
  - split: train
191
- path: conditional_list_extraction/train-*
192
  - split: validation
193
- path: conditional_list_extraction/validation-*
194
  - split: test
195
- path: conditional_list_extraction/test-*
196
- - config_name: log_query_extraction
197
  data_files:
198
  - split: train
199
- path: log_query_extraction/train-*
200
  - split: validation
201
- path: log_query_extraction/validation-*
202
  - split: test
203
- path: log_query_extraction/test-*
204
- - config_name: record_field_extraction
205
  data_files:
206
  - split: train
207
- path: record_field_extraction/train-*
208
  - split: validation
209
- path: record_field_extraction/validation-*
210
  - split: test
211
- path: record_field_extraction/test-*
212
- - config_name: state_update_extraction
213
  data_files:
214
  - split: train
215
- path: state_update_extraction/train-*
216
  - split: validation
217
- path: state_update_extraction/validation-*
218
  - split: test
219
- path: state_update_extraction/test-*
220
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pretty_name: procedural-extraction
3
+ language:
4
+ - en
5
+ license: mit
6
+ task_categories:
7
+ - token-classification
8
+ - question-answering
9
+ tags:
10
+ - tasksource
11
+ - jev
12
+ - extraction
13
+ - clairic
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
  ---
50
+
51
+ # procedural-extraction
52
+
53
+ Procedurally generated extraction requests: one text and several typed fields to fill from it in one pass, as
54
+ extraction models (e.g. Cloudflare's Clairic) are asked. Each field is `text` (one span) or `list` (every
55
+ matching span) and is answered with character spans of the text or null. Answers are computed by construction,
56
+ so spans are exact and labels noise-free; nulls are earned (the text mentions a negated, proposed, former or
57
+ other entity's value, not nothing). The tasks are generated by
58
+ [reasoning-core](https://github.com/sileod/reasoning-core) (commit `38b6189`, see
59
+ [provenance.json](provenance.json)) and are a procedural component of the `extraction` config of
60
+ [tasksource-jev-typed-decisions](https://huggingface.co/datasets/tasksource/tasksource-jev-typed-decisions).
61
+
62
+ | config | what is extracted |
63
+ |---|---|
64
+ | `record_field_extraction` | A person's city, employer, job title, phone, email and birth date, from prose about several people with near-miss names; negated, former, hoped-for and relatives' values as confusers; "same city/company as X" chains |
65
+ | `state_update_extraction` | The value in force (or before the last change) of plan slots, from a timestamped chat of statements, proposals approved/rejected/pending, corrections and undos, out of order from level 2 |
66
+ | `conditional_list_extraction` | Every order id or product meeting conjunctive, negated or numeric conditions after later updates, or the heaviest such order; prose, bullets or a table |
67
+ | `log_query_extraction` | Every request id or user of log lines matching filters on level, exact service (auth vs auth-proxy), status, latency and user, or the latest/slowest match; plain, logfmt or JSON lines |
68
+
69
+ Levels 0 to 4 are drawn uniformly; `level` is a column. Mean per-field score by level (0 / 1 / 2 / 3 / 4):
70
+
71
+ | config | train | validation | test | DeepSeek-v4-flash | GLiNER-large |
72
+ |---|---|---|---|---|---|
73
+ | `record_field_extraction` | 10,000 | 500 | 500 | 1.00 / 0.91 / 0.84 / 0.67 / 0.58 | 0.76 / 0.64 / 0.46 / 0.41 / 0.38 |
74
+ | `state_update_extraction` | 10,000 | 500 | 500 | 0.84 / 0.76 / 0.77 / 0.68 / 0.51 | 0.58 / 0.46 / 0.37 / 0.36 / 0.29 |
75
+ | `conditional_list_extraction` | 10,000 | 500 | 500 | 0.88 / 0.79 / 0.70 / 0.64 / 0.52 | 0.29 / 0.17 / 0.12 / 0.05 / 0.10 |
76
+ | `log_query_extraction` | 10,000 | 500 | 500 | 0.86 / 0.76 / 0.68 / 0.63 / 0.59 | 0.31 / 0.16 / 0.09 / 0.24 / 0.15 |
77
+
78
+ ## Schema
79
+
80
+ `state` (the text), `fields` (`[{name, type, instruction}]`), `answers` (one per field: `{null, values:
81
+ [{text, start, end}]}`, `state[start:end] == text`), `metadata` (JSON: level, state seed), `level`.
82
+
83
+ ## Citation
84
+
85
+ ```bibtex
86
+ @inproceedings{sileo-2024-tasksource,
87
+ title = "tasksource: A Large Collection of {NLP} tasks with a Structured Dataset Preprocessing Framework",
88
+ author = "Sileo, Damien",
89
+ booktitle = "Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)",
90
+ year = "2024",
91
+ url = "https://aclanthology.org/2024.lrec-main.1361",
92
+ }
93
+ ```