JanosAudran commited on
Commit
63c7c54
β€’
1 Parent(s): 33f74eb

Modified data structure for faster loading of small configs.

Browse files
This view is limited to 50 files because it contains too many changes. Β  See raw diff
Files changed (50) hide show
  1. README.md +143 -98
  2. data/{test β†’ large/test}/shard_0.jsonl +0 -0
  3. data/{test β†’ large/test}/shard_1.jsonl +0 -0
  4. data/{test β†’ large/test}/shard_2.jsonl +0 -0
  5. data/{test β†’ large/test}/shard_3.jsonl +0 -0
  6. data/{test β†’ large/test}/shard_4.jsonl +0 -0
  7. data/{test β†’ large/test}/shard_5.jsonl +0 -0
  8. data/{test β†’ large/test}/shard_6.jsonl +0 -0
  9. data/{test β†’ large/test}/shard_7.jsonl +0 -0
  10. data/{test β†’ large/test}/shard_8.jsonl +0 -0
  11. data/{test β†’ large/test}/shard_9.jsonl +0 -0
  12. data/{train β†’ large/train}/shard_0.jsonl +0 -0
  13. data/{train β†’ large/train}/shard_1.jsonl +0 -0
  14. data/{train β†’ large/train}/shard_2.jsonl +0 -0
  15. data/{train β†’ large/train}/shard_3.jsonl +0 -0
  16. data/{train β†’ large/train}/shard_4.jsonl +0 -0
  17. data/{train β†’ large/train}/shard_5.jsonl +0 -0
  18. data/{train β†’ large/train}/shard_6.jsonl +0 -0
  19. data/{train β†’ large/train}/shard_7.jsonl +0 -0
  20. data/{train β†’ large/train}/shard_8.jsonl +0 -0
  21. data/{train β†’ large/train}/shard_9.jsonl +0 -0
  22. data/{validate β†’ large/validate}/shard_0.jsonl +0 -0
  23. data/{validate β†’ large/validate}/shard_1.jsonl +0 -0
  24. data/{validate β†’ large/validate}/shard_2.jsonl +0 -0
  25. data/{validate β†’ large/validate}/shard_3.jsonl +0 -0
  26. data/{validate β†’ large/validate}/shard_4.jsonl +0 -0
  27. data/{validate β†’ large/validate}/shard_5.jsonl +0 -0
  28. data/{validate β†’ large/validate}/shard_6.jsonl +0 -0
  29. data/{validate β†’ large/validate}/shard_7.jsonl +0 -0
  30. data/{validate β†’ large/validate}/shard_8.jsonl +0 -0
  31. data/{validate β†’ large/validate}/shard_9.jsonl +0 -0
  32. data/small/test/shard_0.jsonl +3 -0
  33. data/small/test/shard_1.jsonl +3 -0
  34. data/small/test/shard_2.jsonl +3 -0
  35. data/small/test/shard_3.jsonl +0 -0
  36. data/small/test/shard_4.jsonl +0 -0
  37. data/small/test/shard_5.jsonl +0 -0
  38. data/small/test/shard_6.jsonl +0 -0
  39. data/small/test/shard_7.jsonl +0 -0
  40. data/small/test/shard_8.jsonl +0 -0
  41. data/small/test/shard_9.jsonl +0 -0
  42. data/small/train/shard_0.jsonl +3 -0
  43. data/small/train/shard_1.jsonl +3 -0
  44. data/small/train/shard_2.jsonl +3 -0
  45. data/small/train/shard_3.jsonl +3 -0
  46. data/small/train/shard_4.jsonl +3 -0
  47. data/small/train/shard_5.jsonl +3 -0
  48. data/small/train/shard_6.jsonl +3 -0
  49. data/small/train/shard_7.jsonl +3 -0
  50. data/small/train/shard_8.jsonl +3 -0
README.md CHANGED
@@ -37,7 +37,7 @@ task_ids:
37
  - multi-class-classification
38
  - sentiment-classification
39
  dataset_info:
40
- - config_name: lite
41
  features:
42
  - name: cik
43
  dtype: string
@@ -89,6 +89,12 @@ dataset_info:
89
  "1": negative
90
  - name: filingDate
91
  dtype: string
 
 
 
 
 
 
92
  splits:
93
  - name: train
94
  num_bytes: 16424576472
@@ -101,7 +107,7 @@ dataset_info:
101
  num_examples: 2965174
102
  download_size: 13362319126
103
  dataset_size: 17621220293
