--- license: other configs: - config_name: default data_files: - split: train path: data/*/*.parquet - config_name: ai-aktindsigt data_files: - split: train path: data/ai-aktindsigt/*.parquet - config_name: cellar data_files: - split: train path: data/cellar/*.parquet - config_name: danske-taler data_files: - split: train path: data/danske-taler/*.parquet - config_name: ncc_books data_files: - split: train path: data/ncc_books/*.parquet - config_name: ncc_newspaper data_files: - split: train path: data/ncc_newspaper/*.parquet - config_name: ncc_maalfrid data_files: - split: train path: data/ncc_maalfrid/*.parquet - config_name: ncc_parliament data_files: - split: train path: data/ncc_parliament/*.parquet - config_name: eur-lex-sum-da data_files: - split: train path: data/eur-lex-sum-da/*.parquet - config_name: miljoeportalen data_files: - split: train path: data/miljoeportalen/*.parquet - config_name: fm-udgivelser data_files: - split: train path: data/fm-udgivelser/*.parquet - config_name: memo data_files: - split: train path: data/memo/*.parquet - config_name: opensubtitles data_files: - split: train path: data/opensubtitles/*.parquet - config_name: retsinformationdk data_files: - split: train path: data/retsinformationdk/*.parquet - config_name: ep data_files: - split: train path: data/ep/*.parquet - config_name: ft data_files: - split: train path: data/ft/*.parquet - config_name: wikisource data_files: - split: train path: data/wikisource/*.parquet - config_name: spont data_files: - split: train path: data/spont/*.parquet - config_name: tv2r data_files: - split: train path: data/tv2r/*.parquet - config_name: adl data_files: - split: train path: data/adl/*.parquet - config_name: hest data_files: - split: train path: data/hest/*.parquet - config_name: skat data_files: - split: train path: data/skat/*.parquet - config_name: dannet data_files: - split: train path: data/dannet/*.parquet - config_name: retspraksis data_files: - split: train path: data/retspraksis/*.parquet - config_name: wikibooks data_files: - split: train path: data/wikibooks/*.parquet - config_name: jvj data_files: - split: train path: data/jvj/*.parquet - config_name: gutenberg data_files: - split: train path: data/gutenberg/*.parquet - config_name: botxt data_files: - split: train path: data/botxt/*.parquet - config_name: depbank data_files: - split: train path: data/depbank/*.parquet - config_name: naat data_files: - split: train path: data/naat/*.parquet - config_name: synne data_files: - split: train path: data/synne/*.parquet - config_name: wiki data_files: - split: train path: data/wiki/*.parquet - config_name: nordjyllandnews data_files: - split: train path: data/nordjyllandnews/*.parquet - config_name: relig data_files: - split: train path: data/relig/*.parquet - config_name: nota data_files: - split: train path: data/nota/*.parquet annotations_creators: - no-annotation language_creators: - crowdsourced language: - da multilinguality: - monolingual source_datasets: - original task_categories: - text-generation task_ids: - language-modeling pretty_name: Danish Dynaword language_bcp47: - da - da-bornholm - da-synnejyl --- # 🧨 Danish Dynaword | | | | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Version** | 1.1.0 ([Changelog](/CHANGELOG.md)) | | **Language** | dan, dansk, Danish | | **License** | Openly Licensed, See the respective dataset | | **Models** | For model trained used this data see [danish-foundation-models](https://huggingface.co/danish-foundation-models) | | **Contact** | If you have question about this project please create an issue [here](https://huggingface.co/datasets/danish-foundation-models/danish-dynaword/discussions) | ## Table of Contents - [🧨 Danish Dynaword](#-danish-dynaword) - [Table of Contents](#table-of-contents) - [Dataset Description](#dataset-description) - [Dataset Summary](#dataset-summary) - [Loading the dataset](#loading-the-dataset) - [Languages:](#languages) - [Dataset Structure](#dataset-structure) - [Data Instances](#data-instances) - [Data Fields](#data-fields) - [Data Splits](#data-splits) - [Dataset Creation](#dataset-creation) - [Curation Rationale](#curation-rationale) - [Annotations](#annotations) - [Source Data](#source-data) - [Data Collection and Processing](#data-collection-and-processing) - [Dataset Statistics](#dataset-statistics) - [Contributing to the dataset](#contributing-to-the-dataset) - [Citation Information](#citation-information) - [License information](#license-information) - [Personal and Sensitive Information](#personal-and-sensitive-information) - [Notice and takedown policy](#notice-and-takedown-policy) - [We will comply with legitimate requests by removing the affected sources from the next release of the corpus](#we-will-comply-with-legitimate-requests-by-removing-the-affected-sources-from-the-next-release-of-the-corpus) ## Dataset Description - **Language**: dan, dansk, Danish - **Number of samples**: 891.08K - **Number of tokens (Llama 3)**: 4.26B - **Average document length (characters)**: 14755.73 ### Dataset Summary The Danish dynaword is a continually developed collection of Danish free-form text datasets from various domains. It is intended to be continually updated with new data sources. If you would like to contribute a dataset see the [contribute section](#contributing-to-the-dataset) ### Loading the dataset ```py from datasets import load_dataset name = "danish-foundation-models/danish-dynaword" ds = load_dataset(name, split = "train") sample = ds[1] # see "Data Instances" below ``` or load it by streaming the data ```py ds = load_dataset(name, split = "train", streaming=True) dataset_iter = iter(ds) sample = next(iter(dataset_iter)) ``` You can also load a single subset at a time: ```py ds = load_dataset(name, "adl", split = "train") ``` As Danish Dynaword is continually expanding and curated you can make sure that you get the same dataset every time by specifying the revision: You can also load a single subset at a time: ```py ds = load_dataset(name, revision="{desired revision}") ``` ### Languages: This dataset includes the following languages: - dan-Latn - dan-Latn-bornholm - dan-Latn-synnejyl Language is denoted using [BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag), using the langauge code ISO 639-3 and the script code ISO 15924. The last element denote the region variant. ## Dataset Structure The dataset contains text from different sources which are thoroughly defined in [Source Data](#source-data). ### Data Instances Each entry in the dataset consists of a single text with associated metadata ```py { "id": "adl_aakjaer06val", "text": "SAMLEDE VÆRKER\n\nJEPPE AAKJÆR GYLDENDALSKE BOGHANDEL - NORDISK FORLAG KJØBENHAVN OG\nKRISTIANIA 1919 0[...]", "source": "adl", "added": "2020-09-14", "created": "1700-01-01, 2022-01-01", "token_count": 439908 } ``` ### Data Fields An entry in the dataset consists of the following fields: - `id` (`str`): An unique identifier for each document. - `text`(`str`): The content of the document. - `source` (`str`): The source of the document (see [Source Data](#source-data)). - `added` (`str`): An date for when the document was added to this collection. - `created` (`str`): An date range for when the document was originally created. - `token_count` (`int`): The number of tokens in the sample computed using the Llama 8B tokenizer ### Data Splits The entire corpus is provided in the `train` split. ## Dataset Creation ### Curation Rationale These datasets were collected and curated with the intention of making openly license Danish data available. While this was collected with the intention of developing language models it is likely to have multiple other uses such as examining language development and differences across domains. ### Annotations This data generally contains no annotation besides the metadata attached to each sample such as what domain it belongs to. ### Source Data Below follows a brief overview of the sources in the corpus along with their individual license. | Source | Description | Domain | N. Tokens | License | |:--------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------|:------------|:-----------------------| | [cellar] | The official digital repository for European Union legal documents and open data | Legal | 1.15B | [CC-BY-SA 4.0] | | [ncc_books] | Danish books extracted from the [Norwegian Colossal Corpus](https://huggingface.co/datasets/NbAiLab/NCC) derived from OCR | Books | 531.97M | [CC-0] | | [retsinformationdk] | [retsinformation.dk](https://www.retsinformation.dk) (legal-information.dk) the official legal information system of Denmark | Legal | 516.35M | [Danish Copyright Law] | | [hest] | Samples from the Danish debate forum www.heste-nettet.dk | Social Media | 389.32M | [CC-0] | | [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] | | [opensubtitles] | Danish subsection of [OpenSubtitles](https://opus.nlpl.eu/OpenSubtitles/corpus/version/OpenSubtitles) | Conversation | 271.60M | [CC-0] | | [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] | | [miljoeportalen] | Data from [Danmarks Miljøportalen](https://www.miljoeportal.dk/om-danmarks-miljoeportal/) (Denmark's Environment Portal) | Web | 127.38M | [CC-0] | | [skat] | Skat is the Danish tax authority. This dataset contains content from its website skat.dk | Legal | 122.11M | [CC-0] | | [wiki] | The Danish subsection of [wikipedia](https://en.wikipedia.org/wiki/Main_Page) | Encyclopedic | 122.00M | [CC-0] | | [ft] | Records from all meetings of The Danish parliament (Folketinget) in the parliament hall | Conversation | 114.09M | [CC-0] | | [ep] | The Danish subsection of [Europarl](https://aclanthology.org/2005.mtsummit-papers.11/) | Conversation | 100.84M | [CC-0] | | [adl] | Danish literature from 1700-2023 from the Archive for Danish Literature (ADL) | Books | 58.49M | [CC-0] | | [retspraksis] | Case law or judical practice in Denmark derived from [Retspraksis](https://da.wikipedia.org/wiki/Retspraksis) | Legal | 56.26M | [CC-0] | | [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] | | [nordjyllandnews] | Articles from the Danish Newspaper [TV2 Nord](https://www.tv2nord.dk) | News | 37.90M | [CC-0] | | [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] | | [ncc_maalfrid] | Danish content from Norwegian institutions websites | Web | 29.26M | [NLOD 2.0] | | [tv2r] | Contemporary Danish newswire articles published between 2010 and 2019 | News | 21.67M | [CC-BY-SA 4.0] | | [memo] | The MeMo corpus comprising almost all Danish novels from the period 1870-1899, known as the Modern Breakthrough | Books | 9.28M | [CC-BY-SA 4.0] | | [danske-taler] | Danish Speeches from [dansketaler.dk](https://www.dansketaler.dk) | Conversation | 8.23M | [CC-0] | | [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] | | [gutenberg] | The Danish subsection from Project [Gutenberg](https://www.gutenberg.org) | Books | 6.76M | [Gutenberg] | | [wikibooks] | The Danish Subsection of [Wikibooks](https://www.wikibooks.org) | Books | 6.24M | [CC-0] | | [wikisource] | The Danish subsection of [Wikisource](https://en.wikisource.org/wiki/Main_Page) | Encyclopedic | 5.34M | [CC-0] | | [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] | | [spont] | Conversational samples collected as a part of research projects at Aarhus University | Conversation | 1.56M | [CC-0] | | [dannet] | [DanNet](https://cst.ku.dk/projekter/dannet) is a Danish WordNet | Other | 1.48M | [DanNet 1.0] | | [relig] | Danish religious text from the 1700-2022 | Books | 1.24M | [CC-0] | | [ncc_newspaper] | OCR'd Newspapers derived from [NCC](https://huggingface.co/datasets/NbAiLab/NCC) | News | 1.05M | [CC-0] | | [botxt] | The Bornholmsk Ordbog Dictionary Project | Dialect | 847.97K | [CC-0] | | [naat] | Danish speeches from 1930-2022 | Conversation | 286.68K | [CC-0] | | [depbank] | The Danish subsection of the [Universal Dependencies Treebank](https://github.com/UniversalDependencies/UD_Danish-DDT) | Other | 185.45K | [CC-BY-SA 4.0] | | [synne] | Dataset collected from [synnejysk forening's website](https://www.synnejysk.dk), covering the Danish dialect sønderjysk | Other | 52.02K | [CC-0] | | **Total** | | | 4.26B | | [ai-aktindsigt]: data/ai-aktindsigt/ai-aktindsigt.md [cellar]: data/cellar/cellar.md [danske-taler]: data/danske-taler/danske-taler.md [ncc_books]: data/ncc_books/ncc_books.md [ncc_newspaper]: data/ncc_newspaper/ncc_newspaper.md [ncc_maalfrid]: data/ncc_maalfrid/ncc_maalfrid.md [ncc_parliament]: data/ncc_parliament/ncc_parliament.md [eur-lex-sum-da]: data/eur-lex-sum-da/eur-lex-sum-da.md [miljoeportalen]: data/miljoeportalen/miljoeportalen.md [fm-udgivelser]: data/fm-udgivelser/fm-udgivelser.md [memo]: data/memo/memo.md [opensubtitles]: data/opensubtitles/opensubtitles.md [retsinformationdk]: data/retsinformationdk/retsinformationdk.md [ep]: data/ep/ep.md [ft]: data/ft/ft.md [wikisource]: data/wikisource/wikisource.md [spont]: data/spont/spont.md [tv2r]: data/tv2r/tv2r.md [adl]: data/adl/adl.md [hest]: data/hest/hest.md [skat]: data/skat/skat.md [dannet]: data/dannet/dannet.md [retspraksis]: data/retspraksis/retspraksis.md [wikibooks]: data/wikibooks/wikibooks.md [jvj]: data/jvj/jvj.md [gutenberg]: data/gutenberg/gutenberg.md [botxt]: data/botxt/botxt.md [depbank]: data/depbank/depbank.md [naat]: data/naat/naat.md [synne]: data/synne/synne.md [wiki]: data/wiki/wiki.md [nordjyllandnews]: data/nordjyllandnews/nordjyllandnews.md [relig]: data/relig/relig.md [nota]: data/nota/nota.md [CC-0]: https://creativecommons.org/publicdomain/zero/1.0/legalcode.en [CC-BY-SA 4.0]: https://creativecommons.org/licenses/by-sa/4.0/deed.en [Apache 2.0]: https://www.apache.org/licenses/LICENSE-2.0 [NLOD 2.0]: ./data/ncc_maalfrid/ncc_maalfrid.md#license-information [NLOD 2.0]: ./data/ncc_parliament/ncc_parliament.md#license-information [Danish Copyright Law]: ./data/retsinformationdk/retsinformationdk.md#license-information [DanNet 1.0]: ./data/dannet/dannet.md#license-information [Gutenberg]: ./data/gutenberg/gutenberg.md#license-information You can learn more about each dataset by pressing the link in the first column. ### Data Collection and Processing The data collection and processing varies depending on the dataset and is documentationed the individual datasheets, which is linked in the above table. If possible the collection is documented both in the datasheet and in the reproducible script (`data/{dataset}/create.py`). 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. ### Dataset Statistics The following plot show the domains distribution of the following within the dynaword: