Dataset Viewer
Auto-converted to Parquet Duplicate
identifier
stringlengths
8
3.84k
collection
stringclasses
40 values
open_type
stringclasses
4 values
license
stringclasses
5 values
date
float64
1k
2.02k
title
stringlengths
1
4k
creator
stringlengths
0
3.04k
language
stringclasses
1 value
language_type
stringclasses
2 values
word_count
int64
1
2.9M
token_count
int64
4
6.44M
text
stringlengths
5
18.7M
__index_level_0__
int64
0
51.5k
https://stackoverflow.com/questions/19086572
StackExchange
Open Web
CC-By-SA
2,013
Stack Exchange
Alhaytham Alfeel, GrIsHu, https://stackoverflow.com/users/1839336, https://stackoverflow.com/users/2829160
Dutch
Spoken
1,014
2,986
Imageloader for displaying the Image in an activity Check this URL I am USING :: http://54.218.73.244:7006/DescriptionSortedRating/ Images will append with relative path from JSON out put using restaurantIMAGE EX:: http://54.218.73.244:7006/CopperChimney1.jpg I am using restaurantIMAGE from JSON { "restaurants": [ ...
7,970
https://nl.wikipedia.org/wiki/Rolf%20M.%20Zinkernagel
Wikipedia
Open Web
CC-By-SA
2,023
Rolf M. Zinkernagel
https://nl.wikipedia.org/w/index.php?title=Rolf M. Zinkernagel&action=history
Dutch
Spoken
312
579
Rolf Martin Zinkernagel (Riehen, 6 januari 1944) is een Zwitsers immunoloog, en professor experimentele immunologie aan de Universiteit Zürich. In 1995 won hij samen met Peter C. Doherty de Nobelprijs voor de Fysiologie of Geneeskunde. Biografie Zinkernagel haalde in 1970 zijn Doctor of Medicine aan de Universiteit v...
42,578
https://nl.wikipedia.org/wiki/European%20Automotive%20Hall%20of%20Fame
Wikipedia
Open Web
CC-By-SA
2,023
European Automotive Hall of Fame
https://nl.wikipedia.org/w/index.php?title=European Automotive Hall of Fame&action=history
Dutch
Spoken
140
286
De European Automotive Hall of Fame is een onderscheiding voor mannen of vrouwen die een belangrijke bijdrage hebben geleverd aan de (Europese) automobiel. Het is ook min of meer een antwoord op haar Amerikaanse tegenhanger (The Automotive Hall of Fame), waar bijna geen Europese namen terug te vinden zijn. 2001 Gian...
21,455
https://nl.wikipedia.org/wiki/Julian%20Willems
Wikipedia
Open Web
CC-By-SA
2,023
Julian Willems
https://nl.wikipedia.org/w/index.php?title=Julian Willems&action=history
Dutch
Spoken
133
240
Julian Willems (Wijchen, 29 juni 1992) is een Nederlands voetballer die als middenvelder voor FC Den Bosch speelde. Carrière Julian Willems speelde in de jeugd van SC Woezik en FC Den Bosch. In het seizoen 2010/11 zat hij één wedstrijd op de bank voor FC Den Bosch, maar kwam niet in actie. Hij debuteerde het seizoen ...
50,633
https://nl.wikipedia.org/wiki/CR208%20%28Luxemburg%29
Wikipedia
Open Web
CC-By-SA
2,023
CR208 (Luxemburg)
https://nl.wikipedia.org/w/index.php?title=CR208 (Luxemburg)&action=history
Dutch
Spoken
75
131
- Rue du Saint Esprit - Rue de l'Eau - Rue de la Reine - Rue du Curé |} |} De CR208 (Chemin Repris 208) is een voormalige verkeersroute in de stad en het land Luxemburg. De route had een lengte van ongeveer 170 meter. De route lag in het oude stadscentrum van Luxemburg en het wegnummer werd in 1995 opgeheven. H...
8,948
https://nl.wikipedia.org/wiki/Kanton%20Picquigny
Wikipedia
Open Web
CC-By-SA
2,023
Kanton Picquigny
https://nl.wikipedia.org/w/index.php?title=Kanton Picquigny&action=history
Dutch
Spoken
67
207
Kanton Picquigny is een voormalig kanton van het Franse departement Somme. Het kanton maakte deel uit van het arrondissement Amiens. Het werd opgeheven bij decreet van 26 februari 2014 met uitwerking in 2015. Gemeenten Het kanton Picquigny omvatte de volgende gemeenten: Ailly-sur-Somme Belloy-sur-Somme (Berken) ...
23,275
https://nl.wikipedia.org/wiki/Eatonigenia%20trirama
Wikipedia
Open Web
CC-By-SA
2,023
Eatonigenia trirama
https://nl.wikipedia.org/w/index.php?title=Eatonigenia trirama&action=history
Dutch
Spoken
39
67
Eatonigenia trirama is een haft uit de familie Ephemeridae. De wetenschappelijke naam van de soort is voor het eerst geldig gepubliceerd in 1973 door McCafferty. De soort komt voor in het Oriëntaals gebied. Ephemeridae Dier uit het Oriëntaals gebied
13,965
<urn:uuid:21044110-1d0f-4281-8fd6-2ac94b7881b8>
French Open Data
Open Government
Various open data
null
https://www.education.gouv.fr/recherche/tag/bac-pro/tag/bac-techno/tag/statistiques-tag
associations.gouv.fr
Dutch
Spoken
43
144
1 résultat correspond à votre recherche EDUGOUV: Publication dateMinFinAggregated archived filter- Tout -TrueFauxSort byRelevancePublication dateAffiner votre recherche en sélectionnant une ou plusieurs thématiquesStatistiques (1)(x)Note d'information (1)Baccalauréat (1)Bac (1)Bac 2021 (1)Depp (1)Bac pro (1)(x)Bac tech...
30,287
https://nl.wikipedia.org/wiki/I6%20%28spoorwegrijtuig%29
Wikipedia
Open Web
CC-By-SA
2,023
I6 (spoorwegrijtuig)
https://nl.wikipedia.org/w/index.php?title=I6 (spoorwegrijtuig)&action=history
Dutch
Spoken
330
663
I6 is de benaming voor een serie rijtuigen van de Belgische spoorwegen. De rijtuigen werden van 1977 tot 1978 gebouwd voor de nationale en internationale treindienst. De serie bestond aanvankelijk uit 20 eersteklasrijtuigen (A9) en 60 tweedeklasrijtuigen (B11) en maken deel uit van de Europese eenheidsserie rijtuigen d...
36,190
MMKB10:000599001:mpeg21_18
Dutch-PD
Open Culture
Public Domain
1,849
Militaire spectator; tijdschrift voor het Nederlandsche leger, 1849, 01-01-1849
null
Dutch
Spoken
7,053
12,360
Toen deze deugd hen niet meer versierde, waren zij die geduchte strijders niet meer, en zoo zien wij langzamerhand dat het eerste volk der oudheid, door weelde en overvloed ontzenuw d, voor wilde en woeste horden moest onderdoen. Krijgskundige wetenschap mogt de operatiën hunner legers besturen, de kracht ontbrak om he...
37,419
https://nl.wikipedia.org/wiki/Kanton%20Guiscard
Wikipedia
Open Web
CC-By-SA
2,023
Kanton Guiscard
https://nl.wikipedia.org/w/index.php?title=Kanton Guiscard&action=history
Dutch
Spoken
66
195
Guiscard is een voormalig kanton van het Franse departement Oise. Het kanton maakte deel uit van het arrondissement Compiègne. Ingevolge het decreet van 24 februari 2014 werd het kanton opgeheven met uitwerking vanaf maart 2015. Gemeenten Het kanton Guiscard omvatte de volgende gemeenten: Beaugies-sous-Bois Berlanc...
41,216
https://nl.wikipedia.org/wiki/Paramaka%20antonii
Wikipedia
Open Web
CC-By-SA
2,023
Paramaka antonii
https://nl.wikipedia.org/w/index.php?title=Paramaka antonii&action=history
Dutch
Spoken
39
67
Paramaka antonii is een haft uit de familie Leptophlebiidae. De wetenschappelijke naam van de soort is voor het eerst geldig gepubliceerd in 2005 door Sartori. De soort komt voor in het Neotropisch gebied. Leptophlebiidae Dier uit het Neotropisch gebied
48,735
https://nl.wikipedia.org/wiki/Bardineto
Wikipedia
Open Web
CC-By-SA
2,023
Bardineto
https://nl.wikipedia.org/w/index.php?title=Bardineto&action=history
Dutch
Spoken
76
190
Bardineto is een gemeente in de Italiaanse provincie Savona (regio Ligurië) en telt 642 inwoners (31-12-2004). De oppervlakte bedraagt 29,6 km², de bevolkingsdichtheid is 22 inwoners per km². Demografie Bardineto telt ongeveer 346 huishoudens. Het aantal inwoners daalde in de periode 1991-2001 met 6,8% volgens cijfer...
31,056
https://nl.wikipedia.org/wiki/Caledanapis%20pilupilu
Wikipedia
Open Web
CC-By-SA
2,023
Caledanapis pilupilu
https://nl.wikipedia.org/w/index.php?title=Caledanapis pilupilu&action=history
Dutch
Spoken
37
79
Caledanapis pilupilu is een spinnensoort in de taxonomische indeling van de Dwergkogelspinnen (Anapidae). Het dier behoort tot het geslacht Caledanapis. De wetenschappelijke naam van de soort werd voor het eerst geldig gepubliceerd in 1981 door Brignoli. Dwergkogelspinnen
15,029
https://nl.wikipedia.org/wiki/Chrysometa%20magdalena
Wikipedia
Open Web
CC-By-SA
2,023
Chrysometa magdalena
https://nl.wikipedia.org/w/index.php?title=Chrysometa magdalena&action=history
Dutch
Spoken
38
70
Chrysometa magdalena is een spinnensoort in de taxonomische indeling van de strekspinnen. Het dier behoort tot het geslacht Chrysometa. De wetenschappelijke naam van de soort werd voor het eerst geldig gepubliceerd in 1986 door Herbert W. Levi. Strekspinnen
6,854
http://publications.europa.eu/resource/cellar/3a13cd1a-e6df-4005-a671-2f90a715f06e_6
Eurovoc
Open Government
CC-By
2,004
Porozumienie w sprawie współpracy naukowej i technologicznej między Wspólnotą Europejską i Europejską Wspólnotą Energii Atomowej, z jednej strony, a Konfederacją Szwajcarską, z drugiej strony
None
Dutch
Spoken
11,454
21,496
gads) (še turpmāk –– “EK un Euratom sestās pamatprogrammas”); (1) OV L 114, 30. 4. 2002. , 468. lpp. (2) OV L 232, 29. 8. 2002. , 1. lpp. (3) OV L 355, 30. 12. 2002. , 23. lpp. (4) OV L 294, 29. 10. 2002. , 1. lpp. (5) OV L 294, 29. 10. 2002. , 44. lpp. (6) OV L 294, 29. 10. 2002. , 60. lpp. (7) OV L 232, 29. 8. 2002. ...
20,776
End of preview. Expand in Data Studio