104
- - config_name: full
105
  features:
106
  - name: cik
107
  dtype: string
@@ -155,6 +161,12 @@ dataset_info:
155
  dtype: string
156
  - name: name
157
  dtype: string
 
 
 
 
 
 
158
  - name: tickers
159
  list: string
160
  - name: exchanges
@@ -223,70 +235,6 @@ dataset_info:
223
  num_examples: 2965174
224
  download_size: 13362319126
225
  dataset_size: 42055510172
226
- - config_name: small_lite
227
- features:
228
- - name: cik
229
- dtype: string
230
- - name: sentence
231
- dtype: string
232
- - name: section
233
- dtype:
234
- class_label:
235
- names:
236
- "0": section_1
237
- "1": section_10
238
- "2": section_11
239
- "3": section_12
240
- "4": section_13
241
- "5": section_14
242
- "6": section_15
243
- "7": section_1A
244
- "8": section_1B
245
- "9": section_2
246
- "10": section_3
247
- "11": section_4
248
- "12": section_5
249
- "13": section_6
250
- "14": section_7
251
- "15": section_7A
252
- "16": section_8
253
- "17": section_9
254
- "18": section_9A
255
- "19": section_9B
256
- - name: labels
257
- struct:
258
- - name: 1d
259
- dtype:
260
- class_label:
261
- names:
262
- "0": positive
263
- "1": negative
264
- - name: 5d
265
- dtype:
266
- class_label:
267
- names:
268
- "0": positive
269
- "1": negative
270
- - name: 30d
271
- dtype:
272
- class_label:
273
- names:
274
- "0": positive
275
- "1": negative
276
- - name: filingDate
277
- dtype: string
278
- splits:
279
- - name: train
280
- num_bytes: 48766050
281
- num_examples: 200000
282
- - name: validation
283
- num_bytes: 5581651
284
- num_examples: 20000
285
- - name: test
286
- num_bytes: 5036956
287
- num_examples: 20000
288
- download_size: 13362319126
289
- dataset_size: 59384657
290
  - config_name: small_full
291
  features:
292
  - name: cik
@@ -298,25 +246,25 @@ dataset_info:
298
  class_label:
299
  names:
300
  "0": section_1
301
- "1": section_10
302
- "2": section_11
303
- "3": section_12
304
- "4": section_13
305
- "5": section_14
306
- "6": section_15
307
- "7": section_1A
308
- "8": section_1B
309
- "9": section_2
310
- "10": section_3
311
- "11": section_4
312
- "12": section_5
313
- "13": section_6
314
- "14": section_7
315
- "15": section_7A
316
- "16": section_8
317
- "17": section_9
318
- "18": section_9A
319
- "19": section_9B
320
  - name: labels
321
  struct:
322
  - name: 1d
@@ -341,6 +289,12 @@ dataset_info:
341
  dtype: string
342
  - name: name
343
  dtype: string
 
 
 
 
 
 
344
  - name: tickers
345
  list: string
346
  - name: exchanges
@@ -399,16 +353,86 @@ dataset_info:
399
  dtype: float32
400
  splits:
401
  - name: train
402
- num_bytes: 116038677
403
  num_examples: 200000
404
  - name: validation
405
- num_bytes: 12380261
406
  num_examples: 20000
407
  - name: test
408
- num_bytes: 11898871
409
  num_examples: 20000
410
- download_size: 13362319126
411
- dataset_size: 140317809
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
412
  ---
413
 
414
  # Dataset Card for [financial-reports-sec]
@@ -454,7 +478,7 @@ The dataset contains the annual report of US public firms filing with the SEC ED
454
 
455
  **Four** configurations are available:
456
 
457
- - _**lite**_:
458
  - Contains only the basic features needed. Extra metadata is ommitted.
459
  - Features List:
460
  - **cik**
@@ -462,7 +486,10 @@ The dataset contains the annual report of US public firms filing with the SEC ED
462
  - **section**
463
  - **labels**
464
  - **filingDate**
465
- - _**full**_:
 
 
 
466
  - All features are included.
467
  - Features List (excluding those already in the lite verison above):
468
  - **name**
@@ -477,9 +504,9 @@ The dataset contains the annual report of US public firms filing with the SEC ED
477
  - **reportDate**
478
  - **returns**
479
  - _**small_lite**_:
480
- - Same as _**lite**_ version except that only (200,000/20,000/20,000) sentences are loaded for (train/test/validation) splits.
481
  - _**small_full**_:
