Datasets:

Modalities:
Image
Text
Formats:
parquet
Languages:
Danish
ArXiv:
DOI:
Libraries:
Datasets
Dask
License:
KennethEnevoldsen commited on
Commit
d9093e1
·
verified ·
1 Parent(s): 5f324fa

Update CI (#85)

Browse files

- remove unused repo_path args in update_descriptive_stats (1c5949962bb7f53df9a450549971a59c3c836654)
- remove git revision for descriptive stats (77cbda13f0bad859256208132372419231ce2137)
- format (336032720f9c8a674218e7b87d350ed68946a45d)
- update makefile command to always update "default" dataset (36cd36a1f9ee7a9ed0f375a0c795d681ce833102)
- remove all desc stats (c25a38a0c0132e4963956bfc0b36d17cbf3ed8e1)
- recompute default desc stats from existing objects (dc99dc3fea2a297613e4c5406ead5365af67885e)
- recompute all descriptive stats (ca846aebe913e795f2004f53a7bb269b7415f3f7)
- updated changelog (d93483b3518c26863d1c0ca2b4b2fa15a251dbc3)
- format (e71a25834ddc3065bbe7231bdec115da4cf446dc)
- run make test (368299f2bde526907bc82521afa2f13ce4816456)
- Simplified contribution guidelines (b8558e6ce367c5026e954523a314d410c8cff058)
- Updated changelog (1ea8e9e5c1c4e2aa71fe9f558c6aaf4b556e6614)
- add "in tokens" to average document length and add dataset sizes plot (83aaf7ed6388c4c2d3c4fe00fe2b3381f3b7cf9c)
- updated changelog (37a3227a0674700fdf9a893c81c80e51b7ff0542)

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. CHANGELOG.md +15 -0
  2. CONTRIBUTING.md +16 -4
  3. README.md +67 -80
  4. data/adl/adl.md +1 -3
  5. data/adl/descriptive_stats.json +5 -2
  6. data/ai-aktindsigt/ai-aktindsigt.md +1 -3
  7. data/ai-aktindsigt/descriptive_stats.json +5 -2
  8. data/botxt/botxt.md +1 -3
  9. data/botxt/descriptive_stats.json +5 -2
  10. data/cellar/cellar.md +1 -3
  11. data/cellar/descriptive_stats.json +5 -2
  12. data/dannet/dannet.md +1 -3
  13. data/dannet/descriptive_stats.json +5 -2
  14. data/danske-taler/danske-taler.md +1 -3
  15. data/danske-taler/descriptive_stats.json +5 -2
  16. data/depbank/depbank.md +1 -3
  17. data/depbank/descriptive_stats.json +5 -2
  18. data/domsdatabasen/create.py +1 -1
  19. data/domsdatabasen/descriptive_stats.json +5 -2
  20. data/domsdatabasen/domsdatabasen.md +1 -3
  21. data/enevaeldens_nyheder/descriptive_stats.json +5 -2
  22. data/enevaeldens_nyheder/enevaeldens_nyheder.md +1 -3
  23. data/ep/descriptive_stats.json +5 -2
  24. data/ep/ep.md +1 -3
  25. data/eur-lex-sum-da/descriptive_stats.json +5 -2
  26. data/eur-lex-sum-da/eur-lex-sum-da.md +1 -3
  27. data/fm-udgivelser/descriptive_stats.json +5 -2
  28. data/fm-udgivelser/fm-udgivelser.md +1 -3
  29. data/ft/descriptive_stats.json +5 -2
  30. data/ft/ft.md +1 -3
  31. data/grundtvig/descriptive_stats.json +5 -2
  32. data/grundtvig/grundtvig.md +1 -3
  33. data/gutenberg/descriptive_stats.json +5 -2
  34. data/gutenberg/gutenberg.md +1 -3
  35. data/health_hovedstaden/descriptive_stats.json +5 -2
  36. data/health_hovedstaden/health_hovedstaden.md +1 -3
  37. data/hest/descriptive_stats.json +5 -2
  38. data/hest/hest.md +1 -3
  39. data/jvj/descriptive_stats.json +5 -2
  40. data/jvj/jvj.md +1 -3
  41. data/lexdk/create.py +1 -1
  42. data/lexdk/descriptive_stats.json +0 -1
  43. data/memo/descriptive_stats.json +5 -2
  44. data/memo/memo.md +1 -3
  45. data/miljoeportalen/descriptive_stats.json +5 -2
  46. data/miljoeportalen/miljoeportalen.md +1 -3
  47. data/naat/descriptive_stats.json +5 -2
  48. data/naat/naat.md +1 -3
  49. data/ncc_books/create.py +4 -4
  50. data/ncc_books/descriptive_stats.json +5 -2
CHANGELOG.md CHANGED
@@ -6,6 +6,21 @@ All notable changes to this project will be documented in this file.
6
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
7
 
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  ## [v1.2.8] - 2025-08-05
10
 
11
  ### Added
 
6
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
7
 
8
 
9
+ ## [v1.2.9] - 2025-08-05
10
+
11
+ ### Docs
12
+
13
+ - Average document length now uses tokens instead of characters
14
+ - Added vizualization for checking document length in sub datasets
15
+ - Changes to `*/descriptive_stats.json`:
16
+ - The object no longer includes revision.
17
+ - Now include character-level metrics along with minimum and maximum length. Removed average document length as it is computable from existing metrics.
18
+ - Removed per-dataset histograms from the main readme. The goal is to avoid loading the entire dataset when updating the readme. This should make it easier for contributors.
19
+ - Simplifying PR workflow in `contributing.md`
20
+
21
+ ### CI
22
+ - Fixes bug causing `make update-descriptive-stats` to fail when not having a linear commit history. The script now skips a dataset update based on revision, but only if the `descriptive_stats.json` file does not exist. To ensure that the main readme is always up to date, we change the make command always to update it.
23
+
24
  ## [v1.2.8] - 2025-08-05
25
 
26
  ### Added
CONTRIBUTING.md CHANGED
@@ -57,17 +57,29 @@ Creating a PR on Huggingface is a bit different from creating one on Github.
57
  1) Go to the community tab on huggingface press *new pull request* and choose *on your machine*. Specify the title of the your PR. Then you can simply:
58
 
59
  ```bash
60
- git fetch origin refs/pr/{PR NUMBER}:pr/{PR NUMBER}
61
- git checkout pr/{PR NUMBER}
62
  # make your changes here
63
 
64
  # push to hub
65
  # you might need to first login:
66
  # huggingface-cli login
67
- git push origin pr/{PR NUMBER}:refs/pr/{PR NUMBER}
68
  ```
 
 
 
69
 
70
- Before you make the PR do be sure to make sure that you have completed the following checklist.
 
 
 
 
 
 
 
 
 
 
71
 
72
  ### Checklist
73
 
 
57
  1) Go to the community tab on huggingface press *new pull request* and choose *on your machine*. Specify the title of the your PR. Then you can simply:
58
 
59
  ```bash
60
+ git checkout -b {new branch name}
 
61
  # make your changes here
62
 
63
  # push to hub
64
  # you might need to first login:
65
  # huggingface-cli login
66
+ git push origin HEAD:refs/pr/{PR NUMBER}
67
  ```
68
+ Where HEAD refers to the current branch.
69
+
70
+ Before you make the PR do be sure to make sure that you have completed the checklist below.
71
 
72
+ ### Making changes to an existing PR
73
+
74
+ As a contributor you might need to develop on an existing branch. To do so you you
75
+ ```bash
76
+ # fetch and checkout existing branch:
77
+ git fetch origin refs/pr/{PR NUMBER}:pr/{PR NUMBER}
78
+ git checkout pr/{PR NUMBER}
79
+ # make your changes here
80
+
81
+ # push changes
82
+ ```
83
 
84
  ### Checklist
85
 
README.md CHANGED
@@ -233,10 +233,9 @@ https://github.com/huggingface/datasets/blob/main/templates/README_guide.md
233
  ## Dataset Description
234
 
235
  <!-- START-DESC-STATS -->
236
- - **Language**: dan, dansk, Danish
237
  - **Number of samples**: 5.55M
238
  - **Number of tokens (Llama 3)**: 5.83B
239
- - **Average document length (characters)**: 3171.33
240
  <!-- END-DESC-STATS -->
241
 
242
 
@@ -296,20 +295,20 @@ This dynaword consist of data from various domains (e.g., legal, books, social m
296
 
297
 
298
  <!-- START-DOMAIN TABLE -->
299
- | Domain | Sources | N. Tokens |
300
- |:-------------|:---------------------------------------------------------------------------------------------------------|:------------|
301
- | Legal | [cellar], [eur-lex-sum-da], [fm-udgivelser], [retsinformationdk], [skat], [retspraksis], [domsdatabasen] | 2.32B |
302
- | News | [enevaeldens_nyheder], [ncc_newspaper], [tv2r], [nordjyllandnews] | 1.09B |
303
- | Books | [grundtvig], [ncc_books], [memo], [adl], [wikibooks], [jvj], [gutenberg], [relig] | 732.52M |
304
- | Conversation | [danske-taler], [opensubtitles], [ep], [ft], [spont], [naat] | 497.09M |
305
- | Social Media | [hest] | 389.32M |
306
- | Other | [ncc_parliament], [dannet], [depbank], [synne] | 340.59M |
307
- | Web | [ai-aktindsigt], [ncc_maalfrid], [miljoeportalen] | 295.87M |
308
- | Encyclopedic | [wikisource], [wiki] | 127.35M |
309
- | Medical | [health_hovedstaden] | 27.07M |
310
- | Readaloud | [nota] | 7.30M |
311
- | Dialect | [botxt] | 847.97K |
312
- | **Total** | | 5.83B |
313
 
314
  [ai-aktindsigt]: data/ai-aktindsigt/ai-aktindsigt.md
315
  [cellar]: data/cellar/cellar.md
@@ -370,13 +369,13 @@ The following gives an overview of the licensing in the Dynaword. To get the exa
370
  These license is applied to the constituent data, i.e., the text. The collection of datasets (metadata, quality control, etc.) is licensed under [CC-0](https://creativecommons.org/publicdomain/zero/1.0/legalcode.en).
371
 
372
  <!-- START-LICENSE TABLE -->
373
- | License | Sources | N. Tokens |
374
- |:--------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------|
375
- | CC-0 | [enevaeldens_nyheder], [grundtvig], [danske-taler], [ncc_books], [ncc_newspaper], [miljoeportalen], [opensubtitles], [ep], [ft], [wikisource], [spont], [adl], [hest], [skat], [retspraksis], [wikibooks], [botxt], [naat], [synne], [wiki], [nordjyllandnews], [relig], [nota], [health_hovedstaden] | 3.04B |
376
- | CC-BY-SA 4.0 | [cellar], [eur-lex-sum-da], [fm-udgivelser], [memo], [tv2r], [jvj], [depbank] | 1.37B |
377
- | Other (No attribution required) | [retsinformationdk], [domsdatabasen] | 904.61M |
378
- | Other (Attribution required) | [ai-aktindsigt], [ncc_maalfrid], [ncc_parliament], [dannet], [gutenberg] | 515.61M |
379
- | **Total** | | 5.83B |
380
 
381
  [ai-aktindsigt]: data/ai-aktindsigt/ai-aktindsigt.md
382
  [cellar]: data/cellar/cellar.md
@@ -432,10 +431,7 @@ Each entry in the dataset consists of a single text with associated metadata
432
  ```py
433
  {
434
  "id": "adl_aakjaer06val",
435
- "text": "SAMLEDE VÆRKER
436
-
437
- JEPPE AAKJÆR GYLDENDALSKE BOGHANDEL - NORDISK FORLAG KJØBENHAVN OG
438
- KRISTIANIA 1919 0[...]",
439
  "source": "adl",
440
  "added": "2020-09-14",
441
  "created": "1700-01-01, 2022-01-01",
@@ -482,47 +478,47 @@ Below follows a brief overview of the sources in the corpus along with their ind
482
  You can learn more about each dataset by pressing the link in the first column.
483
 
484
  <!-- START-MAIN TABLE -->
485
- | Source | Description | Domain | N. Tokens | License |
486
- |:----------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------|:------------|:-----------------------|
487
- | [cellar] | The official digital repository for European Union legal documents and open data | Legal | 1.15B | [CC-BY-SA 4.0] |
488
- | [enevaeldens_nyheder] | High quality OCR'd texts from Danish and Norwegian newspapers during the period of constitutional absolutism in Denmark (1660–1849) | News | 1.03B | [CC-0] |
489
- | [retsinformationdk] | [retsinformation.dk](https://www.retsinformation.dk) (legal-information.dk) the official legal information system of Denmark | Legal | 818.25M | [Danish Copyright Law] |
490
- | [ncc_books] | Danish books extracted from the [Norwegian Colossal Corpus](https://huggingface.co/datasets/NbAiLab/NCC) derived from OCR | Books | 531.97M | [CC-0] |
491
- | [hest] | Samples from the Danish debate forum www.heste-nettet.dk | Social Media | 389.32M | [CC-0] |
492
- | [ncc_parliament] | Collections from the Norwegian parliament in Danish. Extracted from the [Norwegian Colossal Corpus](https://huggingface.co/datasets/NbAiLab/NCC) derived from ocr | Other | 338.87M | [NLOD 2.0] |
493
- | [opensubtitles] | Danish subsection of [OpenSubtitles](https://opus.nlpl.eu/OpenSubtitles/corpus/version/OpenSubtitles) | Conversation | 271.60M | [CC-0] |
494
- | [ai-aktindsigt] | Multiple web scrapes from municipality websites collected as a part of the [AI-aktindsigt](https://ai-aktindsigt.dk) project | Web | 139.23M | [Apache 2.0] |
495
- | [miljoeportalen] | Data from [Danmarks Miljøportalen](https://www.miljoeportal.dk/om-danmarks-miljoeportal/) (Denmark's Environment Portal) | Web | 127.38M | [CC-0] |
496
- | [skat] | Skat is the Danish tax authority. This dataset contains content from its website skat.dk | Legal | 122.11M | [CC-0] |
497
- | [wiki] | The Danish subsection of [wikipedia](https://en.wikipedia.org/wiki/Main_Page) | Encyclopedic | 122.00M | [CC-0] |
498
- | [ft] | Records from all meetings of The Danish parliament (Folketinget) in the parliament hall | Conversation | 114.09M | [CC-0] |
499
- | [memo] | The MeMo corpus comprising almost all Danish novels from the period 1870-1899, known as the Modern Breakthrough | Books | 113.74M | [CC-BY-SA 4.0] |
500
- | [ep] | The Danish subsection of [Europarl](https://aclanthology.org/2005.mtsummit-papers.11/) | Conversation | 100.84M | [CC-0] |
501
- | [domsdatabasen] | [Domsdatabasen.dk](https://domsdatabasen.dk/) is a public database containing selected judgments from the Danish courts | Legal | 86.35M | [Danish Copyright Law] |
502
- | [adl] | Danish literature from 1700-2023 from the [Archive for Danish Literature](https://tekster.kb.dk/text?editorial=no&f%5Bsubcollection_ssi%5D%5B%5D=adl&match=one&search_field=Alt) (ADL) | Books | 58.49M | [CC-0] |
503
- | [retspraksis] | Case law or judical practice in Denmark derived from [Retspraksis](https://da.wikipedia.org/wiki/Retspraksis) | Legal | 56.26M | [CC-0] |
504
- | [fm-udgivelser] | The official publication series of the Danish Ministry of Finance containing economic analyses, budget proposals, and fiscal policy documents | Legal | 50.34M | [CC-BY-SA 4.0] |
505
- | [nordjyllandnews] | Articles from the Danish Newspaper [TV2 Nord](https://www.tv2nord.dk) | News | 37.90M | [CC-0] |
506
- | [eur-lex-sum-da] | The Danish subsection of EUR-lex SUM consisting of EU legislation paired with professionally written summaries | Legal | 31.37M | [CC-BY-SA 4.0] |
507
- | [ncc_maalfrid] | Danish content from Norwegian institutions websites | Web | 29.26M | [NLOD 2.0] |
508
- | [health_hovedstaden] | Guidelines and informational documents for healthcare professionals from the Capital Region | Medical | 27.07M | [CC-0] |
509
- | [tv2r] | Contemporary Danish newswire articles published between 2010 and 2019 | News | 21.67M | [CC-BY-SA 4.0] |
510
- | [grundtvig] | The complete collection of [Grundtvig](https://en.wikipedia.org/wiki/N._F._S._Grundtvig) (1783-1872) one of Denmark’s most influential figures | Books | 10.53M | [CC-0] |
511
- | [danske-taler] | Danish Speeches from [dansketaler.dk](https://www.dansketaler.dk) | Conversation | 8.72M | [CC-0] |
512
- | [nota] | The text only part of the [Nota lyd- og tekstdata](https://sprogteknologi.dk/dataset/nota-lyd-og-tekstdata) dataset | Readaloud | 7.30M | [CC-0] |
513
- | [gutenberg] | The Danish subsection from Project [Gutenberg](https://www.gutenberg.org) | Books | 6.76M | [Gutenberg] |
514
- | [wikibooks] | The Danish Subsection of [Wikibooks](https://www.wikibooks.org) | Books | 6.24M | [CC-0] |
515
- | [wikisource] | The Danish subsection of [Wikisource](https://en.wikisource.org/wiki/Main_Page) | Encyclopedic | 5.34M | [CC-0] |
516
- | [jvj] | The works of the Danish author and poet, [Johannes V. Jensen](https://da.wikipedia.org/wiki/Johannes_V._Jensen) | Books | 3.55M | [CC-BY-SA 4.0] |
517
- | [spont] | Conversational samples collected as a part of research projects at Aarhus University | Conversation | 1.56M | [CC-0] |
518
- | [dannet] | [DanNet](https://cst.ku.dk/projekter/dannet) is a Danish WordNet | Other | 1.48M | [DanNet 1.0] |
519
- | [relig] | Danish religious text from the 1700-2022 | Books | 1.24M | [CC-0] |
520
- | [ncc_newspaper] | OCR'd Newspapers derived from [NCC](https://huggingface.co/datasets/NbAiLab/NCC) | News | 1.05M | [CC-0] |
521
- | [botxt] | The Bornholmsk Ordbog Dictionary Project | Dialect | 847.97K | [CC-0] |
522
- | [naat] | Danish speeches from 1930-2022 | Conversation | 286.68K | [CC-0] |
523
- | [depbank] | The Danish subsection of the [Universal Dependencies Treebank](https://github.com/UniversalDependencies/UD_Danish-DDT) | Other | 185.45K | [CC-BY-SA 4.0] |
524
- | [synne] | Dataset collected from [synnejysk forening's website](https://www.synnejysk.dk), covering the Danish dialect sønderjysk | Other | 52.02K | [CC-0] |
525
- | **Total** | | | 5.83B | |
526
 
527
  [ai-aktindsigt]: data/ai-aktindsigt/ai-aktindsigt.md
528
  [cellar]: data/cellar/cellar.md
@@ -590,21 +586,12 @@ The data collection and processing varies depending on the dataset and is docume
590
 
591
  In addition to data specific processing we also run a series automated quality checks to ensure formatting (e.g. ensuring correctly formatted columns and unique IDs), quality checks (e.g. duplicate and empty string detection) and datasheet documentation checks. These checks are there to ensure a high quality of documentation and a minimal level of quality. To allow for the development of novel cleaning methodologies we do not provide more extensive cleaning.
592
 
593
-
594
-
595
  ### Dataset Statistics
596
- The following plot pr. dataset histograms displaying document lengths.
597
 
598
- <details>
599
- <summary>Per dataset histograms</summary>
600
- <!-- START-DATASET PLOTS -->
601
  <p align="center">
602
- <img src="./images/dist_document_length.png" width="600" style="margin-right: 10px;" />
603
  </p>
604
- <!-- END-DATASET PLOTS -->
605
- </details>
606
-
607
-
608
 
609
 
610
 
@@ -668,4 +655,4 @@ We will comply with legitimate requests by removing the affected sources from th
668
  <img src="./docs/icon.png" width="30" style="margin-right: 10px;" />
669
  </a>
670
  A&nbsp;<a href=https://www.foundationmodels.dk>Danish Foundation Models</a>&nbsp;dataset
671
- </h3>
 
233
  ## Dataset Description
234
 
235
  <!-- START-DESC-STATS -->
 
236
  - **Number of samples**: 5.55M
237
  - **Number of tokens (Llama 3)**: 5.83B
238
+ - **Average document length (min, max)**: 1.05K [2, 9.81M]
239
  <!-- END-DESC-STATS -->
240
 
241
 
 
295
 
296
 
297
  <!-- START-DOMAIN TABLE -->
298
+ | Domain | Sources | N. Tokens |
299
+ | :----------- | :------------------------------------------------------------------------------------------------------- | :-------- |
300
+ | Legal | [cellar], [eur-lex-sum-da], [fm-udgivelser], [retsinformationdk], [skat], [retspraksis], [domsdatabasen] | 2.32B |
301
+ | News | [enevaeldens_nyheder], [ncc_newspaper], [tv2r], [nordjyllandnews] | 1.09B |
302
+ | Books | [grundtvig], [ncc_books], [memo], [adl], [wikibooks], [jvj], [gutenberg], [relig] | 732.52M |
303
+ | Conversation | [danske-taler], [opensubtitles], [ep], [ft], [spont], [naat] | 497.09M |
304
+ | Social Media | [hest] | 389.32M |
305
+ | Other | [ncc_parliament], [dannet], [depbank], [synne] | 340.59M |
306
+ | Web | [ai-aktindsigt], [ncc_maalfrid], [miljoeportalen] | 295.87M |
307
+ | Encyclopedic | [wikisource], [wiki] | 127.35M |
308
+ | Medical | [health_hovedstaden] | 27.07M |
309
+ | Readaloud | [nota] | 7.30M |
310
+ | Dialect | [botxt] | 847.97K |
311
+ | **Total** | | 5.83B |
312
 
313
  [ai-aktindsigt]: data/ai-aktindsigt/ai-aktindsigt.md
314
  [cellar]: data/cellar/cellar.md
 
369
  These license is applied to the constituent data, i.e., the text. The collection of datasets (metadata, quality control, etc.) is licensed under [CC-0](https://creativecommons.org/publicdomain/zero/1.0/legalcode.en).
370
 
371
  <!-- START-LICENSE TABLE -->
372
+ | License | Sources | N. Tokens |
373
+ | :------------------------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------- |
374
+ | CC-0 | [enevaeldens_nyheder], [grundtvig], [danske-taler], [ncc_books], [ncc_newspaper], [miljoeportalen], [opensubtitles], [ep], [ft], [wikisource], [spont], [adl], [hest], [skat], [retspraksis], [wikibooks], [botxt], [naat], [synne], [wiki], [nordjyllandnews], [relig], [nota], [health_hovedstaden] | 3.04B |
375
+ | CC-BY-SA 4.0 | [cellar], [eur-lex-sum-da], [fm-udgivelser], [memo], [tv2r], [jvj], [depbank] | 1.37B |
376
+ | Other (No attribution required) | [retsinformationdk], [domsdatabasen] | 904.61M |
377
+ | Other (Attribution required) | [ai-aktindsigt], [ncc_maalfrid], [ncc_parliament], [dannet], [gutenberg] | 515.61M |
378
+ | **Total** | | 5.83B |
379
 
380
  [ai-aktindsigt]: data/ai-aktindsigt/ai-aktindsigt.md
381
  [cellar]: data/cellar/cellar.md
 
431
  ```py
432
  {
433
  "id": "adl_aakjaer06val",
434
+ "text": "SAMLEDE VÆRKER\n\nJEPPE AAKJÆR GYLDENDALSKE BOGHANDEL - NORDISK FORLAG KJØBENHAVN OG\nKRISTIANIA 1919 0[...]",
 
 
 
435
  "source": "adl",
436
  "added": "2020-09-14",
437
  "created": "1700-01-01, 2022-01-01",
 
478
  You can learn more about each dataset by pressing the link in the first column.
479
 
480
  <!-- START-MAIN TABLE -->
481
+ | Source | Description | Domain | N. Tokens | License |
482
+ | :-------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------- | :-------- | :--------------------- |
483
+ | [cellar] | The official digital repository for European Union legal documents and open data | Legal | 1.15B | [CC-BY-SA 4.0] |
484
+ | [enevaeldens_nyheder] | High quality OCR'd texts from Danish and Norwegian newspapers during the period of constitutional absolutism in Denmark (1660–1849) | News | 1.03B | [CC-0] |
485
+ | [retsinformationdk] | [retsinformation.dk](https://www.retsinformation.dk) (legal-information.dk) the official legal information system of Denmark | Legal | 818.25M | [Danish Copyright Law] |
486
+ | [ncc_books] | Danish books extracted from the [Norwegian Colossal Corpus](https://huggingface.co/datasets/NbAiLab/NCC) derived from OCR | Books | 531.97M | [CC-0] |
487
+ | [hest] | Samples from the Danish debate forum www.heste-nettet.dk | Social Media | 389.32M | [CC-0] |
488
+ | [ncc_parliament] | Collections from the Norwegian parliament in Danish. Extracted from the [Norwegian Colossal Corpus](https://huggingface.co/datasets/NbAiLab/NCC) derived from ocr | Other | 338.87M | [NLOD 2.0] |
489
+ | [opensubtitles] | Danish subsection of [OpenSubtitles](https://opus.nlpl.eu/OpenSubtitles/corpus/version/OpenSubtitles) | Conversation | 271.60M | [CC-0] |
490
+ | [ai-aktindsigt] | Multiple web scrapes from municipality websites collected as a part of the [AI-aktindsigt](https://ai-aktindsigt.dk) project | Web | 139.23M | [Apache 2.0] |
491
+ | [miljoeportalen] | Data from [Danmarks Miljøportalen](https://www.miljoeportal.dk/om-danmarks-miljoeportal/) (Denmark's Environment Portal) | Web | 127.38M | [CC-0] |
492
+ | [skat] | Skat is the Danish tax authority. This dataset contains content from its website skat.dk | Legal | 122.11M | [CC-0] |
493
+ | [wiki] | The Danish subsection of [wikipedia](https://en.wikipedia.org/wiki/Main_Page) | Encyclopedic | 122.00M | [CC-0] |
494
+ | [ft] | Records from all meetings of The Danish parliament (Folketinget) in the parliament hall | Conversation | 114.09M | [CC-0] |
495
+ | [memo] | The MeMo corpus comprising almost all Danish novels from the period 1870-1899, known as the Modern Breakthrough | Books | 113.74M | [CC-BY-SA 4.0] |
496
+ | [ep] | The Danish subsection of [Europarl](https://aclanthology.org/2005.mtsummit-papers.11/) | Conversation | 100.84M | [CC-0] |
497
+ | [domsdatabasen] | [Domsdatabasen.dk](https://domsdatabasen.dk/) is a public database containing selected judgments from the Danish courts | Legal | 86.35M | [Danish Copyright Law] |
498
+ | [adl] | Danish literature from 1700-2023 from the [Archive for Danish Literature](https://tekster.kb.dk/text?editorial=no&f%5Bsubcollection_ssi%5D%5B%5D=adl&match=one&search_field=Alt) (ADL) | Books | 58.49M | [CC-0] |
499
+ | [retspraksis] | Case law or judical practice in Denmark derived from [Retspraksis](https://da.wikipedia.org/wiki/Retspraksis) | Legal | 56.26M | [CC-0] |
500
+ | [fm-udgivelser] | The official publication series of the Danish Ministry of Finance containing economic analyses, budget proposals, and fiscal policy documents | Legal | 50.34M | [CC-BY-SA 4.0] |
501
+ | [nordjyllandnews] | Articles from the Danish Newspaper [TV2 Nord](https://www.tv2nord.dk) | News | 37.90M | [CC-0] |
502
+ | [eur-lex-sum-da] | The Danish subsection of EUR-lex SUM consisting of EU legislation paired with professionally written summaries | Legal | 31.37M | [CC-BY-SA 4.0] |
503
+ | [ncc_maalfrid] | Danish content from Norwegian institutions websites | Web | 29.26M | [NLOD 2.0] |
504
+ | [health_hovedstaden] | Guidelines and informational documents for healthcare professionals from the Capital Region | Medical | 27.07M | [CC-0] |
505
+ | [tv2r] | Contemporary Danish newswire articles published between 2010 and 2019 | News | 21.67M | [CC-BY-SA 4.0] |
506
+ | [grundtvig] | The complete collection of [Grundtvig](https://en.wikipedia.org/wiki/N._F._S._Grundtvig) (1783-1872) one of Denmark’s most influential figures | Books | 10.53M | [CC-0] |
507
+ | [danske-taler] | Danish Speeches from [dansketaler.dk](https://www.dansketaler.dk) | Conversation | 8.72M | [CC-0] |
508
+ | [nota] | The text only part of the [Nota lyd- og tekstdata](https://sprogteknologi.dk/dataset/nota-lyd-og-tekstdata) dataset | Readaloud | 7.30M | [CC-0] |
509
+ | [gutenberg] | The Danish subsection from Project [Gutenberg](https://www.gutenberg.org) | Books | 6.76M | [Gutenberg] |
510
+ | [wikibooks] | The Danish Subsection of [Wikibooks](https://www.wikibooks.org) | Books | 6.24M | [CC-0] |
511
+ | [wikisource] | The Danish subsection of [Wikisource](https://en.wikisource.org/wiki/Main_Page) | Encyclopedic | 5.34M | [CC-0] |
512
+ | [jvj] | The works of the Danish author and poet, [Johannes V. Jensen](https://da.wikipedia.org/wiki/Johannes_V._Jensen) | Books | 3.55M | [CC-BY-SA 4.0] |
513
+ | [spont] | Conversational samples collected as a part of research projects at Aarhus University | Conversation | 1.56M | [CC-0] |
514
+ | [dannet] | [DanNet](https://cst.ku.dk/projekter/dannet) is a Danish WordNet | Other | 1.48M | [DanNet 1.0] |
515
+ | [relig] | Danish religious text from the 1700-2022 | Books | 1.24M | [CC-0] |
516
+ | [ncc_newspaper] | OCR'd Newspapers derived from [NCC](https://huggingface.co/datasets/NbAiLab/NCC) | News | 1.05M | [CC-0] |
517
+ | [botxt] | The Bornholmsk Ordbog Dictionary Project | Dialect | 847.97K | [CC-0] |
518
+ | [naat] | Danish speeches from 1930-2022 | Conversation | 286.68K | [CC-0] |
519
+ | [depbank] | The Danish subsection of the [Universal Dependencies Treebank](https://github.com/UniversalDependencies/UD_Danish-DDT) | Other | 185.45K | [CC-BY-SA 4.0] |
520
+ | [synne] | Dataset collected from [synnejysk forening's website](https://www.synnejysk.dk), covering the Danish dialect sønderjysk | Other | 52.02K | [CC-0] |
521
+ | **Total** | | | 5.83B | |
522
 
523
  [ai-aktindsigt]: data/ai-aktindsigt/ai-aktindsigt.md
524
  [cellar]: data/cellar/cellar.md
 
586
 
587
  In addition to data specific processing we also run a series automated quality checks to ensure formatting (e.g. ensuring correctly formatted columns and unique IDs), quality checks (e.g. duplicate and empty string detection) and datasheet documentation checks. These checks are there to ensure a high quality of documentation and a minimal level of quality. To allow for the development of novel cleaning methodologies we do not provide more extensive cleaning.
588
 
 
 
589
  ### Dataset Statistics
590
+ The following plot(s) are intended to give an overview of docuements length in the various sources.
591
 
 
 
 
592
  <p align="center">
593
+ <img src="./images/dataset_size_plot.svg" width="600" style="margin-right: 10px;" />
594
  </p>
 
 
 
 
595
 
596
 
597
 
 
655
  <img src="./docs/icon.png" width="30" style="margin-right: 10px;" />
656
  </a>
657
  A&nbsp;<a href=https://www.foundationmodels.dk>Danish Foundation Models</a>&nbsp;dataset
658
+ </h3>
data/adl/adl.md CHANGED
@@ -33,11 +33,9 @@ on the Danish Royal Library's [website](https://tekster.kb.dk/text?editorial=no&
33
  See also dataset [entry](https://sprogteknologi.dk/dataset/public-adl-text-sources) on sprogteknologi.dk and an [API](https://rawgit.com/Det-Kongelige-Bibliotek/access-digital-objects/master/form-demos/adl-form.html).
34
 
35
  <!-- START-DESC-STATS -->
36
- - **Language**: dan, dansk, Danish
37
- - **Domains**: Books
38
  - **Number of samples**: 498
39
  - **Number of tokens (Llama 3)**: 58.49M
40
- - **Average document length (characters)**: 324932.24
41
  <!-- END-DESC-STATS -->
42
 
43
 
 
33
  See also dataset [entry](https://sprogteknologi.dk/dataset/public-adl-text-sources) on sprogteknologi.dk and an [API](https://rawgit.com/Det-Kongelige-Bibliotek/access-digital-objects/master/form-demos/adl-form.html).
34
 
35
  <!-- START-DESC-STATS -->
 
 
36
  - **Number of samples**: 498
37
  - **Number of tokens (Llama 3)**: 58.49M
38
+ - **Average document length (min, max)**: 117.46K [53, 662.14K]
39
  <!-- END-DESC-STATS -->
40
 
41
 
data/adl/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 498,
3
- "average_document_length": 324932.2429718876,
4
  "number_of_tokens": 58493311,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 498,
 
3
  "number_of_tokens": 58493311,
4
+ "min_length_tokens": 53,
5
+ "max_length_tokens": 662143,
6
+ "number_of_characters": 161816257,
7
+ "min_length_characters": 136,
8
+ "max_length_characters": 1879004
9
  }
data/ai-aktindsigt/ai-aktindsigt.md CHANGED
@@ -27,11 +27,9 @@ The dataset consists of multiple scrapes of municipal websites compiled in conne
27
 
28
 
29
  <!-- START-DESC-STATS -->
30
- - **Language**: dan, dansk, Danish
31
- - **Domains**: Web
32
  - **Number of samples**: 200.91K
33
  - **Number of tokens (Llama 3)**: 139.23M
34
- - **Average document length (characters)**: 2030.75
35
  <!-- END-DESC-STATS -->
36
 
37
 
 
27
 
28
 
29
  <!-- START-DESC-STATS -->
 
 
30
  - **Number of samples**: 200.91K
31
  - **Number of tokens (Llama 3)**: 139.23M
32
+ - **Average document length (min, max)**: 693.0064405666105 [9, 152.60K]
33
  <!-- END-DESC-STATS -->
34
 
35
 
data/ai-aktindsigt/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 200914,
3
- "average_document_length": 2030.7490916511542,
4
  "number_of_tokens": 139234696,
5
- "revision": "d36009a401d1c1081fb7607d2d3159a20c4a356e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 200914,
 
3
  "number_of_tokens": 139234696,
4
+ "min_length_tokens": 9,
5
+ "max_length_tokens": 152599,
6
+ "number_of_characters": 408005923,
7
+ "min_length_characters": 29,
8
+ "max_length_characters": 406832
9
  }
data/botxt/botxt.md CHANGED
@@ -30,11 +30,9 @@ Fictional texts of various kinds written in Bornholmsk, the dialect spoken on th
30
 
31
 
32
  <!-- START-DESC-STATS -->
33
- - **Language**: dan, dansk, Danish
34
- - **Domains**: Dialect, Web
35
  - **Number of samples**: 106
36
  - **Number of tokens (Llama 3)**: 847.97K
37
- - **Average document length (characters)**: 18972.42
38
  <!-- END-DESC-STATS -->
39
 
40
 
 
30
 
31
 
32
  <!-- START-DESC-STATS -->
 
 
33
  - **Number of samples**: 106
34
  - **Number of tokens (Llama 3)**: 847.97K
35
+ - **Average document length (min, max)**: 8.00K [407, 83.79K]
36
  <!-- END-DESC-STATS -->
37
 
38
 
data/botxt/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 106,
3
- "average_document_length": 18972.415094339623,
4
  "number_of_tokens": 847973,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 106,
 
3
  "number_of_tokens": 847973,
4
+ "min_length_tokens": 407,
5
+ "max_length_tokens": 83792,
6
+ "number_of_characters": 2011076,
7
+ "min_length_characters": 845,
8
+ "max_length_characters": 202015
9
  }
data/cellar/cellar.md CHANGED
@@ -25,11 +25,9 @@ The EU Dataset Cellar serves as the central access point for all official EU pub
25
  ## Dataset Description
26
 
27
  <!-- START-DESC-STATS -->
28
- - **Language**: dan, dansk, Danish
29
- - **Domains**: Legal
30
  - **Number of samples**: 63.40K
31
  - **Number of tokens (Llama 3)**: 1.15B
32
- - **Average document length (characters)**: 60987.84
33
  <!-- END-DESC-STATS -->
34
 
35
 
 
25
  ## Dataset Description
26
 
27
  <!-- START-DESC-STATS -->
 
 
28
  - **Number of samples**: 63.40K
29
  - **Number of tokens (Llama 3)**: 1.15B
30
+ - **Average document length (min, max)**: 18.17K [7, 2.60M]
31
  <!-- END-DESC-STATS -->
32
 
33
 
data/cellar/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 63399,
3
- "average_document_length": 60987.84318364643,
4
  "number_of_tokens": 1152074881,
5
- "revision": "d36009a401d1c1081fb7607d2d3159a20c4a356e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 63399,
 
3
  "number_of_tokens": 1152074881,
4
+ "min_length_tokens": 7,
5
+ "max_length_tokens": 2599840,
6
+ "number_of_characters": 3866568270,
7
+ "min_length_characters": 14,
8
+ "max_length_characters": 37287484
9
  }
data/dannet/dannet.md CHANGED
@@ -31,11 +31,9 @@ A WordNet is a lexico-semantic network which show the meaning and the relation b
31
 
32
 
33
  <!-- START-DESC-STATS -->
34
- - **Language**: dan, dansk, Danish
35
- - **Domains**: Other
36
  - **Number of samples**: 47.60K
37
  - **Number of tokens (Llama 3)**: 1.48M
38
- - **Average document length (characters)**: 90.88
39
  <!-- END-DESC-STATS -->
40
 
41
 
 
31
 
32
 
33
  <!-- START-DESC-STATS -->
 
 
34
  - **Number of samples**: 47.60K
35
  - **Number of tokens (Llama 3)**: 1.48M
36
+ - **Average document length (min, max)**: 31.079364745919374 [2, 106]
37
  <!-- END-DESC-STATS -->
38
 
39
 
data/dannet/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 47603,
3
- "average_document_length": 90.87914627229377,
4
  "number_of_tokens": 1479471,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 47603,
 
3
  "number_of_tokens": 1479471,
4
+ "min_length_tokens": 2,
5
+ "max_length_tokens": 106,
6
+ "number_of_characters": 4326120,
7
+ "min_length_characters": 2,
8
+ "max_length_characters": 340
9
  }
data/danske-taler/danske-taler.md CHANGED
@@ -37,11 +37,9 @@ Learn more about danske taler by reading their [about us](https://www.dansketale
37
 
38
 
39
  <!-- START-DESC-STATS -->
40
- - **Language**: dan, dansk, Danish
41
- - **Domains**: Conversation, Speeches, Spoken
42
  - **Number of samples**: 2.91K
43
  - **Number of tokens (Llama 3)**: 8.72M
44
- - **Average document length (characters)**: 9140.42
45
  <!-- END-DESC-STATS -->
46
 
47
 
 
37
 
38
 
39
  <!-- START-DESC-STATS -->
 
 
40
  - **Number of samples**: 2.91K
41
  - **Number of tokens (Llama 3)**: 8.72M
42
+ - **Average document length (min, max)**: 3.00K [129, 53.40K]
43
  <!-- END-DESC-STATS -->
44
 
45
 
data/danske-taler/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 2912,
3
- "average_document_length": 9140.421703296703,
4
  "number_of_tokens": 8723951,
5
- "revision": "bcb374cb39c593a23e26534d5f2f182dee3edceb"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 2912,
 
3
  "number_of_tokens": 8723951,
4
+ "min_length_tokens": 129,
5
+ "max_length_tokens": 53401,
6
+ "number_of_characters": 26616908,
7
+ "min_length_characters": 388,
8
+ "max_length_characters": 155429
9
  }
data/depbank/depbank.md CHANGED
@@ -32,11 +32,9 @@ While the dataset was initially intended as a rich annotation, this corpora only
32
 
33
 
34
  <!-- START-DESC-STATS -->
35
- - **Language**: dan, dansk, Danish
36
- - **Domains**: Other
37
  - **Number of samples**: 536
38
  - **Number of tokens (Llama 3)**: 185.45K
39
- - **Average document length (characters)**: 1018.90
40
  <!-- END-DESC-STATS -->
41
 
42
 
 
32
 
33
 
34
  <!-- START-DESC-STATS -->
 
 
35
  - **Number of samples**: 536
36
  - **Number of tokens (Llama 3)**: 185.45K
37
+ - **Average document length (min, max)**: 345.99626865671644 [261, 517]
38
  <!-- END-DESC-STATS -->
39
 
40
 
data/depbank/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 536,
3
- "average_document_length": 1018.8992537313433,
4
  "number_of_tokens": 185454,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 536,
 
3
  "number_of_tokens": 185454,
4
+ "min_length_tokens": 261,
5
+ "max_length_tokens": 517,
6
+ "number_of_characters": 546130,
7
+ "min_length_characters": 773,
8
+ "max_length_characters": 1398
9
  }
data/domsdatabasen/create.py CHANGED
@@ -114,7 +114,7 @@ def retry(func, *args, retries=RETRY_COUNT, delay=RETRY_DELAY, **kwargs):
114
  try:
115
  return func(*args, **kwargs)
116
  except Exception as e:
117
- logger.warning(f"⚠️ Retry {attempt+1}/{retries} failed: {e}")
118
  time.sleep(delay)
119
  raise RuntimeError(f"❌ All retries failed for {func.__name__}({args})")
120
 
 
114
  try:
115
  return func(*args, **kwargs)
116
  except Exception as e:
117
+ logger.warning(f"⚠️ Retry {attempt + 1}/{retries} failed: {e}")
118
  time.sleep(delay)
119
  raise RuntimeError(f"❌ All retries failed for {func.__name__}({args})")
120
 
data/domsdatabasen/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 8468,
3
- "average_document_length": 30235.720004723666,
4
  "number_of_tokens": 86353024,
5
- "revision": "6df6dde969c6de6fde8369c96c2702f2098176b1"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 8468,
 
3
  "number_of_tokens": 86353024,
4
+ "min_length_tokens": 15,
5
+ "max_length_tokens": 1008826,
6
+ "number_of_characters": 256036077,
7
+ "min_length_characters": 35,
8
+ "max_length_characters": 3021437
9
  }
data/domsdatabasen/domsdatabasen.md CHANGED
@@ -56,11 +56,9 @@ Domsdatabasen is continuously being developed. As digitization progresses and te
56
 
57
 
58
  <!-- START-DESC-STATS -->
59
- - **Language**: dan, dansk, Danish
60
- - **Domains**: Legal
61
  - **Number of samples**: 8.47K
62
  - **Number of tokens (Llama 3)**: 86.35M
63
- - **Average document length (characters)**: 30235.72
64
  <!-- END-DESC-STATS -->
65
 
66
 
 
56
 
57
 
58
  <!-- START-DESC-STATS -->
 
 
59
  - **Number of samples**: 8.47K
60
  - **Number of tokens (Llama 3)**: 86.35M
61
+ - **Average document length (min, max)**: 10.20K [15, 1.01M]
62
  <!-- END-DESC-STATS -->
63
 
64
 
data/enevaeldens_nyheder/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 4593228,
3
- "average_document_length": 629.0663916531032,
4
  "number_of_tokens": 1034308344,
5
- "revision": "14e79bd9ddcf790f41259971134ccacc1be2a60d"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 4593228,
 
3
  "number_of_tokens": 1034308344,
4
+ "min_length_tokens": 3,
5
+ "max_length_tokens": 37294,
6
+ "number_of_characters": 2889445364,
7
+ "min_length_characters": 4,
8
+ "max_length_characters": 111182
9
  }
data/enevaeldens_nyheder/enevaeldens_nyheder.md CHANGED
@@ -31,11 +31,9 @@ The newspaper editions have been segmented into individual texts using a model d
31
 
32
 
33
  <!-- START-DESC-STATS -->
34
- - **Language**: dan, dansk, Danish
35
- - **Domains**: News
36
  - **Number of samples**: 4.59M
37
  - **Number of tokens (Llama 3)**: 1.03B
38
- - **Average document length (characters)**: 629.07
39
  <!-- END-DESC-STATS -->
40
 
41
 
 
31
 
32
 
33
  <!-- START-DESC-STATS -->
 
 
34
  - **Number of samples**: 4.59M
35
  - **Number of tokens (Llama 3)**: 1.03B
36
+ - **Average document length (min, max)**: 225.1811458085686 [3, 37.29K]
37
  <!-- END-DESC-STATS -->
38
 
39
 
data/ep/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 3930,
3
- "average_document_length": 79360.11628498728,
4
  "number_of_tokens": 100841366,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 3930,
 
3
  "number_of_tokens": 100841366,
4
+ "min_length_tokens": 8,
5
+ "max_length_tokens": 222729,
6
+ "number_of_characters": 311885257,
7
+ "min_length_characters": 14,
8
+ "max_length_characters": 688878
9
  }
data/ep/ep.md CHANGED
@@ -32,11 +32,9 @@ The europarl is a corpus of parallel text in 11 languages from the proceedings o
32
 
33
 
34
  <!-- START-DESC-STATS -->
35
- - **Language**: dan, dansk, Danish
36
- - **Domains**: Conversation, Spoken
37
  - **Number of samples**: 3.93K
38
  - **Number of tokens (Llama 3)**: 100.84M
39
- - **Average document length (characters)**: 79360.12
40
  <!-- END-DESC-STATS -->
41
 
42
 
 
32
 
33
 
34
  <!-- START-DESC-STATS -->
 
 
35
  - **Number of samples**: 3.93K
36
  - **Number of tokens (Llama 3)**: 100.84M
37
+ - **Average document length (min, max)**: 25.66K [8, 222.73K]
38
  <!-- END-DESC-STATS -->
39
 
40
 
data/eur-lex-sum-da/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 1002,
3
- "average_document_length": 87627.37025948103,
4
  "number_of_tokens": 31367665,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 1002,
 
3
  "number_of_tokens": 31367665,
4
+ "min_length_tokens": 2144,
5
+ "max_length_tokens": 1723932,
6
+ "number_of_characters": 87802625,
7
+ "min_length_characters": 6439,
8
+ "max_length_characters": 2979072
9
  }
data/eur-lex-sum-da/eur-lex-sum-da.md CHANGED
@@ -26,11 +26,9 @@ The dataset is designed for training and evaluating automatic text summarization
26
  ## Dataset Description
27
 
28
  <!-- START-DESC-STATS -->
29
- - **Language**: dan, dansk, Danish
30
- - **Domains**: Legal
31
  - **Number of samples**: 1.00K
32
  - **Number of tokens (Llama 3)**: 31.37M
33
- - **Average document length (characters)**: 87627.37
34
  <!-- END-DESC-STATS -->
35
 
36
 
 
26
  ## Dataset Description
27
 
28
  <!-- START-DESC-STATS -->
 
 
29
  - **Number of samples**: 1.00K
30
  - **Number of tokens (Llama 3)**: 31.37M
31
+ - **Average document length (min, max)**: 31.31K [2.14K, 1.72M]
32
  <!-- END-DESC-STATS -->
33
 
34
 
data/fm-udgivelser/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 443,
3
- "average_document_length": 490101.9300225734,
4
  "number_of_tokens": 50335291,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 443,
 
3
  "number_of_tokens": 50335291,
4
+ "min_length_tokens": 209,
5
+ "max_length_tokens": 595325,
6
+ "number_of_characters": 217115155,
7
+ "min_length_characters": 576,
8
+ "max_length_characters": 3791854
9
  }
data/fm-udgivelser/fm-udgivelser.md CHANGED
@@ -29,11 +29,9 @@ The publications are authoritative sources of information on Danish fiscal polic
29
  ## Dataset Description
30
 
31
  <!-- START-DESC-STATS -->
32
- - **Language**: dan, dansk, Danish
33
- - **Domains**: Legal
34
  - **Number of samples**: 443
35
  - **Number of tokens (Llama 3)**: 50.34M
36
- - **Average document length (characters)**: 490101.93
37
  <!-- END-DESC-STATS -->
38
 
39
 
 
29
  ## Dataset Description
30
 
31
  <!-- START-DESC-STATS -->
 
 
32
  - **Number of samples**: 443
33
  - **Number of tokens (Llama 3)**: 50.34M
34
+ - **Average document length (min, max)**: 113.62K [209, 595.33K]
35
  <!-- END-DESC-STATS -->
36
 
37
 
data/ft/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 1315,
3
- "average_document_length": 266745.19163498096,
4
  "number_of_tokens": 114087231,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 1315,
 
3
  "number_of_tokens": 114087231,
4
+ "min_length_tokens": 49,
5
+ "max_length_tokens": 342318,
6
+ "number_of_characters": 350769927,
7
+ "min_length_characters": 110,
8
+ "max_length_characters": 1041051
9
  }
data/ft/ft.md CHANGED
@@ -33,11 +33,9 @@ In the parliament hall, one speaker at a time addresses members of the parliamen
33
 
34
 
35
  <!-- START-DESC-STATS -->
36
- - **Language**: dan, dansk, Danish
37
- - **Domains**: Conversation, Spoken
38
  - **Number of samples**: 1.31K
39
  - **Number of tokens (Llama 3)**: 114.09M
40
- - **Average document length (characters)**: 266745.19
41
  <!-- END-DESC-STATS -->
42
 
43
 
 
33
 
34
 
35
  <!-- START-DESC-STATS -->
 
 
36
  - **Number of samples**: 1.31K
37
  - **Number of tokens (Llama 3)**: 114.09M
38
+ - **Average document length (min, max)**: 86.76K [49, 342.32K]
39
  <!-- END-DESC-STATS -->
40
 
41
 
data/grundtvig/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 632,
3
- "average_document_length": 46944.920886075946,
4
  "number_of_tokens": 10525393,
5
- "revision": "300716355eb49b3b6ad14f0b0d4f1507c713ab88"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 632,
 
3
  "number_of_tokens": 10525393,
4
+ "min_length_tokens": 100,
5
+ "max_length_tokens": 453718,
6
+ "number_of_characters": 29669190,
7
+ "min_length_characters": 298,
8
+ "max_length_characters": 1285256
9
  }
data/grundtvig/grundtvig.md CHANGED
@@ -31,11 +31,9 @@ The project is scheduled for completion in 2030 and will comprise 1,000 individu
31
 
32
 
33
  <!-- START-DESC-STATS -->
34
- - **Language**: dan, dansk, Danish
35
- - **Domains**: Books
36
  - **Number of samples**: 632
37
  - **Number of tokens (Llama 3)**: 10.53M
38
- - **Average document length (characters)**: 46944.92
39
  <!-- END-DESC-STATS -->
40
 
41
 
 
31
 
32
 
33
  <!-- START-DESC-STATS -->
 
 
34
  - **Number of samples**: 632
35
  - **Number of tokens (Llama 3)**: 10.53M
36
+ - **Average document length (min, max)**: 16.65K [100, 453.72K]
37
  <!-- END-DESC-STATS -->
38
 
39
 
data/gutenberg/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 66,
3
- "average_document_length": 290147.9393939394,
4
  "number_of_tokens": 6763317,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 66,
 
3
  "number_of_tokens": 6763317,
4
+ "min_length_tokens": 7915,
5
+ "max_length_tokens": 250511,
6
+ "number_of_characters": 19149764,
7
+ "min_length_characters": 24572,
8
+ "max_length_characters": 713986
9
  }
data/gutenberg/gutenberg.md CHANGED
@@ -30,11 +30,9 @@ Project Gutenberg is an online library of free eBooks. Project Gutenberg was the
30
 
31
 
32
  <!-- START-DESC-STATS -->
33
- - **Language**: dan, dansk, Danish
34
- - **Domains**: Books
35
  - **Number of samples**: 66
36
  - **Number of tokens (Llama 3)**: 6.76M
37
- - **Average document length (characters)**: 290147.94
38
  <!-- END-DESC-STATS -->
39
 
40
 
 
30
 
31
 
32
  <!-- START-DESC-STATS -->
 
 
33
  - **Number of samples**: 66
34
  - **Number of tokens (Llama 3)**: 6.76M
35
+ - **Average document length (min, max)**: 102.47K [7.92K, 250.51K]
36
  <!-- END-DESC-STATS -->
37
 
38
 
data/health_hovedstaden/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 23996,
3
- "average_document_length": 3329.0515919319887,
4
  "number_of_tokens": 27066716,
5
- "revision": "2d31a537efd08700abc0924c1e9df83d3849db46"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 23996,
 
3
  "number_of_tokens": 27066716,
4
+ "min_length_tokens": 4,
5
+ "max_length_tokens": 51033,
6
+ "number_of_characters": 79883922,
7
+ "min_length_characters": 4,
8
+ "max_length_characters": 152339
9
  }
data/health_hovedstaden/health_hovedstaden.md CHANGED
@@ -34,11 +34,9 @@ Martin Sundahl Laursen and Thiusius R. Savarimuthu from the University of Southe
34
  ## Dataset Description
35
 
36
  <!-- START-DESC-STATS -->
37
- - **Language**: dan, dansk, Danish
38
- - **Domains**: Medical, Encyclopedic
39
  - **Number of samples**: 24.00K
40
  - **Number of tokens (Llama 3)**: 27.07M
41
- - **Average document length (characters)**: 3329.05
42
  <!-- END-DESC-STATS -->
43
 
44
 
 
34
  ## Dataset Description
35
 
36
  <!-- START-DESC-STATS -->
 
 
37
  - **Number of samples**: 24.00K
38
  - **Number of tokens (Llama 3)**: 27.07M
39
+ - **Average document length (min, max)**: 1.13K [4, 51.03K]
40
  <!-- END-DESC-STATS -->
41
 
42
 
data/hest/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 14342,
3
- "average_document_length": 83232.81209036396,
4
  "number_of_tokens": 389318703,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 14342,
 
3
  "number_of_tokens": 389318703,
4
+ "min_length_tokens": 3,
5
+ "max_length_tokens": 9812841,
6
+ "number_of_characters": 1193724991,
7
+ "min_length_characters": 2,
8
+ "max_length_characters": 30324298
9
  }
data/hest/hest.md CHANGED
@@ -32,11 +32,9 @@ Its inclusion as training data for large language models have multiple times rea
32
 
33
 
34
  <!-- START-DESC-STATS -->
35
- - **Language**: dan, dansk, Danish
36
- - **Domains**: Social Media
37
  - **Number of samples**: 14.34K
38
  - **Number of tokens (Llama 3)**: 389.32M
39
- - **Average document length (characters)**: 83232.81
40
  <!-- END-DESC-STATS -->
41
 
42
 
 
32
 
33
 
34
  <!-- START-DESC-STATS -->
 
 
35
  - **Number of samples**: 14.34K
36
  - **Number of tokens (Llama 3)**: 389.32M
37
+ - **Average document length (min, max)**: 27.15K [3, 9.81M]
38
  <!-- END-DESC-STATS -->
39
 
40
 
data/jvj/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 42,
3
- "average_document_length": 254893.66666666666,
4
  "number_of_tokens": 3549181,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 42,
 
3
  "number_of_tokens": 3549181,
4
+ "min_length_tokens": 15474,
5
+ "max_length_tokens": 271790,
6
+ "number_of_characters": 10705534,
7
+ "min_length_characters": 47146,
8
+ "max_length_characters": 819703
9
  }
data/jvj/jvj.md CHANGED
@@ -32,11 +32,9 @@ The works of the Danish author and poet, [Johannes V. Jensen](https://da.wikiped
32
 
33
 
34
  <!-- START-DESC-STATS -->
35
- - **Language**: dan, dansk, Danish
36
- - **Domains**: Books
37
  - **Number of samples**: 42
38
  - **Number of tokens (Llama 3)**: 3.55M
39
- - **Average document length (characters)**: 254893.67
40
  <!-- END-DESC-STATS -->
41
 
42
 
 
32
 
33
 
34
  <!-- START-DESC-STATS -->
 
 
35
  - **Number of samples**: 42
36
  - **Number of tokens (Llama 3)**: 3.55M
37
+ - **Average document length (min, max)**: 84.50K [15.47K, 271.79K]
38
  <!-- END-DESC-STATS -->
39
 
40
 
data/lexdk/create.py CHANGED
@@ -38,7 +38,7 @@ def convert_sample(example: dict) -> dict:
38
  # "text": "Kullmanns Mølle er en mølle i Gudhjem, opkaldt efter Matts Kullmann, der byggede møllen i 1893 til sin søn, Christian Kullmann, se Gudhjem Mølle.",
39
  # }
40
  date = datetime.fromisoformat(example["date"])
41
- text = f"{example["title"]}\n\npubliceret: {date}\n{example["text"]}"
42
 
43
  new_example = dict(
44
  text_new=text,
 
38
  # "text": "Kullmanns Mølle er en mølle i Gudhjem, opkaldt efter Matts Kullmann, der byggede møllen i 1893 til sin søn, Christian Kullmann, se Gudhjem Mølle.",
39
  # }
40
  date = datetime.fromisoformat(example["date"])
41
+ text = f"{example['title']}\n\npubliceret: {date}\n{example['text']}"
42
 
43
  new_example = dict(
44
  text_new=text,
data/lexdk/descriptive_stats.json DELETED
@@ -1 +0,0 @@
1
- {"number_of_samples": 11887, "average_document_length": 1405.6435601918063, "number_of_tokens": 5688613, "language": "dan, dansk, Danish", "revision": "6a88cbd06a598259a4879ee118c8ab1843c500ff"}
 
 
data/memo/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 858,
3
- "average_document_length": 375749.0874125874,
4
  "number_of_tokens": 113742425,
5
- "revision": "9e941ac4e56b7b77ec77b84a3a40130ba78a9511"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 858,
 
3
  "number_of_tokens": 113742425,
4
+ "min_length_tokens": 6671,
5
+ "max_length_tokens": 720171,
6
+ "number_of_characters": 322392717,
7
+ "min_length_characters": 18626,
8
+ "max_length_characters": 2074215
9
  }
data/memo/memo.md CHANGED
@@ -28,11 +28,9 @@ Additional information about this dataset can be found on their [project page](h
28
  ## Dataset Description
29
 
30
  <!-- START-DESC-STATS -->
31
- - **Language**: dan, dansk, Danish
32
- - **Domains**: Books
33
  - **Number of samples**: 858
34
  - **Number of tokens (Llama 3)**: 113.74M
35
- - **Average document length (characters)**: 375749.09
36
  <!-- END-DESC-STATS -->
37
 
38
 
 
28
  ## Dataset Description
29
 
30
  <!-- START-DESC-STATS -->
 
 
31
  - **Number of samples**: 858
32
  - **Number of tokens (Llama 3)**: 113.74M
33
+ - **Average document length (min, max)**: 132.57K [6.67K, 720.17K]
34
  <!-- END-DESC-STATS -->
35
 
36
 
data/miljoeportalen/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 2120,
3
- "average_document_length": 228188.12405660376,
4
  "number_of_tokens": 127379475,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 2120,
 
3
  "number_of_tokens": 127379475,
4
+ "min_length_tokens": 54,
5
+ "max_length_tokens": 1436111,
6
+ "number_of_characters": 483758823,
7
+ "min_length_characters": 148,
8
+ "max_length_characters": 18428593
9
  }
data/miljoeportalen/miljoeportalen.md CHANGED
@@ -29,11 +29,9 @@ This can be decisions specifically targeted at the environment such as water pla
29
  ## Dataset Description
30
 
31
  <!-- START-DESC-STATS -->
32
- - **Language**: dan, dansk, Danish
33
- - **Domains**: Web
34
  - **Number of samples**: 2.12K
35
  - **Number of tokens (Llama 3)**: 127.38M
36
- - **Average document length (characters)**: 228188.12
37
  <!-- END-DESC-STATS -->
38
 
39
 
 
29
  ## Dataset Description
30
 
31
  <!-- START-DESC-STATS -->
 
 
32
  - **Number of samples**: 2.12K
33
  - **Number of tokens (Llama 3)**: 127.38M
34
+ - **Average document length (min, max)**: 60.08K [54, 1.44M]
35
  <!-- END-DESC-STATS -->
36
 
37
 
data/naat/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 129,
3
- "average_document_length": 6832.387596899225,
4
  "number_of_tokens": 286677,
5
- "revision": "1546256ca9562ecef403e433276c36770859089e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 129,
 
3
  "number_of_tokens": 286677,
4
+ "min_length_tokens": 228,
5
+ "max_length_tokens": 3952,
6
+ "number_of_characters": 881378,
7
+ "min_length_characters": 664,
8
+ "max_length_characters": 12118
9
  }
data/naat/naat.md CHANGED
@@ -29,11 +29,9 @@ Danish speeches from 1930-2022.
29
 
30
 
31
  <!-- START-DESC-STATS -->
32
- - **Language**: dan, dansk, Danish
33
- - **Domains**: Conversation
34
  - **Number of samples**: 129
35
  - **Number of tokens (Llama 3)**: 286.68K
36
- - **Average document length (characters)**: 6832.39
37
  <!-- END-DESC-STATS -->
38
 
39
 
 
29
 
30
 
31
  <!-- START-DESC-STATS -->
 
 
32
  - **Number of samples**: 129
33
  - **Number of tokens (Llama 3)**: 286.68K
34
+ - **Average document length (min, max)**: 2.22K [228, 3.95K]
35
  <!-- END-DESC-STATS -->
36
 
37
 
data/ncc_books/create.py CHANGED
@@ -147,7 +147,7 @@ def dynaword_format(
147
  "license": license,
148
  "domain": domain,
149
  "metadata": {
150
- "source-pretty": f"Norwegian Colossal Corpus ({re.sub("ncc_","",source)})",
151
  "source-type": doc_type,
152
  },
153
  }
@@ -176,9 +176,9 @@ def log_pre_filter_lang_data(
176
  logger.info(f"Documents of {source}:")
177
  logger.info(f"NO: {no_docs}, {no_perc}% ; DA: {da_docs}, {da_perc}%")
178
  logger.info("After language confidence filtering:")
179
- logger.info(f"DA: {f_length}, lost: {100-f_perc}%")
180
  logger.info("Total document change:")
181
- logger.info(f"{all_docs} -> {f_length}, loss: {100-f_total_perc}%")
182
 
183
 
184
  def get_var_name(var):
@@ -272,7 +272,7 @@ def quality_checks(ds: Dataset) -> Dataset:
272
 
273
  long_texts = ds_f.filter(too_long_filter, num_proc=None)
274
  if len(long_texts["id"]) > 0:
275
- logger.info(f"{len(long_texts["id"])} Long texts (>~1e5 tokens) found")
276
  for id in long_texts["id"]:
277
  logger.info(f"id: {id}")
278
  else:
 
147
  "license": license,
148
  "domain": domain,
149
  "metadata": {
150
+ "source-pretty": f"Norwegian Colossal Corpus ({re.sub('ncc_', '', source)})",
151
  "source-type": doc_type,
152
  },
153
  }
 
176
  logger.info(f"Documents of {source}:")
177
  logger.info(f"NO: {no_docs}, {no_perc}% ; DA: {da_docs}, {da_perc}%")
178
  logger.info("After language confidence filtering:")
179
+ logger.info(f"DA: {f_length}, lost: {100 - f_perc}%")
180
  logger.info("Total document change:")
181
+ logger.info(f"{all_docs} -> {f_length}, loss: {100 - f_total_perc}%")
182
 
183
 
184
  def get_var_name(var):
 
272
 
273
  long_texts = ds_f.filter(too_long_filter, num_proc=None)
274
  if len(long_texts["id"]) > 0:
275
+ logger.info(f"{len(long_texts['id'])} Long texts (>~1e5 tokens) found")
276
  for id in long_texts["id"]:
277
  logger.info(f"id: {id}")
278
  else:
data/ncc_books/descriptive_stats.json CHANGED
@@ -1,6 +1,9 @@
1
  {
2
  "number_of_samples": 4902,
3
- "average_document_length": 314064.2513259894,
4
  "number_of_tokens": 531969285,
5
- "revision": "d36009a401d1c1081fb7607d2d3159a20c4a356e"
 
 
 
 
6
  }
 
1
  {
2
  "number_of_samples": 4902,
 
3
  "number_of_tokens": 531969285,
4
+ "min_length_tokens": 58,
5
+ "max_length_tokens": 383508,
6
+ "number_of_characters": 1539542960,
7
+ "min_length_characters": 153,
8
+ "max_length_characters": 1000000
9
  }