Common Corpus v2 NL

This is a version of Common Corpus v2 filtered to keep only the rows where language is "Dutch".

Common Corpus is a very large open and permissible licensed text dataset created by Pleias. Please be sure to acknowledge the creators of the original dataset when using this filtered version.

Filtering

Common Corpus is a collection of disparate datasets. Note that filtering the entire collection for rows where the language is "Dutch" is not the same as filtering for entire datasets that are supposed to be Dutch-language. Since language classification is an automated process, there may be false positives and false negatives.

Examples are:

  • false positives: code from StackExchange, French from French-PD-diverse are included in Common Corpus NL when they shouldn't be.
  • false negatives: rows from Dutch-PD that were misclassified, for example as English, are not included in Common Corpus NL when they should be.

If you want to use entire datasets, you either have to look up what the source was for including it into Common Corpus, or filter Common Corpus yourself.

Usage

from datasets import load_dataset

# load the full dataset
dataset = load_dataset('Rijgersberg/common_corpus_nl', 'all', split='train')

# load only a specific subset
wikipedia = load_dataset('Rijgersberg/common_corpus_nl', 'Open Web-Wikipedia', split='train')

Contents

The dataset has the following content. Tokens are measured by the robbert-2023-dutch-base Dutch tokenizer on the text column only. word_count is taken directly from the word_count column of the dataset.

