zandervdm commited on
Commit
fe4cb7d
·
verified ·
1 Parent(s): d3934b9

Upload Dutch tax text snapshot

Browse files
LICENSE.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Licence and reuse terms
2
+ =======================
3
+
4
+ This dataset has no single licence. The texts come from different sources with different reuse terms, and each record names its own in the `license`, `license_url`, `license_basis`, `attribution` and `integrity_terms` fields. This file summarises those terms. It does not grant any rights beyond those of the original sources.
5
+
6
+ Website text under CC0 1.0
7
+ --------------------------
8
+
9
+ Records with `license` set to `CC0-1.0`, 14,075 chunks in the `main` configurations.
10
+
11
+ - belastingdienst.nl, Dutch and English pages: https://www.belastingdienst.nl/wps/wcm/connect/bldcontentnl/niet_in_enig_menu/prive/copyright
12
+ - kennisgroepen.belastingdienst.nl: https://kennisgroepen.belastingdienst.nl/copyright/
13
+ - rijksoverheid.nl: https://www.rijksoverheid.nl/copyright
14
+ - government.nl: https://www.government.nl/service/copyright
15
+
16
+ These sites publish their text under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/). Images, video and other components with their own copyright notice are excluded from that, and none are in this dataset. Reusers must not give the impression that the source authority has reviewed or approved their version.
17
+
18
+ Laws and Staatscourant publications
19
+ -----------------------------------
20
+
21
+ Records with `license` set to `LicenseRef-NL-Public-Acts`, 23,270 chunks in the `main` configurations: 4,731 from laws (BWB) and 18,539 from the Staatscourant.
22
+
23
+ Article 11 of the Dutch Copyright Act states that there is no copyright on laws, decisions and regulations issued by public authorities: https://wetten.overheid.nl/BWBR0001886/#HoofdstukI_Paragraaf3_Artikel11 . This is a statutory basis rather than a licence. Individual annexes or third-party material inside a publication may fall outside it.
24
+
25
+ Douane text
26
+ -----------
27
+
28
+ All records in the `douane` configurations, 2,249 chunks.
29
+
30
+ douane.nl allows reuse under the Dutch Reuse of Government Information Act, on two conditions: name the Douane as the source, and make no changes that affect the meaning or integrity of the information. Terms: https://www.douane.nl/copyright
31
+
32
+ The passage text is unchanged, but a passage taken out of its page can lose context. Check the original page when meaning matters.
33
+
34
+ Contact
35
+ -------
36
+
37
+ For corrections or takedown requests, send the document or chunk ID, the source URL and the reason to zander@meerdevelopment.nl.
README.md ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Dutch Tax Text Corpus (2026-10-19)
3
+ language:
4
+ - nl
5
+ - en
6
+ license: other
7
+ license_name: mixed-cc0-dutch-public-acts-and-douane-terms
8
+ license_link: LICENSE.md
9
+ size_categories:
10
+ - 10K<n<100K
11
+ task_categories:
12
+ - text-retrieval
13
+ - question-answering
14
+ source_datasets:
15
+ - original
16
+ tags:
17
+ - tax
18
+ - legal
19
+ - dutch
20
+ - government
21
+ - rag
22
+ - snapshot
23
+ configs:
24
+ - config_name: main_chunks
25
+ default: true
26
+ data_files:
27
+ - split: train
28
+ path: main/chunks.parquet
29
+ - config_name: main_documents
30
+ data_files:
31
+ - split: train
32
+ path: main/documents.parquet
33
+ - config_name: douane_chunks
34
+ data_files:
35
+ - split: train
36
+ path: douane/chunks.parquet
37
+ - config_name: douane_documents
38
+ data_files:
39
+ - split: train
40
+ path: douane/documents.parquet
41
+ ---
42
+
43
+ Dutch Tax Text Corpus (2026-10-19)
44
+ ==================================
45
+
46
+ Public Dutch tax and customs texts, cleaned and split into passages, with the source URL, crawl time, tax year and reuse terms on every record. The corpus combines website text from the Belastingdienst, its Kennisgroepen, Rijksoverheid, Government.nl and the Douane with 31 tax laws and 1,605 Staatscourant publications.
47
+
48
+ It is meant as a ready base for Dutch tax search and RAG systems, retrieval benchmarks and the evaluation of language models on Dutch tax questions. It was compiled by [MeerDevelopment](https://huggingface.co/MeerDevelopment) from a crawl on 2026-10-19.
49
+
50
+ This is an unofficial snapshot. It is not endorsed by or affiliated with the Belastingdienst, the Douane or any other source authority, and it is not tax or legal advice. Tax rules change every year, so always check the original source.
51
+
52
+ Contents
53
+ --------
54
+
55
+ | Configuration | File | Rows | Contents |
56
+ | --- | --- | ---: | --- |
57
+ | `main_chunks` (default) | `main/chunks.parquet` | 37,345 | Text passages from websites, laws and Staatscourant |
58
+ | `main_documents` | `main/documents.parquet` | 9,842 | Metadata per document, with its chunk IDs |
59
+ | `douane_chunks` | `douane/chunks.parquet` | 2,249 | Text passages from douane.nl |
60
+ | `douane_documents` | `douane/documents.parquet` | 1,391 | Metadata per Douane document |
61
+
62
+ The documents tables hold metadata only. The text lives in the chunks tables, and a document's chunks are the passages that survived deduplication, so they do not always add up to the complete original page. The Douane texts are a separate configuration because their reuse terms differ (see below). Each configuration has a single `train` split; it is not a curated train/test division.
63
+
64
+ | Source | Documents | Chunks | Coverage | Reuse basis |
65
+ | --- | ---: | ---: | --- | --- |
66
+ | belastingdienst.nl (NL and EN) | 4,228 | 6,195 | Website, crawled 2026-10-19 | CC0 1.0 |
67
+ | kennisgroepen.belastingdienst.nl | 2,694 | 6,182 | Standpunten and news | CC0 1.0 |
68
+ | rijksoverheid.nl | 946 | 1,492 | Tax topics | CC0 1.0, except texts marked as copyrighted |
69
+ | government.nl | 147 | 206 | Tax topics in English | CC0 1.0, except texts marked as copyrighted |
70
+ | Legislation (BWB) | 222 | 4,731 | 31 laws, versions in force 2020 to 2026 | Public act, no copyright (Auteurswet art. 11) |
71
+ | Staatscourant | 1,605 | 18,539 | Tax decisions published 2008 to 2026 | Public act, no copyright (Auteurswet art. 11) |
72
+ | douane.nl | 1,391 | 2,249 | Website | Reuse allowed with source naming, see below |
73
+
74
+ Usage
75
+ -----
76
+
77
+ ```python
78
+ from datasets import load_dataset
79
+
80
+ repo = "MeerDevelopment/dutch-tax-text-corpus"
81
+ chunks = load_dataset(repo, "main_chunks", split="train")
82
+ documents = load_dataset(repo, "main_documents", split="train")
83
+
84
+ cc0_only = chunks.filter(lambda row: row["license"] == "CC0-1.0")
85
+
86
+ doc_by_id = {doc["doc_id"]: doc for doc in documents}
87
+ chunk = chunks[0]
88
+ print(chunk["text"][:200])
89
+ print(doc_by_id[chunk["doc_id"]]["url"], chunk["crawl_timestamp"])
90
+ ```
91
+
92
+ Use `douane_chunks` and `douane_documents` for the customs texts. Filter on `license` to select one reuse basis: `CC0-1.0` for the website texts, `LicenseRef-NL-Public-Acts` for laws and Staatscourant.
93
+
94
+ Licence and attribution
95
+ -----------------------
96
+
97
+ There is no single licence for the whole dataset; each record carries its own `license`, `license_url`, `license_basis`, `attribution` and `integrity_terms`. In short:
98
+
99
+ - Website text from belastingdienst.nl, kennisgroepen, rijksoverheid.nl and government.nl (14,075 chunks) is published by those sites under CC0 1.0. Images and other components with their own notice are excluded from that and are not in this dataset.
100
+ - Laws and Staatscourant publications (23,270 chunks) have no copyright under article 11 of the Dutch Copyright Act. That is a statutory basis, not a CC0 grant.
101
+ - Douane text (2,249 chunks) may be reused if you name the Douane as the source and do not change its meaning.
102
+
103
+ Details and links to the original terms are in [LICENSE.md](LICENSE.md). Reusers must not suggest that a source authority has reviewed or endorsed their work.
104
+
105
+ Fields
106
+ ------
107
+
108
+ Fields in both tables:
109
+
110
+ | Field | Type | Meaning |
111
+ | --- | --- | --- |
112
+ | `source` | string | Source key, such as `belastingdienst` or `bwb` |
113
+ | `url`, `fetched_url` | string | Canonical source URL and the URL actually fetched |
114
+ | `title`, `lang`, `topic` | string | Title, language (`nl` or `en`) and tax topic |
115
+ | `raw_format` | string | Format of the source (HTML or XML); raw files are not included |
116
+ | `as_of` | string | Date from the source: modification date, publication date or start of validity |
117
+ | `crawl_timestamp` | timestamp (UTC) | When the text was downloaded |
118
+ | `crawl_timestamp_provenance` | string | Which crawl record supplied the timestamp |
119
+ | `tax_year`, `tax_years` | int32, list of int32 | Tax year(s) the text applies to, or null |
120
+ | `license`, `license_url`, `license_basis`, `attribution`, `integrity_terms` | string | Reuse terms per record |
121
+
122
+ Documents only: `doc_id`, `doc_type`, `valid_to` and `bwb_id` (string), `text_chars` and `retained_chunk_count` (int64), `tax_relevant` (bool) and `chunk_ids` (list of string).
123
+
124
+ Chunks only: `chunk_id`, `doc_id`, `breadcrumb`, `text` and `bwb_id` (string), `doc_ids` (list of string) and `n_versions` (int64).
125
+
126
+ Notes on some fields:
127
+
128
+ - `tax_year` comes from the law version for BWB. For the other sources it is guessed from the title and URL, so treat it as a hint.
129
+ - `as_of` is not the crawl date; use `crawl_timestamp` for that.
130
+ - `tax_relevant` is an automatic guess. Pages marked `false` (1,642 documents) are included anyway, and the field is null for laws and Staatscourant.
131
+ - A law passage that is identical across versions is stored once. Its `doc_ids` lists every version it belongs to and `n_versions` counts them, so use `doc_ids`, not just `doc_id`, to rebuild a version.
132
+ - `chunk_ids` gives membership, not a guaranteed reading order. `text_chars` is the length of the processed document before deduplication.
133
+
134
+ How it was made
135
+ ---------------
136
+
137
+ The websites were crawled on 2026-10-19 and the main text was extracted from each page, without menus, footers, images or embedded media. Laws came as XML from the official BWB repository and Staatscourant publications from the open overheid.nl repository. Text was split into passages and near-duplicate passages were removed; documents with no passages left were dropped, so duplicate pages and their alternative URLs are not listed. Passage text is otherwise unchanged.
138
+
139
+ Left out on purpose:
140
+
141
+ - all PDF files, including brochures and explanatory notes;
142
+ - court rulings;
143
+ - business.gov.nl and ondernemersplein.overheid.nl, whose terms forbid redistribution;
144
+ - 39 further pages flagged in a rights and privacy audit: direct phone numbers of staff, estate notices naming private persons, third-party licensed text, password-protected pages, pages from other hosts and mixed-language pages.
145
+
146
+ The four Parquet files are checked against a SHA256 manifest of the verified export.
147
+
148
+ Limitations
149
+ -----------
150
+
151
+ - The privacy and rights screening was automated, with manual review of samples. Names of officials in their public role remain. The dataset may still contain personal data or third-party material that the screening missed.
152
+ - Passages can lack context from the surrounding page, and extraction or deduplication can make them incomplete.
153
+ - This is a snapshot. Rates, thresholds and rules change, and older Staatscourant decisions may have been withdrawn or replaced.
154
+
155
+ Citation
156
+ --------
157
+
158
+ ```bibtex
159
+ @misc{meerdevelopment2026dutchtax,
160
+ title = {Dutch Tax Text Corpus (2026-10-19)},
161
+ author = {{MeerDevelopment}},
162
+ year = {2026},
163
+ howpublished = {\url{https://huggingface.co/datasets/MeerDevelopment/dutch-tax-text-corpus}},
164
+ note = {Snapshot crawled on 2026-10-19}
165
+ }
166
+ ```
167
+
168
+ Corrections and takedown
169
+ ------------------------
170
+
171
+ Send the document or chunk ID, the source URL and the reason to zander@meerdevelopment.nl, and the record will be corrected or removed.
douane/chunks.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e21604c561a75493635ea639de7f3253700e371d638190cf546344ffd0c29e14
3
+ size 1092615
douane/documents.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc6c32ff3379a2a91088ad9d2f0d75ed96f19da9c7bc4832391a1fe19bc03d9c
3
+ size 142231
main/chunks.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:743e6815953142ce93a3e698dac6c0df6144a42bc82a18461fbba214ab807fb4
3
+ size 19451458
main/documents.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ecef2b8b6b9a023a49fa55d2d776ee80e20280672d47a809b19ac0297672f68
3
+ size 1106181