hheiden-roots commited on
Commit
87cb0b8
·
verified ·
1 Parent(s): bee2a1c

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +109 -522
README.md CHANGED
@@ -1,524 +1,111 @@
1
  ---
2
- dataset_info:
3
- - config_name: 10-K
4
- features:
5
- - name: table_id
6
- dtype: string
7
- - name: filing_type
8
- dtype: string
9
- - name: cik
10
- dtype: string
11
- - name: filing_year
12
- dtype: string
13
- - name: accession_number
14
- dtype: string
15
- - name: title
16
- dtype: string
17
- - name: n_rows
18
- dtype: int32
19
- - name: n_cols
20
- dtype: int32
21
- - name: n_header_rows
22
- dtype: int32
23
- - name: n_header_cols
24
- dtype: int32
25
- - name: html
26
- dtype: string
27
- - name: cells
28
- struct:
29
- - name: row
30
- list: int32
31
- - name: col
32
- list: int32
33
- - name: rowspan
34
- list: int32
35
- - name: colspan
36
- list: int32
37
- - name: text
38
- list: string
39
- - name: is_header
40
- list: bool
41
- - name: is_attribute
42
- list: bool
43
- - name: language
44
- dtype: string
45
- splits:
46
- - name: train
47
- num_bytes: 24050763413
48
- num_examples: 2404338
49
- download_size: 15518586952
50
- dataset_size: 24050763413
51
- - config_name: 10-KT
52
- features:
53
- - name: table_id
54
- dtype: string
55
- - name: filing_type
56
- dtype: string
57
- - name: cik
58
- dtype: string
59
- - name: filing_year
60
- dtype: string
61
- - name: accession_number
62
- dtype: string
63
- - name: title
64
- dtype: string
65
- - name: n_rows
66
- dtype: int32
67
- - name: n_cols
68
- dtype: int32
69
- - name: n_header_rows
70
- dtype: int32
71
- - name: n_header_cols
72
- dtype: int32
73
- - name: html
74
- dtype: string
75
- - name: cells
76
- struct:
77
- - name: row
78
- list: int32
79
- - name: col
80
- list: int32
81
- - name: rowspan
82
- list: int32
83
- - name: colspan
84
- list: int32
85
- - name: text
86
- list: string
87
- - name: is_header
88
- list: bool
89
- - name: is_attribute
90
- list: bool
91
- - name: language
92
- dtype: string
93
- splits:
94
- - name: train
95
- num_bytes: 69167171
96
- num_examples: 7365
97
- download_size: 45253106
98
- dataset_size: 69167171
99
- - config_name: 10-Q
100
- features:
101
- - name: table_id
102
- dtype: string
103
- - name: filing_type
104
- dtype: string
105
- - name: cik
106
- dtype: string
107
- - name: filing_year
108
- dtype: string
109
- - name: accession_number
110
- dtype: string
111
- - name: title
112
- dtype: string
113
- - name: n_rows
114
- dtype: int32
115
- - name: n_cols
116
- dtype: int32
117
- - name: n_header_rows
118
- dtype: int32
119
- - name: n_header_cols
120
- dtype: int32
121
- - name: html
122
- dtype: string
123
- - name: cells
124
- struct:
125
- - name: row
126
- list: int32
127
- - name: col
128
- list: int32
129
- - name: rowspan
130
- list: int32
131
- - name: colspan
132
- list: int32
133
- - name: text
134
- list: string
135
- - name: is_header
136
- list: bool
137
- - name: is_attribute
138
- list: bool
139
- - name: language
140
- dtype: string
141
- splits:
142
- - name: train
143
- num_bytes: 36252979535
144
- num_examples: 4586097
145
- download_size: 23339825575
146
- dataset_size: 36252979535
147
- - config_name: 18-K
148
- features:
149
- - name: table_id
150
- dtype: string
151
- - name: filing_type
152
- dtype: string
153
- - name: cik
154
- dtype: string
155
- - name: filing_year
156
- dtype: string
157
- - name: accession_number
158
- dtype: string
159
- - name: title
160
- dtype: string
161
- - name: n_rows
162
- dtype: int32
163
- - name: n_cols
164
- dtype: int32
165
- - name: n_header_rows
166
- dtype: int32
167
- - name: n_header_cols
168
- dtype: int32
169
- - name: html
170
- dtype: string
171
- - name: cells
172
- struct:
173
- - name: row
174
- list: int32
175
- - name: col
176
- list: int32
177
- - name: rowspan
178
- list: int32
179
- - name: colspan
180
- list: int32
181
- - name: text
182
- list: string
183
- - name: is_header
184
- list: bool
185
- - name: is_attribute
186
- list: bool
187
- - name: language
188
- dtype: string
189
- splits:
190
- - name: train
191
- num_bytes: 126928
192
- num_examples: 36
193
- download_size: 97652
194
- dataset_size: 126928
195
- - config_name: 20-F
196
- features:
197
- - name: table_id
198
- dtype: string
199
- - name: filing_type
200
- dtype: string
201
- - name: cik
202
- dtype: string
203
- - name: filing_year
204
- dtype: string
205
- - name: accession_number
206
- dtype: string
207
- - name: title
208
- dtype: string
209
- - name: n_rows
210
- dtype: int32
211
- - name: n_cols
212
- dtype: int32
213
- - name: n_header_rows
214
- dtype: int32
215
- - name: n_header_cols
216
- dtype: int32
217
- - name: html
218
- dtype: string
219
- - name: cells
220
- struct:
221
- - name: row
222
- list: int32
223
- - name: col
224
- list: int32
225
- - name: rowspan
226
- list: int32
227
- - name: colspan
228
- list: int32
229
- - name: text
230
- list: string
231
- - name: is_header
232
- list: bool
233
- - name: is_attribute
234
- list: bool
235
- - name: language
236
- dtype: string
237
- splits:
238
- - name: train
239
- num_bytes: 2428616784
240
- num_examples: 257124
241
- download_size: 1564945967
242
- dataset_size: 2428616784
243
- - config_name: 485BPOS
244
- features:
245
- - name: table_id
246
- dtype: string
247
- - name: filing_type
248
- dtype: string
249
- - name: cik
250
- dtype: string
251
- - name: filing_year
252
- dtype: string
253
- - name: accession_number
254
- dtype: string
255
- - name: title
256
- dtype: string
257
- - name: n_rows
258
- dtype: int32
259
- - name: n_cols
260
- dtype: int32
261
- - name: n_header_rows
262
- dtype: int32
263
- - name: n_header_cols
264
- dtype: int32
265
- - name: html
266
- dtype: string
267
- - name: cells
268
- struct:
269
- - name: row
270
- list: int32
271
- - name: col
272
- list: int32
273
- - name: rowspan
274
- list: int32
275
- - name: colspan
276
- list: int32
277
- - name: text
278
- list: string
279
- - name: is_header
280
- list: bool
281
- - name: is_attribute
282
- list: bool
283
- - name: language
284
- dtype: string
285
- splits:
286
- - name: train
287
- num_bytes: 73298766
288
- num_examples: 23034
289
- download_size: 41455028
290
- dataset_size: 73298766
291
- - config_name: '497'
292
- features:
293
- - name: table_id
294
- dtype: string
295
- - name: filing_type
296
- dtype: string
297
- - name: cik
298
- dtype: string
299
- - name: filing_year
300
- dtype: string
301
- - name: accession_number
302
- dtype: string
303
- - name: title
304
- dtype: string
305
- - name: n_rows
306
- dtype: int32
307
- - name: n_cols
308
- dtype: int32
309
- - name: n_header_rows
310
- dtype: int32
311
- - name: n_header_cols
312
- dtype: int32
313
- - name: html
314
- dtype: string
315
- - name: cells
316
- struct:
317
- - name: row
318
- list: int32
319
- - name: col
320
- list: int32
321
- - name: rowspan
322
- list: int32
323
- - name: colspan
324
- list: int32
325
- - name: text
326
- list: string
327
- - name: is_header
328
- list: bool
329
- - name: is_attribute
330
- list: bool
331
- - name: language
332
- dtype: string
333
- splits:
334
- - name: train
335
- num_bytes: 76634105
336
- num_examples: 21681
337
- download_size: 44030568
338
- dataset_size: 76634105
339
- - config_name: 8-K
340
- features:
341
- - name: table_id
342
- dtype: string
343
- - name: filing_type
344
- dtype: string
345
- - name: cik
346
- dtype: string
347
- - name: filing_year
348
- dtype: string
349
- - name: accession_number
350
- dtype: string
351
- - name: title
352
- dtype: string
353
- - name: n_rows
354
- dtype: int32
355
- - name: n_cols
356
- dtype: int32
357
- - name: n_header_rows
358
- dtype: int32
359
- - name: n_header_cols
360
- dtype: int32
361
- - name: html
362
- dtype: string
363
- - name: cells
364
- struct:
365
- - name: row
366
- list: int32
367
- - name: col
368
- list: int32
369
- - name: rowspan
370
- list: int32
371
- - name: colspan
372
- list: int32
373
- - name: text
374
- list: string
375
- - name: is_header
376
- list: bool
377
- - name: is_attribute
378
- list: bool
379
- - name: language
380
- dtype: string
381
- splits:
382
- - name: train
383
- num_bytes: 1065324123
384
- num_examples: 144184
385
- download_size: 675230981
386
- dataset_size: 1065324123
387
- - config_name: S-1
388
- features:
389
- - name: table_id
390
- dtype: string
391
- - name: filing_type
392
- dtype: string
393
- - name: cik
394
- dtype: string
395
- - name: filing_year
396
- dtype: string
397
- - name: accession_number
398
- dtype: string
399
- - name: title
400
- dtype: string
401
- - name: n_rows
402
- dtype: int32
403
- - name: n_cols
404
- dtype: int32
405
- - name: n_header_rows
406
- dtype: int32
407
- - name: n_header_cols
408
- dtype: int32
409
- - name: html
410
- dtype: string
411
- - name: cells
412
- struct:
413
- - name: row
414
- list: int32
415
- - name: col
416
- list: int32
417
- - name: rowspan
418
- list: int32
419
- - name: colspan
420
- list: int32
421
- - name: text
422
- list: string
423
- - name: is_header
424
- list: bool
425
- - name: is_attribute
426
- list: bool
427
- - name: language
428
- dtype: string
429
- splits:
430
- - name: train
431
- num_bytes: 733537932
432
- num_examples: 79166
433
- download_size: 482178235
434
- dataset_size: 733537932
435
- - config_name: S-4
436
- features:
437
- - name: table_id
438
- dtype: string
439
- - name: filing_type
440
- dtype: string
441
- - name: cik
442
- dtype: string
443
- - name: filing_year
444
- dtype: string
445
- - name: accession_number
446
- dtype: string
447
- - name: title
448
- dtype: string
449
- - name: n_rows
450
- dtype: int32
451
- - name: n_cols
452
- dtype: int32
453
- - name: n_header_rows
454
- dtype: int32
455
- - name: n_header_cols
456
- dtype: int32
457
- - name: html
458
- dtype: string
459
- - name: cells
460
- struct:
461
- - name: row
462
- list: int32
463
- - name: col
464
- list: int32
465
- - name: rowspan
466
- list: int32
467
- - name: colspan
468
- list: int32
469
- - name: text
470
- list: string
471
- - name: is_header
472
- list: bool
473
- - name: is_attribute
474
- list: bool
475
- - name: language
476
- dtype: string
477
- splits:
478
- - name: train
479
- num_bytes: 3470670032
480
- num_examples: 229974
481
- download_size: 2291489406
482
- dataset_size: 3470670032
483
- configs:
484
- - config_name: 10-K
485
- data_files:
486
- - split: train
487
- path: 10-K/train-*
488
- - config_name: 10-KT
489
- data_files:
490
- - split: train
491
- path: 10-KT/train-*
492
- - config_name: 10-Q
493
- data_files:
494
- - split: train
495
- path: 10-Q/train-*
496
- - config_name: 18-K
497
- data_files:
498
- - split: train
499
- path: 18-K/train-*
500
- - config_name: 20-F
501
- data_files:
502
- - split: train
503
- path: 20-F/train-*
504
- - config_name: 485BPOS
505
- data_files:
506
- - split: train
507
- path: 485BPOS/train-*
508
- - config_name: '497'
509
- data_files:
510
- - split: train
511
- path: 497/train-*
512
- - config_name: 8-K
513
- data_files:
514
- - split: train
515
- path: 8-K/train-*
516
- - config_name: S-1
517
- data_files:
518
- - split: train
519
- path: S-1/train-*
520
- - config_name: S-4
521
- data_files:
522
- - split: train
523
- path: S-4/train-*
524
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - table-question-answering
7
+ - text-classification
8
+ pretty_name: ENTRANT
9
+ tags:
10
+ - financial
11
+ - sec-edgar
12
+ - tables
13
+ - annual-report
14
+ - structured-data
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  ---
16
+
17
+ # ENTRANT
18
+
19
+ A HuggingFace mirror of the [ENTRANT](https://zenodo.org/records/10667088) dataset
20
+ (Zenodo record 10667088, CC-BY-4.0): 6.7 million structured financial tables
21
+ extracted from ~330,000 SEC EDGAR filings spanning 10 filing types.
22
+
23
+ Original paper: Gialitsis et al., *Scientific Data* 2024,
24
+ [10.1038/s41597-024-03605-5](https://doi.org/10.1038/s41597-024-03605-5).
25
+
26
+ ## License
27
+
28
+ CC-BY-4.0 (dataset annotations and structural metadata).
29
+
30
+ The underlying source documents are SEC EDGAR filings -- publicly filed
31
+ corporate documents. The factual content of financial statements is not
32
+ copyrightable under *Feist v. Rural Telephone Service* (1991); the
33
+ Nature Scientific Data publication provides strong institutional backing
34
+ for the CC-BY-4.0 claim on this corpus.
35
+
36
+ Cite the original ENTRANT paper if you use this dataset (see Citation below).
37
+
38
+ ## Configs
39
+
40
+ One HuggingFace config per SEC filing type. Each config is a single `train`
41
+ split (the authors did not define evaluation splits; partition as needed).
42
+
43
+ | Config | Filing type | Description |
44
+ |--------|-------------|-------------|
45
+ | `10-K` | Annual report | Large accelerated filers, ~5.9 GB ZIP |
46
+ | `10-Q` | Quarterly report | Most common filing, ~9.4 GB ZIP |
47
+ | `20-F` | Foreign annual report | Non-US issuers, ~556 MB ZIP |
48
+ | `S-1` | IPO registration | Initial public offerings, ~179 MB ZIP |
49
+ | `S-4` | Merger/acquisition | M&A registrations, ~886 MB ZIP |
50
+ | `8-K` | Current report | Material events, ~347 MB ZIP |
51
+ | `497` | Mutual fund prospectus | Investment companies, ~29 MB ZIP |
52
+ | `485BPOS` | Fund registration | Post-effective amendments, ~19 MB ZIP |
53
+ | `10-KT` | Transition annual report | Fiscal-year change filers, ~18 MB ZIP |
54
+ | `18-K` | Foreign government annual | Sovereign / foreign government, ~37 KB ZIP |
55
+
56
+ ## Schema
57
+
58
+ | Field | Type | Description |
59
+ |-------|------|-------------|
60
+ | `table_id` | string | `{cik}_{accession_number}_{table_index}` |
61
+ | `filing_type` | string | SEC filing type (e.g. `10-K`) |
62
+ | `cik` | string | SEC Central Index Key |
63
+ | `filing_year` | string | Year of filing |
64
+ | `accession_number` | string | SEC accession number |
65
+ | `title` | string | Table title (may be empty) |
66
+ | `n_rows` | int32 | Number of rows (from RangeAddress) |
67
+ | `n_cols` | int32 | Number of columns (from RangeAddress) |
68
+ | `n_header_rows` | int32 | Number of top header rows |
69
+ | `n_header_cols` | int32 | Number of left header columns |
70
+ | `html` | string | Table rendered as HTML with rowspan/colspan |
71
+ | `cells` | list[struct] | Per-cell records (anchor cells only; see below) |
72
+ | `language` | string | Language of content |
73
+
74
+ **Cell struct fields:** `row`, `col`, `rowspan`, `colspan` (int32);
75
+ `text` (string); `is_header` (bool, top header); `is_attribute` (bool, left header).
76
+ Only anchor cells (top-left corner of merged spans) are included;
77
+ interior cells of a merged region are omitted.
78
+
79
+ ## Usage
80
+
81
+ ```python
82
+ from datasets import load_dataset
83
+
84
+ # Stream annual reports without downloading all 17 GB
85
+ ds = load_dataset(
86
+ "rootsautomation/ENTRANT",
87
+ "10-K",
88
+ split="train",
89
+ streaming=True,
90
+ )
91
+ for row in ds:
92
+ print(row["title"], row["n_rows"], row["n_cols"])
93
+ break
94
+
95
+ # Load a smaller config fully into memory
96
+ ds_18k = load_dataset("rootsautomation/ENTRANT", "18-K", split="train")
97
+ ```
98
+
99
+ ## Citation
100
+
101
+ ```bibtex
102
+ @article{gialitsis2024entrant,
103
+ title = {ENTRANT: A Large Financial Dataset for Table Understanding},
104
+ author = {Gialitsis, Nikolaos and Tzoumerkas, Konstantinos
105
+ and Dalamagas, Theodore},
106
+ journal = {Scientific Data},
107
+ volume = {11},
108
+ year = {2024},
109
+ doi = {10.1038/s41597-024-03605-5},
110
+ }
111
+ ```