collection open_type row_count word_count token_count
Dutch-PD Open Culture 198,090 1,341,547,229 2,453,085,804
French-PD-diverse Open Culture 5,357 38,359,009 75,965,219
Gutenberg Open Culture 4,844 44,405,784 74,446,253
US-PD-Books Open Culture 3,714 23,298,108 53,772,090
Multilingual-PD Open Culture 3,164 22,935,496 45,033,262
English-PD Open Culture 2,622 18,344,861 38,407,512
German-PD Open Culture 1,744 12,434,468 26,319,336
US-PD-Newspapers Open Culture 1,478 5,297,259 11,335,348
Latin-PD Open Culture 637 4,406,870 9,623,548
LoC-PD-Books Open Culture 480 3,384,886 6,359,398
Italian-PD Open Culture 253 1,767,994 4,185,808
French-PD-Books Open Culture 195 1,462,312 3,326,121
Europeana Open Culture 126 751,961 2,018,302
Spanish-PD-Books Open Culture 114 819,389 1,831,298
French-PD-Newspapers Open Culture 117 589,899 1,352,344
Danish-PD Open Culture 36 260,479 578,291
Spanish-PD-Newspapers Open Culture 34 221,839 533,701
German-PD-Newspapers Open Culture 27 155,979 398,229
NewZealand-PD-Newspapers Open Culture 70 135,552 348,682
Polish-PD Open Culture 6 37,573 135,721
Portuguese-PD Open Culture 5 35,666 84,105
Greek-PD Open Culture 1 11,084 23,343
BNL Newspapers (1841-1879) Open Culture 42 6,409 17,658
Wikisource Open Culture 1 36 58
Eurlex Open Government 269,340 948,031,137 2,104,235,522
Eurovoc Open Government 46,006 480,170,115 971,763,805
French Open Data Open Government 228,097 211,210,103 546,913,250
Marianne-Europe Open Government 10,101 44,308,181 113,369,293
TEDEUTenders Open Government 5,105 3,423,351 8,123,266
USPTO Open Government 40 410,010 1,505,353
UN-Digital-Library Open Government 19 95,691 436,028
WTO Open Government 11 55,733 125,785
Court Listener Open Government 243 22,176 82,334
OECD Open Government 5 30,895 56,160
Caselaw Access Project Open Government 450 13,344 33,405
GATT_library Open Government 1 282 1,112
OpenAlex Open Science 11,867 76,200,223 142,457,454
French-Science-Pile Open Science 1,485 6,197,572 18,685,715
Open-Science-Pile Open Science 1,199 4,711,962 8,011,769
German-Science-Pile Open Science 985 4,234,708 7,488,555
Spanish-Science-Pile Open Science 163 1,071,826 2,263,934
Wikipedia Open Web 2,135,977 367,689,443 634,440,794
StackExchange Open Web 270,147 117,494,333 464,336,069
Youtube-Commons Open Web 1,982 5,886,772 8,329,426
None None 2 729 1,685
total 3,206,382 3,791,928,728 7,841,842,145

Code

In principle it is very easy to create Common Corpus NL by filtering Common Corpus using Hugging Face datasets' dataset.filter() functionality. However, Common Corpus is larger than my available disk space.

A possible solution is to process Common Corpus streaming and relying on the fact that the Dutch subset will be much, much smaller than the full dataset. The code for that solution is below. However, I was having trouble streaming the entire dataset without any connection errors along the way.

from datasets import load_dataset, Dataset


common_corpus = load_dataset('PleIAs/common_corpus', split='train', streaming=True)

def nl():
    for row in common_corpus:
        if row['language'] == 'Dutch':
            yield row

common_corpus_nl = Dataset.from_generator(nl)

common_corpus_nl.push_to_hub('Rijgersberg/common_corpus_nl')

Therefore I took the approach for every one of ten subfolders of Common Corpus:

  • downloading the subfolder in a fault-tolerant way
  • doing the filtering to Dutch rows only
  • uploading that by itself to the Hugging Face hub
  • deleting all the downloaded files and datasets cache files (around 1.5 TB for every subfolder)

Then finally I concatenated the ten Dutch datasets into a single one, which is the one you are looking at.

import shutil

from datasets import concatenate_datasets, load_dataset
from huggingface_hub import snapshot_download
from huggingface_hub.errors import LocalEntryNotFoundError
from requests import ReadTimeout


local_dir = '/path/to/downloadfolder/commoncorpus'

for i in range(1, 10+1):
    success = False
    while not success:
        try:
            # download one common corpus folder at a time to a local directory
            snapshot_download(  # will skip files that have already been downloaded
                repo_id='PleIAs/common_corpus',
                repo_type='dataset',
                allow_patterns=f'common_corpus_{i}/*',
                local_dir=local_dir
            )
            success = True
        except (LocalEntryNotFoundError, ReadTimeout) as e:
            print(e)

    subdataset = load_dataset(local_dir, split='train')
    subdataset = subdataset.filter(lambda lang: lang == 'Dutch', input_columns=['language'])

    subdataset.push_to_hub(f'Rijgersberg/common_corpus_nl_{i}')

    # remove local copies of the data to free up disk space
    shutil.rmtree(local_dir)
    shutil.rmtree('/path/to/cache/huggingface/datasets/commoncorpus')

# concatenate all (much smaller) Dutch datasets into a single dataset
common_corpus_nl = concatenate_datasets([load_dataset(f'Rijgersberg/common_corpus_nl_{i}', split='train')
                                         for i in range(1, 10+1)])
common_corpus_nl.push_to_hub('Rijgersberg/common_corpus_nl')
Downloads last month
1,177