Datasets:
				
			
			
	
			
	
		
			
	
		Tasks:
	
	
	
	
	Text Generation
	
	
	Sub-tasks:
	
	
	
	
	language-modeling
	
	
	Languages:
	
	
	
		
	
	German
	
	
	Size:
	
	
	
	
	10M - 100M
	
	
	ArXiv:
	
	
	
	
	
	
	
	
License:
	
	
	
	
	
	
	
File size: 18,145 Bytes
			
			| 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf 69da789 1f45adf f38a1d8 013520a 1f45adf e188aa2 1f45adf 69da789 1f45adf 69da789 1f45adf 569b444 1f45adf 569b444 1f45adf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 | ---
annotations_creators:
- machine-generated
language_creators:
- found
language:
- de
license:
- odc-by
multilinguality:
- monolingual
size_categories:
- 100B<n
source_datasets: []
task_categories:
- text-generation
task_ids:
- language-modeling
pretty_name: German Commons
tags:
- german
- commons
- legal
- scientific
- cultural
- political
- web
- news
- economic
configs:
- config_name: default
  data_files: subset=*/source=*/*.parquet
  default: true
  features:
  - name: id
    dtype: string
  - name: source
    dtype: string
  - name: subset
    dtype:
      class_label:
        names:
        - Cultural
        - Economic
        - Legal
        - News
        - Political
        - Scientific
        - Web
  - name: text
    dtype: string
  - name: license
    dtype:
      sequence: string
  - name: num_tokens
    dtype: int64
  - name: perplexity
    dtype: float64
  - name: ocr_score
    dtype: int64
  splits:
  - name: train
    num_examples: 36773579
- config_name: cultural
  data_files:
  - split: blbooks
    path: subset=Cultural/source=BLBooks/*.parquet
  - split: dibilit
    path: subset=Cultural/source=DiBiLit/*.parquet
  - split: dibiphil
    path: subset=Cultural/source=DiBiPhil/*.parquet
  - split: germanpd
    path: subset=Cultural/source=GermanPD/*.parquet
  - split: mosel
    path: subset=Cultural/source=MOSEL/*.parquet
  - split: sbbfulltexts
    path: subset=Cultural/source=SBB Fulltexts/*.parquet
  - split: wikisource
    path: subset=Cultural/source=Wikisource/*.parquet
  - split: wikivoyage
    path: subset=Cultural/source=Wikivoyage/*.parquet
  - split: wikiquote
    path: subset=Cultural/source=Wikiquote/*.parquet
  features:
  - name: id
    dtype: string
  - name: source
    dtype: string
  - name: subset
    dtype:
      class_label:
        names:
        - Cultural
        - Economic
        - Legal
        - News
        - Political
        - Scientific
        - Web
  - name: text
    dtype: string
  - name: license
    dtype:
      sequence: string
  - name: num_tokens
    dtype: int64
  - name: perplexity
    dtype: float64
  - name: ocr_score
    dtype: int64
- config_name: economic
  data_files:
  - split: tedeutenders
    path: subset=Economic/source=TEDEUTenders/*.parquet
  features:
  - name: id
    dtype: string
  - name: source
    dtype: string
  - name: subset
    dtype:
      class_label:
        names:
        - Cultural
        - Economic
        - Legal
        - News
        - Political
        - Scientific
        - Web
  - name: text
    dtype: string
  - name: license
    dtype:
      sequence: string
  - name: num_tokens
    dtype: int64
  - name: perplexity
    dtype: float64
  - name: ocr_score
    dtype: int64
- config_name: legal
  data_files:
  - split: bverfgaes
    path: subset=Legal/source=Amtliche Entscheidungssammlung des Bundesverfassungsgerichts/*.parquet
  - split: bundesrecht
    path: subset=Legal/source=Deutsches Bundesrecht/*.parquet
  - split: bag
    path: subset=Legal/source=Entscheidungen des Bundesarbeitsgerichts/*.parquet
  - split: bfh
    path: subset=Legal/source=Entscheidungen des Bundesfinanzhofs/*.parquet
  - split: bgh
    path: subset=Legal/source=Entscheidungen des Bundesgerichtshofs/*.parquet
  - split: bgh20
    path: subset=Legal/source=Entscheidungen des Bundesgerichtshofs in Strafsachen
      aus dem 20. Jahrhundert/*.parquet
  - split: bpatg
    path: subset=Legal/source=Entscheidungen des Bundespatentgerichts/*.parquet
  - split: bverfg
    path: subset=Legal/source=Entscheidungen des Bundesverfassungsgerichts/*.parquet
  - split: bverwg
    path: subset=Legal/source=Entscheidungen des Bundesverwaltungsgerichts/*.parquet
  - split: eurlex
    path: subset=Legal/source=EurLEX/*.parquet
  - split: openlegaldata
    path: subset=Legal/source=Open Legal Data/*.parquet
  features:
  - name: id
    dtype: string
  - name: source
    dtype: string
  - name: subset
    dtype:
      class_label:
        names:
        - Cultural
        - Economic
        - Legal
        - News
        - Political
        - Scientific
        - Web
  - name: text
    dtype: string
  - name: license
    dtype:
      sequence: string
  - name: num_tokens
    dtype: int64
  - name: perplexity
    dtype: float64
  - name: ocr_score
    dtype: int64
- config_name: news
  data_files:
  - split: anno
    path: news_anno_*.parquet
  - split: zeitungsportal
    path: news_deutsches_zeitungsportal_*.parquet
  - split: europeana
    path: news_europeana_newspapers_*.parquet
  - split: wikinews
    path: news_wikinews_*.parquet
  features:
  - name: id
    dtype: string
  - name: source
    dtype: string
  - name: subset
    dtype:
      class_label:
        names:
        - Cultural
        - Economic
        - Legal
        - News
        - Political
        - Scientific
        - Web
  - name: text
    dtype: string
  - name: license
    dtype:
      sequence: string
  - name: num_tokens
    dtype: int64
  - name: perplexity
    dtype: float64
  - name: ocr_score
    dtype: int64
- config_name: political
  data_files:
  - split: btdrucksachen
    path: subset=Political/source=Drucksachen des Bundestages/*.parquet
  - split: eurovoc
    path: subset=Political/source=EuroVoc/*.parquet
  - split: germanpoliticalspeeches
    path: subset=Political/source=German Political Speeches/*.parquet
  - split: btplenarprotokolle
    path: subset=Political/source=Plenarprotokolle des Bundestages/*.parquet
  - split: reichtagsprotokolle
    path: subset=Political/source=Reichtagsprotokolle/*.parquet
  features:
  - name: id
    dtype: string
  - name: source
    dtype: string
  - name: subset
    dtype:
      class_label:
        names:
        - Cultural
        - Economic
        - Legal
        - News
        - Political
        - Scientific
        - Web
  - name: text
    dtype: string
  - name: license
    dtype:
      sequence: string
  - name: num_tokens
    dtype: int64
  - name: perplexity
    dtype: float64
  - name: ocr_score
    dtype: int64
- config_name: scientific
  data_files:
  - split: arxiv
    path: subset=Scientific/source=arXiv/*.parquet
  - split: doab
    path: subset=Scientific/source=Directory of Open Access Books/*.parquet
  - split: polyjournal
    path: subset=Scientific/source=Polytechnisches Journal/*.parquet
  - split: wikibooks
    path: subset=Scientific/source=Wikibooks/*.parquet
  - split: openalex
    path: subset=Scientific/source=OpenAlex/*.parquet
  - split: wikiversity
    path: subset=Scientific/source=Wikiversity/*.parquet
  features:
  - name: id
    dtype: string
  - name: source
    dtype: string
  - name: subset
    dtype:
      class_label:
        names:
        - Cultural
        - Economic
        - Legal
        - News
        - Political
        - Scientific
        - Web
  - name: text
    dtype: string
  - name: license
    dtype:
      sequence: string
  - name: num_tokens
    dtype: int64
  - name: perplexity
    dtype: float64
  - name: ocr_score
    dtype: int64
- config_name: web
  data_files:
  - split: onemillionposts
    path: subset=Web/source=One Million Posts/*.parquet
  - split: thestack
    path: subset=Web/source=The Stack/*.parquet
  - split: wikidiscussions
    path: subset=Web/source=Wiki Discussions/*.parquet
  - split: wikipedia
    path: subset=Web/source=Wikipedia/*.parquet
  - split: youtubecommons
    path: subset=Web/source=Youtube Commons/*.parquet
  features:
  - name: id
    dtype: string
  - name: source
    dtype: string
  - name: subset
    dtype:
      class_label:
        names:
        - Cultural
        - Economic
        - Legal
        - News
        - Political
        - Scientific
        - Web
  - name: text
    dtype: string
  - name: license
    dtype:
      sequence: string
  - name: num_tokens
    dtype: int64
  - name: perplexity
    dtype: float64
  - name: ocr_score
    dtype: int64
---
# German Commons - 154 Billion Tokens of Openly Licensed Text for German Language Models
A comprehensive collection of German-language text data under open licenses for training German language models.
- **Datasheet**: [DATASHEET.md](DATASHEET.md).
- **Paper**: [arxiv.org/abs/2510.13996](https://arxiv.org/abs/2510.13996)
- **Code**: [github.com/coral-nlp/llmdata](https://github.com/coral-nlp/llmdata)
- **Bloom Filter** (DOLMA-compatible): [bloom_filter.bin](bloom_filter.bin)
## Dataset Description
This dataset is aggregated from **41 diverse sources** and contains **154.56 billion tokens** of German text data with **35.78 million documents** spanning **7 thematic domains**:
- π **Web Commons**: 19.89B tokens source from Wiki projects, online discussions, code repositories, social media posts, YouTube transcripts
- π¬ **Political Commons**: 3.57B tokens sourced from parliamentary documents, speeches, protocols, political vocabulary
- βοΈ **Legal Commons**: 2.99B tokens sourced from court decisions, federal law, legal databases, EU legal documents
- π° **News Commons**: 72.67B tokens sourced from historical and current newspapers archives
- π¦ **Economics Commons**: 0.11B tokens sourced from EU public tenders
- π **Cultural Commons**: 54.49B tokens sourced from cultural heritage collections
- π¬ **Scientific Commons**: 0.84B tokens sourced from scholarly papers, books, and technical journals
## Dataset Features
Each record contains the following fields:
- **id**: Unique identifier string, as per each documents' source dataset
- **source**: Source dataset name
- **subset**: Thematic subset (Cultural, Legal, Political, Scientific, News, Web, Economic)
- **text**: Main text content; deduplicated, quality filtered, with consistent formatting and encoding. Can be split at newlines to obtain paragraph text.
- **license**: List of applicable licenses for each document, given as canonical SPDX license URL.
- **num_tokens**: GPT-2 token count
- **perplexity**: Text perplexity measured with a KenLM model trained on German Wikipedia text
- **ocr_score**: OCR quality score measured using [OCRoscope](https://github.com/Pleias/OCRoscope)
## Dataset Usage
- Load the entire dataset
  ```python
  from datasets import load_dataset
  
  ds = load_dataset("coral-nlp/german-commons")
  ```
- Load a thematic subset
  ```python
  ds = load_dataset("coral-nlp/german-commons", "cultural")
  ```
- Load individual source datasets
  ```python
  wikipedia = load_dataset("coral-nlp/german-commons", "web", split="wikipedia")
  ```
Supported splits and constituent datasets are:
| Subset | Split Key | Dataset Name | Docs | Tokens | License | Text Type | Source |
|:-------------|:----------------------------|:------------------------------------------------------|----------:|---------------:|:-------------|:---------------------------|:----------------------------------------------------------------- |
| `web` | `wikipedia` | Wikipedia | 2,930,224 | 2,948,751,608 | CC-BY-SA-4.0 | Various | [π](https://zenodo.org/records/14748605) |
| `web` | `wikivoyage` | Wikivoyage | 20,370 | 42,025,478 | CC-BY-SA-4.0 | Travel | [π](https://zenodo.org/records/14748553) |
| `web` | `wikidiscussions` | Wikipedia Discussions | 8,349,076 | 1,218,210,917 | CC-BY-SA-4.0 | Online Discussions | [π](https://corpora.ids-mannheim.de/pub/wikipedia-deutsch/2024/) |
| `web` | `youtubecommons` | YouTube Commons | 2,809,714 | 14,478,850,964 | Various | Video Subtitles | [π](https://huggingface.co/datasets/PleIAs/YouTube-Commons) |
| `web` | `onemillionposts` | One Million Posts Corpus | 946,082 | 94,872,633 | CC-BY-4.0 | Online Discussions | [π](https://ofai.github.io/million-post-corpus/) |
| `web` | `thestack` | The Stack (Markdown and TXT Subsets) | 421,466 | 1,105,173,228 | Various | Various | [π](https://huggingface.co/datasets/bigcode/the-stack-dedup) |
| `political` | `reichtagsprotokolle` | Reichtagsprotokolle | 522 | 703,495,637 | CC-BY-SA-4.0 | Parliamentary Protocols | [π](https://zenodo.org/records/10225467) |
| `political` | `germanpoliticalspeeches` | German Political Speeches | 6,678 | 29,409,655 | CC-BY-4.0 | Speech Transcripts | [π](https://zenodo.org/records/3611246) |
| `political` | `btdrucksachen` | Corpus der Drucksachen des Deutschen Bundestages | 3,017 | 528,769,669 | CC0-1.0 | Parliamentary Publications | [π](https://zenodo.org/records/4643066) |
| `political` | `btplenarprotokolle` | Corpus der Plenarprotokolle des Deutschen Bundestages | 1,833 | 316,034,708 | CC0-1.0 | Parliamentary Protocols | [π](https://zenodo.org/records/4542662) |
| `political` | `eurovoc` | EuroVoc | 245,838 | 1,988,111,462 | EUPL | Parliamentary Publications | [π](https://huggingface.co/datasets/EuropeanParliament/Eurovoc) |
| `legal` | `bundesrecht` | Corpus des Deutschen Bundesrechts | 3,217 | 1,004,294 | CC0-1.0 | German Federal Laws | [π](https://zenodo.org/records/14592346) |
| `legal` | `openlegaldata` | OpenLegalData | 249,909 | 1,915,956,613 | CC0-1.0 | Court Decisions | [π](https://huggingface.co/datasets/schneiderai/openlegaldata) |
| `legal` | `bfh` | Corpus der Entscheidungen des BFH | 10,885 | 67,791,931 | CC0-1.0 | Court Decisions | [π](https://zenodo.org/records/14622341) |
| `legal` | `bgh20` | Entscheidungen des BGH in Strafsachen des 20. Jhd. | 36,062 | 92,873,390 | CC0-1.0 | Court Decisions | [π](https://zenodo.org/records/4540377) |
| `legal` | `bgh` | Corpus der Entscheidungen des BGH | 77,258 | 292,832,709 | CC0-1.0 | Court Decisions | [π](https://zenodo.org/records/12814022) |
| `legal` | `bverfg` | Corpus der Entscheidungen des BVerfG | 8,028 | 39,503,223 | CC0-1.0 | Court Decisions | [π](https://zenodo.org/records/12705674) |
| `legal` | `bpatg` | Corpus der Entscheidungen des BpatG | 30,705 | 185,099,188 | CC0-1.0 | Court Decisions | [π](https://zenodo.org/records/10849977) |
| `legal` | `bverwg` | Corpus der Entscheidungen des BVerwG | 27,185 | 123,487,739 | CC0-1.0 | Court Decisions | [π](https://zenodo.org/records/10809039) |
| `legal` | `bverfgaes` | Corpus der amtl. Entscheidungssammlung des BVerfG | 919 | 24,427,294 | CC0-1.0 | Court Decisions | [π](https://zenodo.org/records/10783177) |
| `legal` | `bag` | Corpus der Entscheidungen des BAG | 5,624 | 48,248,111 | CC0-1.0 | Court Decisions | [π](https://zenodo.org/records/4006645) |
| `legal` | `eurlex` | EurLEX | 64,934 | 201,263,562 | CC-BY-4.0 | European Union Laws | [π](https://zenodo.org/record/5363165/) |
| `news` | `zeitungsportal` | Deutsches Zeitungsportal | 8,076,164 | 43,871,094,547 | CC0-1.0 | News Articles | [π](https://www.deutsche-digitale-bibliothek.de/newspaper) |
| `news` | `europeana` | Europeana Newspapers | 3,256,341 | 20,684,418,365 | CC0-1.0 | News Articles | [π](https://huggingface.co/datasets/biglam/europeana_newspapers) |
| `news` | `anno` | ANNO | 1,910,281 | 8,103,825,248 | CC0-1.0 | News Articles | [π](https://labs.onb.ac.at/en/datasets/anno/) |
| `news` | `wikinews` | WikiNews | 23,266 | 14,222,520 | CC-BY-4.0 | News Articles | [π](https://de.wikinews.org) |
| `economic` | `tedeutenders` | TEDEUTenders | 57,214 | 110,611,112 | CC0-1.0 | Procurement Notices | [π](https://huggingface.co/datasets/PleIAs/TEDEUTenders) |
| `cultural` | `dibilit` | DiBiLit-Korpus | 2,062 | 216,391,448 | CC-BY-SA-4.0 | Literature | [π](https://zenodo.org/records/5786725) |
| `cultural` | `dibiphil` | DiBiPhil-Korpus | 269 | 32,151,997 | CC-BY-SA-4.0 | Literature | [π](https://github.com/deutschestextarchiv/DiBiPhil) |
| `cultural` | `wikisource` | Wikisource | 240,689 | 347,770,430 | CC-BY-SA-4.0 | Various | [π](https://dumps.wikimedia.org/dewikisource/20250801/) |
| `cultural` | `germanpd` | German-PD | 123,592 | 49,333,198,231 | CC0-1.0 | Literature | [π](https://huggingface.co/datasets/PleIAs/German-PD) |
| `cultural` | `blbooks` | BLBooks | 3,714 | 1,012,047,216 | CC0-1.0 | Literature | [π](https://huggingface.co/datasets/biglam/blbooks-parquet) |
| `cultural` | `mosel` | MOSEL | 3,127,203 | 3,181,917,752 | CC-BY-4.0 | Speech Transcripts | [π](https://huggingface.co/datasets/FBK-MT/mosel) |
| `cultural` | `sbbfulltexts` | SBB Fulltexts | 2,605,569 | 358,514,283 | CC-BY-4.0 | Literature | [π](https://zenodo.org/records/7716098) |
| `cultural` | `wikiquote` | Wikiquote | 8,612 | 6,688,458 | CC-BY-4.0 | Quotes & Proverbs | [π](https://de.wikiquote.org) |
| `scientific` | `wikibooks` | Wikibooks | 346 | 180,257,799 | CC-BY-SA-4.0 | Educational Books | [π](https://zenodo.org/records/14748586) |
| `scientific` | `polyjournal` | Digitalisierung des Polytechnischen Journals | 27,292 | 50,434,996 | CC-BY-SA-4.0 | Scholarly Papers | [π](https://github.com/deutschestextarchiv/dingler) |
| `scientific` | `doab` | Directory of Open Access Books | 1,939 | 166,920,321 | Various | Scholarly Books | [π](https://www.doabooks.org) |
| `scientific` | `arxiv` | arXiv | 8 | 103,478 | Various | Scholarly Papers | [π](https://www.kaggle.com/datasets/Cornell-University/arxiv) |
| `scientific` | `openalex` | OpenAlex | 47,733 | 413,632,648 | Various | Educational Content | [π](https://de.wikiversity.org) |
| `scientific` | `wikiversity` | Wikiversity | 16,371 | 27,802,099 | CC-BY-SA-4.0 | Scholarly Papers | [π](https://openalex.org) |
## Citation
If you use this dataset, please cite the correponding paper:
```bibtex
@article{gienapp:2025d,
	title        = {{The German Commons -- 154 Billion Tokens of Openly Licensed Text for German Language Models}},
	author       = {Lukas Gienapp and
                    Christopher Schr\"oder and
                    Stefan Schweter and
                    Christopher Akiki and
                    Ferdinand Schlatt and
                    Arden Zimmermann and
                    Phillipe Gen\^et and
                    Martin Potthast},
	year         = 2025,
	month        = oct,
	journal      = {CoRR},
	volume       = {abs/2510.13996},
	url          = {https://arxiv.org/abs/2510.13996}
}
```
## License
This dataset aggregation and metadata is released under ODC-BY license. Individual documents have their own specific licenses - please check the `license` field for each record. | 
