Datasets:
Tasks:
Text Generation
Formats:
parquet
Sub-tasks:
language-modeling
Languages:
Danish
Size:
1M - 10M
License:
Add the Danish subsection of NCC
#44
by
KennethEnevoldsen
- opened
NCC: https://huggingface.co/datasets/NbAiLab/NCC
Seems like it needs a filters for:
- text is too short
- text is not natural text (alpha ratio)
- potentially lower bound on language filter
Working on this.:
pretty_name: Norwegian Colossal Corpus
language:
- da
license: other
license_name: CC0 1.0, NLOD 2.0, CC BY-SA 3.0
task_categories:
- text-generation
- fill-mask
task_ids:
- language-modeling
Dataset Card for Norwegian Colossal Corpus
Danish language subset of NCC
The Norwegian Colossal Corpus is a collection of multiple smaller Norwegian corpuses suitable for training large language models.
(desc. taken from NCC)
This subset is the result of the following filtering from all availabel data splits:
- Document is marked as Danish
- Confidence of the language classificationis at least 0.5
- Document has at least 10 words (whitespace separated strings + punctuation)
- The ratio of all words / words with only alphabetical characters is at least 0.7
- The document contains at least 2 Danish stop words
Dataset Description
- Language: dan, dansk, Danish
- Number of samples: 65.30K
- Number of tokens (Llama 3): 1.61B
- Average document length (characters): 70916.05
Dataset Structure
An example from the dataset looks as follows.
{
"text": "h) ved beregningen omhandlet i litra f) kan pengemarkedsinstrumenter eller andele eller kapitalandel[...]",
"source": "ncc",
"id": "maalfrid_2ede28a2c9ba7b4c0162681385ab60f99e021bfa_25",
"added": "2025-04-15",
"created": "2021-01-01, 2021-12-31",
"license": "other",
"domain": "Legal",
"metadata": {
"source-pretty": "Norwegian Colossal Corpus",
"source-type": "maalfrid_regjeringen"
}
}
Data Fields
An entry in the dataset consists of the following fields:
text
(str
): The content of the document.source
(str
): The source of the document (see Source Data).id
(str
): An unique identifier for each document.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.license
(str
): The license of the document. The licenses vary according to the source.domain
(str
): The domain of the sourcemetadata/source-pretty
(str
): The long form version of the short-form source namemetadata/source-type
: (str
) The exact document identifier from the original data
Dataset Statistics

Additional Information
License Information
The dataset consists of multiple types of documents, with various licenses:
- NLOD 2.0 Norwegian government, parliament and legal documents domain == "Legal" and license == "other" in the dataset
- CC0 1.0
- CC BY-SA 3.0 Wikipedia articles marked as domain == "Wiki & Books" and license == "other"
Citation Information
@inproceedings{kummervold-etal-2022-norwegian-colossal,
title = {The {N}orwegian colossal corpus: A text corpus for training large {N}orwegian language models},
author = {Kummervold, Per E and
Wetjen, Freddy and
De la Rosa, Javier},
booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference (LREC)},
year = {2022},
address = {Marseille, France},
publisher = {European Language Resources Association},
url = {https://aclanthology.org/2022.lrec-1.410},
pages = {3852--3860},
abstract = {Norwegian has been one of many languages lacking sufficient available text to train quality language models. In an attempt to bridge this gap, we introduce the Norwegian Colossal Corpus (NCC), which comprises 49GB of clean Norwegian textual data containing over 7B words. The NCC is composed of different and varied sources, ranging from books and newspapers to government documents and public reports, showcasing the various uses of the Norwegian language in society. The corpus contains mainly Norwegian Bokmål and Norwegian Nynorsk. Each document in the corpus is tagged with metadata that enables the creation of sub-corpora for specific needs. Its structure makes it easy to combine with large web archives that for licensing reasons could not be distributed together with the NCC. By releasing this corpus openly to the public, we hope to foster the creation of both better Norwegian language models and multilingual language models with support for Norwegian.},
}
@inproceedings{kummervold-etal-2021-operationalizing,
title = {Operationalizing a National Digital Library: The Case for a {N}orwegian Transformer Model},
author = {Kummervold, Per E and
De la Rosa, Javier and
Wetjen, Freddy and
Brygfjeld, Svein Arne},
booktitle = {Proceedings of the 23rd Nordic Conference on Computational Linguistics (NoDaLiDa)},
year = {2021},
address = {Reykjavik, Iceland (Online)},
publisher = {Linköping University Electronic Press, Sweden},
url = {https://aclanthology.org/2021.nodalida-main.3},
pages = {20--29},
abstract = {In this work, we show the process of building a large-scale training set from digital and digitized collections at a national library.
The resulting Bidirectional Encoder Representations from Transformers (BERT)-based language model for Norwegian outperforms multilingual BERT (mBERT) models
in several token and sequence classification tasks for both Norwegian Bokmål and Norwegian Nynorsk. Our model also improves the mBERT performance for other
languages present in the corpus such as English, Swedish, and Danish. For languages not included in the corpus, the weights degrade moderately while keeping strong multilingual properties. Therefore,
we show that building high-quality models within a memory institution using somewhat noisy optical character recognition (OCR) content is feasible, and we hope to pave the way for other memory institutions to follow.},
}