482
- - Same as _**full**_ version except that only (200,000/20,000/20,000) sentences are loaded for (train/test/validation) splits.
483
 
484
  ### Usage
485
 
@@ -487,10 +514,10 @@ The dataset contains the annual report of US public firms filing with the SEC ED
487
  import datasets
488
 
489
  # Load the lite configuration of the dataset
490
- raw_dataset = datasets.load_dataset("JanosAudran/financial-reports-sec", "lite")
491
 
492
  # Load a specific split
493
- raw_dataset = datasets.load_dataset("JanosAudran/financial-reports-sec", "full", split="train")
494
  ```
495
 
496
  ### Supported Tasks
@@ -560,6 +587,24 @@ Refer to dataset preview.
560
  - _string_
561
  - '2021-03-10'
562
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
563
  **name**
564
 
565
  - The name of the filing entity
@@ -651,8 +696,8 @@ Refer to dataset preview.
651
 
652
  | Config | train | validation | test |
653
  | ---------- | ---------: | ---------: | --------: |
654
- | full | 67,316,227 | 1,585,561 | 2,965,174 |
655
- | lite | 67,316,227 | 1,585,561 | 2,965,174 |
656
  | small_full | 200,000 | 20,000 | 20,000 |
657
  | small_lite | 200,000 | 20,000 | 20,000 |
658
 
 
37
  - multi-class-classification
38
  - sentiment-classification
39
  dataset_info:
40
+ - config_name: large_lite
41
  features:
42
  - name: cik
43
  dtype: string
 
89
  "1": negative
90
  - name: filingDate
91
  dtype: string
92
+ - name: docID
93
+ dtype: string
94
+ - name: sentenceID
95
+ dtype: string
96
+ - name: sentenceCount
97
+ dtype: int64
98
  splits:
99
  - name: train
100
  num_bytes: 16424576472
 
107
  num_examples: 2965174
108
  download_size: 13362319126
109
  dataset_size: 17621220293
110
+ - config_name: large_full
111
  features:
112
  - name: cik
113
  dtype: string
 
161
  dtype: string
162
  - name: name
163
  dtype: string
164
+ - name: docID
165
+ dtype: string
166
+ - name: sentenceID
167
+ dtype: string
168
+ - name: sentenceCount
169
+ dtype: int64
170
  - name: tickers
171
  list: string
172
  - name: exchanges
 
235
  num_examples: 2965174
236
  download_size: 13362319126
237
  dataset_size: 42055510172
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  - config_name: small_full
239
  features:
240
  - name: cik
 
246
  class_label:
247
  names:
248
  "0": section_1
249
+ "1": section_1A
250
+ "2": section_1B
251
+ "3": section_2
252
+ "4": section_3
253
+ "5": section_4
254
+ "6": section_5
255
+ "7": section_6
256
+ "8": section_7
257
+ "9": section_7A
258
+ "10": section_8
259
+ "11": section_9
260
+ "12": section_9A
261
+ "13": section_9B
262
+ "14": section_10
263
+ "15": section_11
264
+ "16": section_12
265
+ "17": section_13
266
+ "18": section_14
267
+ "19": section_15
268
  - name: labels
269
  struct:
270
  - name: 1d
 
289
  dtype: string
290
  - name: name
291
  dtype: string
292
+ - name: docID
293
+ dtype: string
294
+ - name: sentenceID
295
+ dtype: string
296
+ - name: sentenceCount
297
+ dtype: int64
298
  - name: tickers
299
  list: string
300
  - name: exchanges
 
353
  dtype: float32
354
  splits:
355
  - name: train
356
+ num_bytes: 128731540
357
  num_examples: 200000
358
  - name: validation
359
+ num_bytes: 13411689
360
  num_examples: 20000
361
  - name: test
362
+ num_bytes: 13188331
363
  num_examples: 20000
364
+ download_size: 42764380
365
+ dataset_size: 155331560
366
+ - config_name: small_lite
367
+ features:
368
+ - name: cik
369
+ dtype: string
370
+ - name: sentence
371
+ dtype: string
372
+ - name: section
373
+ dtype:
374
+ class_label:
375
+ names:
376
+ "0": section_1
377
+ "1": section_1A
378
+ "2": section_1B
379
+ "3": section_2
380
+ "4": section_3
381
+ "5": section_4
382
+ "6": section_5
383
+ "7": section_6
384
+ "8": section_7
385
+ "9": section_7A
386
+ "10": section_8
387
+ "11": section_9
388
+ "12": section_9A
389
+ "13": section_9B
390
+ "14": section_10
391
+ "15": section_11
392
+ "16": section_12
393
+ "17": section_13
394
+ "18": section_14
395
+ "19": section_15
396
+ - name: labels
397
+ struct:
398
+ - name: 1d
399
+ dtype:
400
+ class_label:
401
+ names:
402
+ "0": positive
403
+ "1": negative
404
+ - name: 5d
405
+ dtype:
406
+ class_label:
407
+ names:
408
+ "0": positive
409
+ "1": negative
410
+ - name: 30d
411
+ dtype:
412
+ class_label:
413
+ names:
414
+ "0": positive
415
+ "1": negative
416
+ - name: filingDate
417
+ dtype: string
418
+ - name: docID
419
+ dtype: string
420
+ - name: sentenceID
421
+ dtype: string
422
+ - name: sentenceCount
423
+ dtype: int64
424
+ splits:
425
+ - name: train
426
+ num_bytes: 60681688
427
+ num_examples: 200000
428
+ - name: validation
429
+ num_bytes: 6677389
430
+ num_examples: 20000
431
+ - name: test
432
+ num_bytes: 6351730
433
+ num_examples: 20000
434
+ download_size: 42764380
435
+ dataset_size: 73710807
436
  ---
437
 
438
  # Dataset Card for [financial-reports-sec]
 
478
 
479
  **Four** configurations are available:
480
 
481
+ - _**large_lite**_:
482
  - Contains only the basic features needed. Extra metadata is ommitted.
483
  - Features List:
484
  - **cik**
 
486
  - **section**
487
  - **labels**
488
  - **filingDate**
489
+ - **docID**
490
+ - **sentenceID**
491
+ - **sentenceCount**
492
+ - _**large_full**_:
493
  - All features are included.
494
  - Features List (excluding those already in the lite verison above):
495
  - **name**
 
504
  - **reportDate**
505
  - **returns**
506
  - _**small_lite**_:
507
+ - Same as _**large_lite**_ version except that only (200,000/20,000/20,000) sentences are loaded for (train/test/validation) splits.
508
  - _**small_full**_:
509
+ - Same as _**large_full**_ version except that only (200,000/20,000/20,000) sentences are loaded for (train/test/validation) splits.
510
 
511
  ### Usage
512
 
 
514
  import datasets
515
 
516
  # Load the lite configuration of the dataset
517
+ raw_dataset = datasets.load_dataset("JanosAudran/financial-reports-sec", "large_lite")
518
 
519
  # Load a specific split
520
+ raw_dataset = datasets.load_dataset("JanosAudran/financial-reports-sec", "small_full", split="train")
521
  ```
522
 
523
  ### Supported Tasks
 
587
  - _string_
588
  - '2021-03-10'
589
 
590
+ **docID**
591
+
592
+ - Unique ID for identifying the exact 10-K filing. Unique across all configs and splits. Can be used to identify the document from which the sentence came from.
593
+ - _string_
594
+ - '0000001750_10-K_2020'
595
+
596
+ **sentenceID**
597
+
598
+ - Unique ID for identifying the exact sentence. Unique across all configs and splits.
599
+ - _string_
600
+ - '0000001750_10-K_2020_section_1_100'
601
+
602
+ **sentenceCount**
603
+
604
+ - Integer identiying the running sequence for the sentence. Unique **only** for a given config and split.
605
+ - _string_
606
+ - 123
607
+
608
  **name**
609
 
610
  - The name of the filing entity
 
696
 
697
  | Config | train | validation | test |
698
  | ---------- | ---------: | ---------: | --------: |
699
+ | large_full | 67,316,227 | 1,585,561 | 2,965,174 |
700
+ | large_lite | 67,316,227 | 1,585,561 | 2,965,174 |
701
  | small_full | 200,000 | 20,000 | 20,000 |
702
  | small_lite | 200,000 | 20,000 | 20,000 |
703
 
data/{test β†’ large/test}/shard_0.jsonl RENAMED
File without changes
data/{test β†’ large/test}/shard_1.jsonl RENAMED
File without changes
data/{test β†’ large/test}/shard_2.jsonl RENAMED
File without changes
data/{test β†’ large/test}/shard_3.jsonl RENAMED
File without changes
data/{test β†’ large/test}/shard_4.jsonl RENAMED
File without changes
data/{test β†’ large/test}/shard_5.jsonl RENAMED
File without changes
data/{test β†’ large/test}/shard_6.jsonl RENAMED
File without changes
data/{test β†’ large/test}/shard_7.jsonl RENAMED
File without changes
data/{test β†’ large/test}/shard_8.jsonl RENAMED
File without changes
data/{test β†’ large/test}/shard_9.jsonl RENAMED
File without changes
data/{train β†’ large/train}/shard_0.jsonl RENAMED
File without changes
data/{train β†’ large/train}/shard_1.jsonl RENAMED
File without changes
data/{train β†’ large/train}/shard_2.jsonl RENAMED
File without changes
data/{train β†’ large/train}/shard_3.jsonl RENAMED
File without changes
data/{train β†’ large/train}/shard_4.jsonl RENAMED
File without changes
data/{train β†’ large/train}/shard_5.jsonl RENAMED
File without changes
data/{train β†’ large/train}/shard_6.jsonl RENAMED
File without changes
data/{train β†’ large/train}/shard_7.jsonl RENAMED
File without changes
data/{train β†’ large/train}/shard_8.jsonl RENAMED
File without changes
data/{train β†’ large/train}/shard_9.jsonl RENAMED
File without changes
data/{validate β†’ large/validate}/shard_0.jsonl RENAMED
File without changes
data/{validate β†’ large/validate}/shard_1.jsonl RENAMED
File without changes
data/{validate β†’ large/validate}/shard_2.jsonl RENAMED
File without changes
data/{validate β†’ large/validate}/shard_3.jsonl RENAMED
File without changes
data/{validate β†’ large/validate}/shard_4.jsonl RENAMED
File without changes
data/{validate β†’ large/validate}/shard_5.jsonl RENAMED
File without changes
data/{validate β†’ large/validate}/shard_6.jsonl RENAMED
File without changes
data/{validate β†’ large/validate}/shard_7.jsonl RENAMED
File without changes
data/{validate β†’ large/validate}/shard_8.jsonl RENAMED
File without changes
data/{validate β†’ large/validate}/shard_9.jsonl RENAMED
File without changes
data/small/test/shard_0.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7957e14fb6f2949c95b6ba08defbd171b5ecb286fe643897dfa245ee2f6056f0
3
+ size 2880171
data/small/test/shard_1.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:763be8275d4b41e77ae0bf0ed6ac5d9c4d928eed52f7ac0cd3463b82cd16d625
3
+ size 214400
data/small/test/shard_2.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4d1380f88c8e289925067043fe0ccc1b33aab1703f20ea23c756de9a1ef4ac2
3
+ size 674148
data/small/test/shard_3.jsonl ADDED
File without changes
data/small/test/shard_4.jsonl ADDED
File without changes
data/small/test/shard_5.jsonl ADDED
File without changes
data/small/test/shard_6.jsonl ADDED
File without changes
data/small/test/shard_7.jsonl ADDED
File without changes
data/small/test/shard_8.jsonl ADDED
File without changes
data/small/test/shard_9.jsonl ADDED
File without changes
data/small/train/shard_0.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1c0acf006c527f9631d21f3036e78d05ffe02f7d7f1d447b89b96547577d043
3
+ size 3647993
data/small/train/shard_1.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65bd7dad82f53f990e48ea0ea0bae9ab154fede83ae6a1f33f6d077a7a83ca5f
3
+ size 5293302
data/small/train/shard_2.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77d5fcb23073e92758c626b04fb35e5dec28b5d137eb50568f67e4b8eac25cb6
3
+ size 1330864
data/small/train/shard_3.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b467eaf7b52c44de33882327fe3c00e6b84e3adb850624089e7a8d2c7ab3a7ab
3
+ size 2585782
data/small/train/shard_4.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2bad4dd32090852c2e762377ff27b5f627aa52043a17b8850f5ffa388cdb192
3
+ size 2513695
data/small/train/shard_5.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b199426dbdc113d48de6a4eeb7edfb135e6a459f6c17b629dfe8f9e890645550
3
+ size 3196133
data/small/train/shard_6.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1365acfaa3401100b121e9eb7d93abe3ceab1bf3805779a05fc37b89a2000724
3
+ size 7294527
data/small/train/shard_7.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b44c60822b7ffbfa274874f7a4485667fe04ccc34f5027c4284660660f3c16ee
3
+ size 4352962
data/small/train/shard_8.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d025bcbfca5c0ef99603d598b780d6a1d39a775502e666493e244f55c21c4dde
3
+ size 4397141