Datasets:
feat(data): european_hplt_v3_pl expansion WDS bins 10-5 (+1.49M docs / 2.04B tok)
#12
by Maggio33 - opened
- CHANGELOG.md +100 -75
- README.md +461 -463
- data/european_hplt_v3_pl/european_hplt_v3_pl.md +32 -30
- data/european_hplt_v3_pl/european_hplt_v3_pl.parquet +2 -2
- data/european_hplt_v3_pl/european_hplt_v3_pl.stats.json +11 -6
- src/make_docs.py +411 -399
- src/sources.py +348 -344
CHANGELOG.md
CHANGED
|
@@ -1,75 +1,100 @@
|
|
| 1 |
-
# Changelog
|
| 2 |
-
|
| 3 |
-
## v0.2.
|
| 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 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Changelog
|
| 2 |
+
|
| 3 |
+
## v0.2.4 (2026-08-07)
|
| 4 |
+
|
| 5 |
+
- Expanded `european_hplt_v3_pl` (Arkadiusz Słota / `Maggio33`) from HPLT v3.0
|
| 6 |
+
WDS quality bins 10+9 to **WDS bins 10-5**: +1,493,384 documents /
|
| 7 |
+
2,043,141,874 cl100k-proxy tokens, 100% CC0-1.0. The source total is now
|
| 8 |
+
1,603,974 documents / 2,555,525,652 tokens.
|
| 9 |
+
- Phone PII-scrub hardening (v12b): an independent-lens deep verification caught
|
| 10 |
+
a systematic phone recall-gap (~1,900 real phone numbers) that the pipeline's
|
| 11 |
+
self-report (idempotency) was structurally blind to — address-block
|
| 12 |
+
suppression, `dzwoń`-label family, leading-0 landline, `+48`-paren,
|
| 13 |
+
newline-over-span and foreign-UK-bare formats. Fixed and dual-independently
|
| 14 |
+
verified; the residual 0.0135% is a classified clearance-tail. Phones map to a
|
| 15 |
+
`[Telefon]` semantic tag (anti-poisoning, not a fake number).
|
| 16 |
+
- Cross-source deduplication of the expansion against the existing WDS-10+9
|
| 17 |
+
shards: removed 3,038 near-duplicate documents (truncation variants);
|
| 18 |
+
exact-dup 0, near-dup overlap 0.0000% (byte-verified). Resolves the
|
| 19 |
+
"downstream near-dedup remains" caveat from the original release.
|
| 20 |
+
- Contract-revalidated the merged parquet (canonical schema, non-empty text,
|
| 21 |
+
positive token counts, uniform source/license, stats-file consistency).
|
| 22 |
+
- Expanded contributor credit for Arkadiusz Słota (`Maggio33`) for the WDS 10-5
|
| 23 |
+
expansion, PII-scrub and dedup work.
|
| 24 |
+
- Updated the complete-corpus release totals from per-source parquet stats:
|
| 25 |
+
4,246,429 documents and 9,597,908,067 cl100k-proxy tokens (also reflects the
|
| 26 |
+
separately-merged `biblioteka_nauki` source now present on main).
|
| 27 |
+
|
| 28 |
+
## v0.2.3 (2026-07-26)
|
| 29 |
+
|
| 30 |
+
- Added the community contribution `european_hplt_v3_pl` by Arkadiusz Słota
|
| 31 |
+
(`Maggio33`): HPLT v3.0 Polish WDS quality bins 10+9, 110,590 documents and
|
| 32 |
+
512,383,778 cl100k-proxy tokens under CC0-1.0 packaging.
|
| 33 |
+
- Added the reviewed `global_voices` contribution by Dawid Majewski
|
| 34 |
+
(`dawidmajewski`): 2,040 documents / 3,715,020 tokens with CC-BY-3.0 and
|
| 35 |
+
per-document author attribution metadata.
|
| 36 |
+
- Added `nkjp1m` from contributor `1am`: 18,381 documents / 2,601,201 tokens
|
| 37 |
+
from the manually annotated 1-million-word NKJP subcorpus under the upstream
|
| 38 |
+
version-unspecified CC-BY statement.
|
| 39 |
+
- Revalidated the contributed parquet against the canonical schema, non-empty
|
| 40 |
+
text, positive token counts, uniform source/license metadata, and stats-file
|
| 41 |
+
consistency.
|
| 42 |
+
- Updated the complete 16-source release totals from per-source parquet stats:
|
| 43 |
+
2,710,974 documents and 6,881,277,362 cl100k-proxy tokens.
|
| 44 |
+
- Recomputed the full-corpus phrase-frequency report and charts. Updated the
|
| 45 |
+
Arrow reporting path to use 64-bit string offsets for large row groups.
|
| 46 |
+
- Fixed `src/test_hplt_v3_contract.py` to resolve its fixture relative to the
|
| 47 |
+
repository instead of a contributor-local Windows path.
|
| 48 |
+
- Added public contributor credit for Arkadiusz Słota (`Maggio33`) and Paweł
|
| 49 |
+
Puzio (`ppuzio`, author of the `govpl` contribution released in v0.2.2), plus
|
| 50 |
+
Dawid Majewski (`dawidmajewski`) for Global Voices Polish.
|
| 51 |
+
- HPLT caveat: CC0 applies to the HPLT packaging; underlying web documents can
|
| 52 |
+
carry independent rights. Downstream near-dedup and web-content review remain
|
| 53 |
+
recommended before training.
|
| 54 |
+
|
| 55 |
+
## v0.2.2 (2026-07-19)
|
| 56 |
+
|
| 57 |
+
- Added `govpl` — gov.pl Polish government press releases (CC-BY-SA-4.0),
|
| 58 |
+
88,190 documents / 80.7M tokens, fetched directly from gov.pl across 133
|
| 59 |
+
ministry/agency subsites. New scripts: `src/discover_govpl.py` (discovers each
|
| 60 |
+
subsite's news-section path into the committed `src/govpl_subsites.json`
|
| 61 |
+
manifest) and `src/fetch_govpl.py` (pure-stdlib crawl of that manifest).
|
| 62 |
+
- Stable totals after adding govpl: 13 sources, 2,579,963 docs, 6.36B tokens
|
| 63 |
+
(tiktoken proxy).
|
| 64 |
+
- Article date range 2005-09-26 → 2026-07-19. Build dropped 24 non-Polish and
|
| 65 |
+
deduped 1,926 cross-posted articles (exact sha1).
|
| 66 |
+
|
| 67 |
+
## v0.3.1-preview (2026-07-10)
|
| 68 |
+
|
| 69 |
+
- Added a separate 810-document Europeana direct-ingestion preview parquet at
|
| 70 |
+
`previews/v0.3.1/europeana.parquet`. It was built from 1,000 live API records
|
| 71 |
+
using per-record rights/creator metadata in 59.4 seconds; 808 retained records are Public
|
| 72 |
+
Domain Mark and two are CC-BY-SA-4.0.
|
| 73 |
+
- The direct source gate dropped 181 non-Polish and nine OCR-garble records.
|
| 74 |
+
`dsbench` found unique IDs, no empty text, no duplicate text and no eval-set
|
| 75 |
+
overlap. Potential-phone matches remain warnings for manual review.
|
| 76 |
+
- This preview does not change v0.2.1 stable totals or promote Europeana to a
|
| 77 |
+
stable source. It is the measured contract for the full rights-preserving run.
|
| 78 |
+
|
| 79 |
+
## v0.3.0-preview (in progress)
|
| 80 |
+
|
| 81 |
+
- Validated the source-policy gate on live local SpeakLeash shards: 12 reviewed
|
| 82 |
+
sources sampled and cleared blocking checks; four sources remain excluded and
|
| 83 |
+
two talk-page shards remain on hold pending a separate policy.
|
| 84 |
+
- Ran a direct Europeana 200-record rebuild probe with per-record rights and
|
| 85 |
+
creator metadata: 197 Public Domain Mark and three CC-BY-SA-4.0 records
|
| 86 |
+
cleared blocking validation. This is candidate validation, not a release
|
| 87 |
+
inclusion.
|
| 88 |
+
- Biblioteka Nauki direct probe currently returns HTTP 500 and is held out of
|
| 89 |
+
the preview until the upstream request is repaired and audited.
|
| 90 |
+
|
| 91 |
+
## v0.2.1 (2026-07-02)
|
| 92 |
+
|
| 93 |
+
- Released a stable metadata-schema update: `id, text, source, added, created, token_count, license, author`.
|
| 94 |
+
- Current release totals after parquet recount: 12 sources, 2,491,773 docs, 6.28B tokens (tiktoken proxy).
|
| 95 |
+
- Added `1000_novels` as a stable CC-BY-4.0 literature source.
|
| 96 |
+
- Added source registry entries and PR contract for future `biblioteka_nauki` and `europeana` ingestion with per-document license/author metadata. These sources are not included in v0.2.1 parquets yet.
|
| 97 |
+
- Credited Bart Kobyliński for source expansion work on Biblioteka Nauki and Europeana metadata/rebuild preparation.
|
| 98 |
+
- Kept raw SpeakLeash Europeana excluded unless a direct rebuild preserves per-record rights metadata.
|
| 99 |
+
- Sources: eurlex, parliamentary, wikisource, wikipedia, dziennik_ustaw, wolne_lektury, 1000_novels, wikiquote, eltec_pol, wikivoyage, wikibooks, wikinews.
|
| 100 |
+
- Excluded (see README): open_subtitles_corpus, europeana_eu_pl_corpus_raw_speakleash, project_gutenberg_pl_corpus.
|
README.md
CHANGED
|
@@ -1,463 +1,461 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: cc-by-sa-4.0
|
| 3 |
-
language:
|
| 4 |
-
- pl
|
| 5 |
-
pretty_name: Polish DynaWord
|
| 6 |
-
task_categories:
|
| 7 |
-
- text-generation
|
| 8 |
-
size_categories:
|
| 9 |
-
- 1M<n<10M
|
| 10 |
-
tags:
|
| 11 |
-
- polish
|
| 12 |
-
- pretraining
|
| 13 |
-
- dynaword
|
| 14 |
-
---
|
| 15 |
-
|
| 16 |
-
# Polish DynaWord
|
| 17 |
-
|
| 18 |
-
A continuously developed, **openly-licensed**, human-text Polish corpus — a Polish
|
| 19 |
-
edition in the [Dynaword](https://huggingface.co/datasets/danish-foundation-models/danish-dynaword)
|
| 20 |
-
family (Enevoldsen et al., [arXiv:2508.02271](https://arxiv.org/abs/2508.02271)).
|
| 21 |
-
|
| 22 |
-
> **v0.2.
|
| 23 |
-
> (
|
| 24 |
-
> Updated: **2026-
|
| 25 |
-
|
| 26 |
-
> **v0.3-dev experimental track** · quality/diversity workflow, source-gate
|
| 27 |
-
> validation and candidate-data audits. This is development work, not a released
|
| 28 |
-
> corpus version, and it does not replace the v0.2.
|
| 29 |
-
|
| 30 |
-
> **Europeana validation artifact (2026-07-10)** ·
|
| 31 |
-
> direct-ingestion
|
| 32 |
-
> 1
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
| 42 |
-
|
|
| 43 |
-
| `v0.2.
|
| 44 |
-
| `v0.2.
|
| 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 |
-
6
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
and
|
| 86 |
-
|
| 87 |
-
#### v0.2.
|
| 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 |
-
data.
|
| 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 |
-
| `1000_novels` | `
|
| 309 |
-
| `1000_novels` | `
|
| 310 |
-
| `1000_novels` | `
|
| 311 |
-
| `1000_novels` | `
|
| 312 |
-
| `1000_novels` | `
|
| 313 |
-
| `1000_novels` | `
|
| 314 |
-
| `
|
| 315 |
-
| `
|
| 316 |
-
| `
|
| 317 |
-
| `dziennik_ustaw` | `
|
| 318 |
-
| `dziennik_ustaw` | `
|
| 319 |
-
| `dziennik_ustaw` | `
|
| 320 |
-
| `dziennik_ustaw` | `
|
| 321 |
-
| `dziennik_ustaw` | `
|
| 322 |
-
| `dziennik_ustaw` | `
|
| 323 |
-
| `
|
| 324 |
-
| `
|
| 325 |
-
| `
|
| 326 |
-
| `eltec_pol` | `
|
| 327 |
-
| `eltec_pol` | `
|
| 328 |
-
| `eltec_pol` | `
|
| 329 |
-
| `eltec_pol` | `
|
| 330 |
-
| `eltec_pol` | `
|
| 331 |
-
| `eltec_pol` | `
|
| 332 |
-
| `
|
| 333 |
-
| `
|
| 334 |
-
| `
|
| 335 |
-
| `eurlex` | `
|
| 336 |
-
| `eurlex` | `
|
| 337 |
-
| `eurlex` | `
|
| 338 |
-
| `eurlex` | `
|
| 339 |
-
| `eurlex` | `
|
| 340 |
-
| `eurlex` | `
|
| 341 |
-
| `
|
| 342 |
-
| `
|
| 343 |
-
| `
|
| 344 |
-
| `european_hplt_v3_pl` | `
|
| 345 |
-
| `european_hplt_v3_pl` | `
|
| 346 |
-
| `european_hplt_v3_pl` | `
|
| 347 |
-
| `european_hplt_v3_pl` | `
|
| 348 |
-
| `european_hplt_v3_pl` | `
|
| 349 |
-
| `european_hplt_v3_pl` | `
|
| 350 |
-
| `
|
| 351 |
-
| `
|
| 352 |
-
| `
|
| 353 |
-
| `global_voices` | `
|
| 354 |
-
| `global_voices` | `
|
| 355 |
-
| `global_voices` | `
|
| 356 |
-
| `global_voices` | `
|
| 357 |
-
| `global_voices` | `
|
| 358 |
-
| `global_voices` | `
|
| 359 |
-
| `
|
| 360 |
-
| `
|
| 361 |
-
| `
|
| 362 |
-
| `govpl` | `
|
| 363 |
-
| `govpl` | `
|
| 364 |
-
| `govpl` | `
|
| 365 |
-
| `govpl` | `
|
| 366 |
-
| `govpl` | `
|
| 367 |
-
| `govpl` | `
|
| 368 |
-
| `
|
| 369 |
-
| `
|
| 370 |
-
| `
|
| 371 |
-
| `nkjp1m` | `
|
| 372 |
-
| `nkjp1m` | `
|
| 373 |
-
| `nkjp1m` | `
|
| 374 |
-
| `nkjp1m` | `
|
| 375 |
-
| `nkjp1m` | `
|
| 376 |
-
| `nkjp1m` | `
|
| 377 |
-
| `
|
| 378 |
-
| `
|
| 379 |
-
| `
|
| 380 |
-
| `parliamentary` | `
|
| 381 |
-
| `parliamentary` | `
|
| 382 |
-
| `parliamentary` | `
|
| 383 |
-
| `parliamentary` | `
|
| 384 |
-
| `parliamentary` | `
|
| 385 |
-
| `parliamentary` | `
|
| 386 |
-
| `
|
| 387 |
-
| `
|
| 388 |
-
| `
|
| 389 |
-
| `wikibooks` | `
|
| 390 |
-
| `wikibooks` | `
|
| 391 |
-
| `wikibooks` | `
|
| 392 |
-
| `wikibooks` | `
|
| 393 |
-
| `wikibooks` | `
|
| 394 |
-
| `wikibooks` | `
|
| 395 |
-
| `
|
| 396 |
-
| `
|
| 397 |
-
| `
|
| 398 |
-
| `wikinews` | `
|
| 399 |
-
| `wikinews` | `
|
| 400 |
-
| `wikinews` | `
|
| 401 |
-
| `wikinews` | `
|
| 402 |
-
| `wikinews` | `
|
| 403 |
-
| `wikinews` | `
|
| 404 |
-
| `
|
| 405 |
-
| `
|
| 406 |
-
| `
|
| 407 |
-
| `wikipedia` | `
|
| 408 |
-
| `wikipedia` | `
|
| 409 |
-
| `wikipedia` | `
|
| 410 |
-
| `wikipedia` | `
|
| 411 |
-
| `wikipedia` | `
|
| 412 |
-
| `wikipedia` | `
|
| 413 |
-
| `
|
| 414 |
-
| `
|
| 415 |
-
| `
|
| 416 |
-
| `wikiquote` | `
|
| 417 |
-
| `wikiquote` | `
|
| 418 |
-
| `wikiquote` | `
|
| 419 |
-
| `wikiquote` | `
|
| 420 |
-
| `wikiquote` | `
|
| 421 |
-
| `wikiquote` | `
|
| 422 |
-
| `
|
| 423 |
-
| `
|
| 424 |
-
| `
|
| 425 |
-
| `wikisource` | `
|
| 426 |
-
| `wikisource` | `
|
| 427 |
-
| `wikisource` | `
|
| 428 |
-
| `wikisource` | `
|
| 429 |
-
| `wikisource` | `
|
| 430 |
-
| `wikisource` | `
|
| 431 |
-
| `
|
| 432 |
-
| `
|
| 433 |
-
| `
|
| 434 |
-
| `wikivoyage` | `
|
| 435 |
-
| `wikivoyage` | `
|
| 436 |
-
| `wikivoyage` | `
|
| 437 |
-
| `wikivoyage` | `
|
| 438 |
-
| `wikivoyage` | `
|
| 439 |
-
| `wikivoyage` | `
|
| 440 |
-
| `
|
| 441 |
-
| `
|
| 442 |
-
| `
|
| 443 |
-
| `wolne_lektury` | `
|
| 444 |
-
| `wolne_lektury` | `
|
| 445 |
-
| `wolne_lektury` | `
|
| 446 |
-
| `wolne_lektury` | `
|
| 447 |
-
| `wolne_lektury` | `
|
| 448 |
-
| `wolne_lektury` | `
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-

|
| 463 |
-

|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-sa-4.0
|
| 3 |
+
language:
|
| 4 |
+
- pl
|
| 5 |
+
pretty_name: Polish DynaWord
|
| 6 |
+
task_categories:
|
| 7 |
+
- text-generation
|
| 8 |
+
size_categories:
|
| 9 |
+
- 1M<n<10M
|
| 10 |
+
tags:
|
| 11 |
+
- polish
|
| 12 |
+
- pretraining
|
| 13 |
+
- dynaword
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Polish DynaWord
|
| 17 |
+
|
| 18 |
+
A continuously developed, **openly-licensed**, human-text Polish corpus — a Polish
|
| 19 |
+
edition in the [Dynaword](https://huggingface.co/datasets/danish-foundation-models/danish-dynaword)
|
| 20 |
+
family (Enevoldsen et al., [arXiv:2508.02271](https://arxiv.org/abs/2508.02271)).
|
| 21 |
+
|
| 22 |
+
> **v0.2.4 stable** · 4,246,429 documents · **9.60B tokens**
|
| 23 |
+
> (tiktoken proxy; canonical Llama-3 count at release) · 17 sources
|
| 24 |
+
> Updated: **2026-08-07**
|
| 25 |
+
|
| 26 |
+
> **v0.3-dev experimental track** · quality/diversity workflow, source-gate
|
| 27 |
+
> validation and candidate-data audits. This is development work, not a released
|
| 28 |
+
> corpus version, and it does not replace the v0.2.4 stable parquets.
|
| 29 |
+
|
| 30 |
+
> **Europeana validation artifact (2026-07-10)** · a separate reproducible
|
| 31 |
+
> 810-document direct-ingestion sample stored under the legacy path
|
| 32 |
+
> `previews/v0.3.1/europeana.parquet`. It is not a full dataset release.
|
| 33 |
+
|
| 34 |
+
## Releases
|
| 35 |
+
|
| 36 |
+
### Stable releases
|
| 37 |
+
|
| 38 |
+
| version | status | documents | tokens | notes |
|
| 39 |
+
|---|---|---:|---:|---|
|
| 40 |
+
| `v0.2.4` | stable release | 4,246,429 | 9.60B | Expanded `european_hplt_v3_pl` to WDS bins 10-5 (+1.49M docs / 2.04B tok); phone PII-scrub hardening (independent dual-lens) + cross-source dedup (zero-overlap). |
|
| 41 |
+
| `v0.2.3` | previous stable | 2,710,974 | 6.88B | Adds community-contributed `european_hplt_v3_pl`, `global_voices` and `nkjp1m`. |
|
| 42 |
+
| `v0.2.2` | previous stable | 2,579,963 | 6.36B | Added community-contributed `govpl`: 88,190 docs / 80.7M tokens. |
|
| 43 |
+
| `v0.2.1` | previous stable | 2,491,773 | 6.28B | 12-source corpus with `license` and `author` metadata columns; added `1000_novels`. |
|
| 44 |
+
| `v0.2.0` | previous stable | 2,490,773 | 6.22B | Provenance-first corpus from 11 open/official sources. |
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
|
| 48 |
+
### Development and validation artifacts
|
| 49 |
+
|
| 50 |
+
| name | type | scope | notes |
|
| 51 |
+
|---|---|---|---|
|
| 52 |
+
| `v0.3-dev` | experimental development track | workflow and candidate audits | Quality remix, legal-source caps, source QA, deduplication and direct-upstream ingestion. Not a corpus release. |
|
| 53 |
+
| `Europeana validation artifact 2026-07-10` | reproducible sample | 810 documents / 140,042 tokens | Stored at the legacy path `previews/v0.3.1/europeana.parquet`; preserves per-record rights and creator metadata. Not a corpus release. |
|
| 54 |
+
|
| 55 |
+
### Version details
|
| 56 |
+
|
| 57 |
+
#### v0.2.4 — current stable
|
| 58 |
+
|
| 59 |
+
Expanded `european_hplt_v3_pl` from WDS bins 10+9 to **WDS bins 10-5** (added
|
| 60 |
+
quality bins 8/7/6/5 and further WDS-9 shards): **+1,493,384 documents /
|
| 61 |
+
2,043,141,874 cl100k-proxy tokens**, 100% CC0-1.0. Includes a phone PII-scrub
|
| 62 |
+
hardening pass (v12b) verified by two independent lenses (a systematic
|
| 63 |
+
recall-gap masked by pipeline self-report was caught pre-release), and
|
| 64 |
+
cross-source deduplication against the existing WDS-10+9 shards (exact-dup 0,
|
| 65 |
+
near-dup overlap 0.0000%, byte-verified) — resolving the "downstream near-dedup
|
| 66 |
+
remains" caveat from the original release.
|
| 67 |
+
|
| 68 |
+
#### v0.2.3 — previous stable
|
| 69 |
+
|
| 70 |
+
Community expansion release. Adds `european_hplt_v3_pl` from
|
| 71 |
+
[PR #5](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/5)
|
| 72 |
+
and `global_voices` from
|
| 73 |
+
[PR #7](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/7),
|
| 74 |
+
plus `nkjp1m` from
|
| 75 |
+
[PR #8](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/8).
|
| 76 |
+
The complete 16-source release contains **2,710,974 documents /
|
| 77 |
+
6,881,277,362 cl100k-proxy tokens**, summed from the released per-source parquet
|
| 78 |
+
statistics.
|
| 79 |
+
|
| 80 |
+
#### v0.2.2 — previous stable
|
| 81 |
+
|
| 82 |
+
Added `govpl` from
|
| 83 |
+
[PR #9](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/9):
|
| 84 |
+
88,190 Polish government press releases collected directly from 133 gov.pl
|
| 85 |
+
ministry and agency subsites.
|
| 86 |
+
|
| 87 |
+
#### v0.2.1 — previous stable
|
| 88 |
+
|
| 89 |
+
Introduced the canonical eight-column release schema:
|
| 90 |
+
`id, text, source, added, created, token_count, license, author`. Added
|
| 91 |
+
`1000_novels` from
|
| 92 |
+
[PR #1](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/1)
|
| 93 |
+
and recomputed all release statistics from parquet files.
|
| 94 |
+
|
| 95 |
+
#### v0.2.0 — initial stable corpus
|
| 96 |
+
|
| 97 |
+
The provenance-first baseline: 11 reviewed open or official sources,
|
| 98 |
+
2,490,773 documents and 6.22B proxy tokens.
|
| 99 |
+
|
| 100 |
+
#### v0.3-dev — experimental quality workflow
|
| 101 |
+
|
| 102 |
+
Candidate-only work on a better-balanced training mixture: legal-source caps,
|
| 103 |
+
temperature sampling, source QA, deduplication and direct-upstream ingestion.
|
| 104 |
+
It is not a replacement for the stable corpus.
|
| 105 |
+
|
| 106 |
+
#### Europeana validation artifact — 2026-07-10
|
| 107 |
+
|
| 108 |
+
A separate reproducible 810-document Europeana sample preserving per-record
|
| 109 |
+
rights and creator metadata. It does not change stable-release totals.
|
| 110 |
+
`v0.3.1-preview` remains only as the legacy storage-path label.
|
| 111 |
+
|
| 112 |
+
## What this dataset contributes
|
| 113 |
+
The raw texts come from existing open corpora (redistributed via SpeakLeash and,
|
| 114 |
+
where applicable, fetched from upstream). **The value added here is the curation,
|
| 115 |
+
not the bytes**, following the Dynaword methodology:
|
| 116 |
+
|
| 117 |
+
1. **License review per source** — each source vetted for an *openly-licensed,
|
| 118 |
+
traceable* legal basis (documented in its datasheet); sources that fail the
|
| 119 |
+
review are **excluded with a stated reason** (see table below), not silently
|
| 120 |
+
kept. This is the core editorial work.
|
| 121 |
+
2. **Filtering & normalization** — minimal, reproducible gates (short-doc,
|
| 122 |
+
non-Polish, exact cross-source dedup, OCR garble) applied uniformly to one
|
| 123 |
+
clean schema: `id, text, source, added, created, token_count, license, author`.
|
| 124 |
+
3. **Documentation** — a datasheet per source (Gebru et al. 2021) + this card,
|
| 125 |
+
so provenance and licensing are auditable rather than assumed.
|
| 126 |
+
4. **Reproducibility & versioning** — `src/` rebuilds the corpus from sources;
|
| 127 |
+
new sources and removals are tracked in the CHANGELOG.
|
| 128 |
+
|
| 129 |
+
Credit for the underlying texts belongs to the upstream sources and to SpeakLeash
|
| 130 |
+
as the redistributing aggregator; this release does not claim ownership of them
|
| 131 |
+
(see Disclaimer).
|
| 132 |
+
|
| 133 |
+
## Contributors
|
| 134 |
+
|
| 135 |
+
| contributor | contribution | release / PR |
|
| 136 |
+
|---|---|---|
|
| 137 |
+
| [Kacper Wikieł](https://huggingface.co/kacperwikiel) | Project maintainer; corpus curation, source and license review, release engineering, documentation, validation and reproducible build workflow. | all releases |
|
| 138 |
+
| [Bart Kobyliński](https://huggingface.co/bartoszkobylinski1) | Added `1000_novels`; expanded Biblioteka Nauki and Europeana ingestion with per-document license and author metadata. | `v0.2.1`, [PR #1](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/1) |
|
| 139 |
+
| [Paweł Puzio](https://huggingface.co/ppuzio) | Built `govpl`: subsite discovery, direct ingestion pipeline, dataset artifact, contract tests and documentation. | `v0.2.2`, [PR #9](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/9) |
|
| 140 |
+
| [Arkadiusz Słota](https://huggingface.co/Maggio33) | Built & expanded `european_hplt_v3_pl`: HPLT v3 WDS 10+9 (PR #5) then WDS 10-5 expansion (+1,493,384 docs / 2.04B tok), modular cleaning pipeline, phone-recall PII-scrub (v12b, independent dual-lens), cross-source dedup-vs-base (zero-overlap), validation and documentation. | `v0.2.3` (PR #5), `v0.2.4` |
|
| 141 |
+
| [Dawid Majewski](https://huggingface.co/dawidmajewski) | Added the reviewed Global Voices Polish corpus with per-document author attribution and documentation. | `v0.2.3`, [PR #7](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/7) |
|
| 142 |
+
| [1am](https://huggingface.co/1am) | Added `nkjp1m`: the manually annotated 1-million-word NKJP subcorpus, direct fetch/build pipeline, source documentation and release artifact. | `v0.2.3`, [PR #8](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/8) |
|
| 143 |
+
|
| 144 |
+
Contributions are credited when they add a verifiable dataset artifact, pipeline,
|
| 145 |
+
validation, documentation or release work. A merged discussion with no resulting
|
| 146 |
+
files is not listed as a data contribution.
|
| 147 |
+
|
| 148 |
+
## Guiding principles
|
| 149 |
+
1. **Open & traceable licensing** — every source is *openly licensed* with a documented
|
| 150 |
+
legal basis (see each datasheet's "traceable basis"), not a vague "public domain".
|
| 151 |
+
2. **Reproducibility** — `src/build_dynaword.py` rebuilds the corpus from sources.
|
| 152 |
+
3. **Documented** — a datasheet per source under `data/<source>/`.
|
| 153 |
+
4. **Extensibility** — versioned; new sources via PR.
|
| 154 |
+
|
| 155 |
+
## Sources
|
| 156 |
+
| source | description | license | documents | tokens |
|
| 157 |
+
|---|---|---|---:|---:|
|
| 158 |
+
| [european_hplt_v3_pl](data/european_hplt_v3_pl/european_hplt_v3_pl.md) | HPLT v3.0 Polish (web, top WDS bins 10-5) | `CC0-1.0` | 1,603,974 | 2,555.5M |
|
| 159 |
+
| [eurlex](data/eurlex/eurlex.md) | EUR-Lex (EU legal acts, Polish) | `CC-BY-4.0` | 243,060 | 2,378.1M |
|
| 160 |
+
| [parliamentary](data/parliamentary/parliamentary.md) | Polish Parliamentary Corpus (Sejm/Senat) | `public-domain (official documents)` | 324,622 | 1,646.8M |
|
| 161 |
+
| [wikisource](data/wikisource/wikisource.md) | Polish Wikisource | `CC-BY-SA-3.0` | 632,005 | 801.9M |
|
| 162 |
+
| [wikipedia](data/wikipedia/wikipedia.md) | Polish Wikipedia | `CC-BY-SA-3.0` | 1,171,897 | 707.2M |
|
| 163 |
+
| [biblioteka_nauki](data/biblioteka_nauki/biblioteka_nauki.md) | Biblioteka Nauki | `per-record upstream license` | 42,071 | 673.5M |
|
| 164 |
+
| [dziennik_ustaw](data/dziennik_ustaw/dziennik_ustaw.md) | Dziennik Ustaw + Monitor Polski (Polish primary legislation) | `public-domain (official documents)` | 35,442 | 486.1M |
|
| 165 |
+
| [wolne_lektury](data/wolne_lektury/wolne_lektury.md) | Wolne Lektury (school readings) | `CC-BY-SA-4.0 / Wolna Sztuka 1.3` | 6,141 | 103.0M |
|
| 166 |
+
| [govpl](data/govpl/govpl.md) | gov.pl — Polish government press releases | `CC-BY-SA-4.0` | 88,190 | 80.7M |
|
| 167 |
+
| [1000_novels](data/1000_novels/1000_novels.md) | 1000 Novels Corpus (CLARIN-PL) | `CC-BY-4.0` | 1,000 | 60.5M |
|
| 168 |
+
| [wikiquote](data/wikiquote/wikiquote.md) | Polish Wikiquote (quotations) | `CC-BY-SA-3.0` | 30,363 | 31.9M |
|
| 169 |
+
| [eltec_pol](data/eltec_pol/eltec_pol.md) | ELTeC-pol (European Literary Text Collection, Polish) | `CC-BY-4.0` | 100 | 21.5M |
|
| 170 |
+
| [wikivoyage](data/wikivoyage/wikivoyage.md) | Polish Wikivoyage (travel guides) | `CC-BY-SA-3.0` | 13,645 | 17.1M |
|
| 171 |
+
| [wikibooks](data/wikibooks/wikibooks.md) | Polish Wikibooks (open textbooks) | `CC-BY-SA-3.0` | 9,112 | 15.6M |
|
| 172 |
+
| [wikinews](data/wikinews/wikinews.md) | Polish Wikinews | `CC-BY-2.5` | 24,386 | 12.1M |
|
| 173 |
+
| [global_voices](data/global_voices/global_voices.md) | Global Voices Polish | `CC-BY-3.0` | 2,040 | 3.7M |
|
| 174 |
+
| [nkjp1m](data/nkjp1m/nkjp1m.md) | The manually annotated 1-million word subcorpus of the National Corpus of Polish | `CC-BY` | 18,381 | 2.6M |
|
| 175 |
+
| **total** | | | **4,246,429** | **9,597.9M** |
|
| 176 |
+
|
| 177 |
+
## Method
|
| 178 |
+
Only **human-authored** text — no synthetic, machine-translated, or auto-transcribed
|
| 179 |
+
data. Gates are intentionally minimal (drop short docs, non-Polish, exact duplicates,
|
| 180 |
+
OCR garble); heavy quality filtering and mix-weighting are left to downstream training.
|
| 181 |
+
Evaluation-set decontamination is applied/marked separately. Schema:
|
| 182 |
+
`id, text, source, added, created, token_count, license, author`. The `license`
|
| 183 |
+
and `author` columns are per-document metadata when upstream exposes them; older
|
| 184 |
+
sources use the source-level license and an empty author field.
|
| 185 |
+
|
| 186 |
+
## v0.3 quality roadmap and current status
|
| 187 |
+
|
| 188 |
+
The v0.2.x raw corpus is intentionally provenance-first, but its token mix is too
|
| 189 |
+
heavy in legal/parliamentary language for natural general pretraining. The v0.3
|
| 190 |
+
workflow therefore separates **source inclusion** from **training mix**:
|
| 191 |
+
|
| 192 |
+
- cap `eurlex + parliamentary + dziennik_ustaw` to roughly **10-20%** of training
|
| 193 |
+
tokens combined;
|
| 194 |
+
- use source-level temperature sampling (`sqrt`, alpha `0.5`) instead of raw
|
| 195 |
+
token-proportional sampling;
|
| 196 |
+
- add traceably licensed contemporary/natural Polish: open web, academic prose,
|
| 197 |
+
cultural heritage text, guides, technical documentation/blogs, Q&A, and
|
| 198 |
+
dialogue/instruction data;
|
| 199 |
+
- run aggressive exact, normalized, and near-duplicate removal;
|
| 200 |
+
- reserve the final **5-15%** of training for higher-quality sources rather than
|
| 201 |
+
the largest sources;
|
| 202 |
+
- evaluate per-source perplexity and style contamination, not only global loss.
|
| 203 |
+
|
| 204 |
+
Current v0.3 source-ingestion status:
|
| 205 |
+
|
| 206 |
+
- `biblioteka_nauki`: prepared in the source registry as a direct-upstream
|
| 207 |
+
rebuild target with per-document license and author metadata; not included in
|
| 208 |
+
v0.2.4 parquets yet.
|
| 209 |
+
- `europeana`: prepared in the source registry as a direct-upstream rebuild
|
| 210 |
+
target with per-record rights statements and creator metadata; raw SpeakLeash
|
| 211 |
+
Europeana remains excluded.
|
| 212 |
+
- Europeana release policy: split conservatively at pre-1929 records for
|
| 213 |
+
US-sensitive downstream reuse, and keep later/unknown records separately
|
| 214 |
+
labeled or held until legal review.
|
| 215 |
+
- `european_hplt_v3_pl`: WDS bins 10+9 are included in v0.2.4 after contract
|
| 216 |
+
validation. HPLT packaging is CC0, while underlying crawled web documents can
|
| 217 |
+
carry independent rights; downstream near-dedup and web-content review remain
|
| 218 |
+
recommended before training.
|
| 219 |
+
|
| 220 |
+
Current review artifacts:
|
| 221 |
+
|
| 222 |
+
- `configs/source_candidates_v0_3.json` — candidate decisions and license policy.
|
| 223 |
+
- `artifacts/source_license_review_v0_3.md` — source-by-source license review.
|
| 224 |
+
- `artifacts/source_candidate_audit_v0_3.md` — generated Hugging Face metadata audit.
|
| 225 |
+
- `artifacts/training_mix_v0_3.md` — example 1B-token training mix with legal sources capped at 15%.
|
| 226 |
+
- `artifacts/bartek_source_ingestion_plan_2026-07-02.md` — PR contract for
|
| 227 |
+
Biblioteka Nauki and Europeana ingestion.
|
| 228 |
+
|
| 229 |
+
## Excluded sources (transparency)
|
| 230 |
+
Sources we reviewed and **deliberately left out** — part of the curation:
|
| 231 |
+
|
| 232 |
+
| source | reason |
|
| 233 |
+
|---|---|
|
| 234 |
+
| `open_subtitles_corpus` | Derivative of copyrighted film/TV dialogue; OpenSubtitles uploads largely unlicensed. Same copyright lesson as Danish Gigaword's OpenSubtitles (paper 2508.02271). Not openly licensed. |
|
| 235 |
+
| `europeana_eu_pl_corpus_raw_speakleash` | Aggregated items with mixed per-record rights (PD / CC-BY-NC / rights-reserved). The raw SpeakLeash redistribution is excluded; only a direct rebuild preserving per-record rights metadata may be included. |
|
| 236 |
+
| `1000_novels_corpus_CLARIN-PL` | CC-BY-4.0 label, but 'novels' likely include in-copyright contemporary works; verify titles/years on CLARIN handle 11321/312 before inclusion. |
|
| 237 |
+
| `project_gutenberg_pl_corpus` | Only 31 PL books (4.3MB) — PG is ~99% English; Polish PD literature already covered by wolne_lektury + wikisource (so near-redundant after dedup). Dropped to avoid the PD-in-EU per-work check (PG claims PD-in-US only) for negligible token gain. |
|
| 238 |
+
|
| 239 |
+
## Personal & sensitive data
|
| 240 |
+
This corpus contains **only** text that its upstream sources already published
|
| 241 |
+
under open licenses or as official public-domain record. It therefore includes
|
| 242 |
+
names and statements of **public figures acting in a public capacity** — e.g.
|
| 243 |
+
parliamentary speakers (PPC), authorities named in legal acts (EUR-Lex), and
|
| 244 |
+
people described in encyclopedic articles (Wikipedia/Wikisource). No private,
|
| 245 |
+
non-public personal data was collected or added. If you are a data subject and
|
| 246 |
+
want content concerning you removed, contact **k.wikiel@gmail.com** — it will be dropped
|
| 247 |
+
from the next version (see retroactive-removal policy below).
|
| 248 |
+
|
| 249 |
+
## Disclaimer & legal
|
| 250 |
+
- **Provenance in good faith.** Per-source licenses are reproduced *as documented
|
| 251 |
+
by the upstream sources and by SpeakLeash* (the intermediate aggregator), to the
|
| 252 |
+
best of our knowledge. We make no independent legal warranty about the copyright
|
| 253 |
+
status of any individual document.
|
| 254 |
+
- **No ownership claim.** This release is a *curated, license-reviewed, documented
|
| 255 |
+
aggregation*. We claim no ownership of the underlying texts; rights remain with
|
| 256 |
+
the original authors/rightsholders under their respective licenses.
|
| 257 |
+
- **Provided "as is"**, without warranty of any kind, express or implied. This is
|
| 258 |
+
not legal advice.
|
| 259 |
+
- **Your compliance is yours.** Downstream users must satisfy each upstream
|
| 260 |
+
license themselves — in particular **CC-BY-SA-4.0 attribution and share-alike**
|
| 261 |
+
for derivatives of this dataset, and attribution to the upstream sources and to
|
| 262 |
+
SpeakLeash.
|
| 263 |
+
- **Notice-and-takedown.** Any source or rightsholder raising a substantiated
|
| 264 |
+
objection can have material removed: contact **k.wikiel@gmail.com**; it is dropped from
|
| 265 |
+
the next version and recorded in the CHANGELOG. Removal is retroactive
|
| 266 |
+
going-forward (prior immutable snapshots/commits may persist).
|
| 267 |
+
|
| 268 |
+
## License & attribution
|
| 269 |
+
Released under **CC-BY-SA-4.0** (copyleft inherited from CC-BY-SA sources such as
|
| 270 |
+
Wikipedia/Wikisource/Wolne Lektury). Attribution due to each upstream (see datasheets)
|
| 271 |
+
and to **SpeakLeash** as the intermediate aggregator. Retroactive-removal policy: a
|
| 272 |
+
source that raises an objection is dropped from subsequent versions, recorded in the
|
| 273 |
+
CHANGELOG.
|
| 274 |
+
|
| 275 |
+
## Reproduce
|
| 276 |
+
```bash
|
| 277 |
+
python3 src/build_dynaword.py --all --speakleash-dir <speakleash_zst_dir> --out .
|
| 278 |
+
python3 src/make_docs.py
|
| 279 |
+
```
|
| 280 |
+
|
| 281 |
+
## Results
|
| 282 |
+
|
| 283 |
+
### Corpus phrase frequency (normalized by tokens)
|
| 284 |
+
|
| 285 |
+
Raw counts and token-normalized shares are regenerated from the current parquet files with `src/pattern_frequency_report.py`.
|
| 286 |
+
|
| 287 |
+
- Total token count (tiktoken proxy): **6,881,277,362**
|
| 288 |
+
|
| 289 |
+
| Pattern | Count | Share of all tokens |
|
| 290 |
+
|---|---:|---:|
|
| 291 |
+
| `w roku` | 460,249 | 0.0067% |
|
| 292 |
+
| `klasyfikacji` | 134,093 | 0.0019% |
|
| 293 |
+
| `ustawa` | 598,176 | 0.0087% |
|
| 294 |
+
| `artykuł` | 2,096,271 | 0.0305% |
|
| 295 |
+
| `parlament` | 1,216,808 | 0.0177% |
|
| 296 |
+
| `rozporządzenie` | 1,497,273 | 0.0218% |
|
| 297 |
+
| `w pobliżu` | 89,774 | 0.0013% |
|
| 298 |
+
| `mieszkańców` | 288,911 | 0.0042% |
|
| 299 |
+
| `Dz.U.` | 944,565 | 0.0137% |
|
| 300 |
+
|
| 301 |
+
### Per-source shares
|
| 302 |
+
|
| 303 |
+
| source | pattern | count | share of source tokens |
|
| 304 |
+
|---|---|---:|---:|
|
| 305 |
+
| `1000_novels` | `w roku` | 659 | 0.00109% |
|
| 306 |
+
| `1000_novels` | `klasyfikacji` | 14 | 0.00002% |
|
| 307 |
+
| `1000_novels` | `ustawa` | 656 | 0.00108% |
|
| 308 |
+
| `1000_novels` | `artykuł` | 729 | 0.00120% |
|
| 309 |
+
| `1000_novels` | `parlament` | 240 | 0.00040% |
|
| 310 |
+
| `1000_novels` | `rozporządzenie` | 65 | 0.00011% |
|
| 311 |
+
| `1000_novels` | `w pobliżu` | 1,262 | 0.00209% |
|
| 312 |
+
| `1000_novels` | `mieszkańców` | 868 | 0.00143% |
|
| 313 |
+
| `1000_novels` | `Dz.U.` | 0 | 0.00000% |
|
| 314 |
+
| `dziennik_ustaw` | `w roku` | 33,096 | 0.00681% |
|
| 315 |
+
| `dziennik_ustaw` | `klasyfikacji` | 10,896 | 0.00224% |
|
| 316 |
+
| `dziennik_ustaw` | `ustawa` | 77,376 | 0.01592% |
|
| 317 |
+
| `dziennik_ustaw` | `artykuł` | 27,773 | 0.00571% |
|
| 318 |
+
| `dziennik_ustaw` | `parlament` | 42,338 | 0.00871% |
|
| 319 |
+
| `dziennik_ustaw` | `rozporządzenie` | 166,383 | 0.03423% |
|
| 320 |
+
| `dziennik_ustaw` | `w pobliżu` | 1,087 | 0.00022% |
|
| 321 |
+
| `dziennik_ustaw` | `mieszkańców` | 8,025 | 0.00165% |
|
| 322 |
+
| `dziennik_ustaw` | `Dz.U.` | 158 | 0.00003% |
|
| 323 |
+
| `eltec_pol` | `w roku` | 108 | 0.00050% |
|
| 324 |
+
| `eltec_pol` | `klasyfikacji` | 1 | 0.00000% |
|
| 325 |
+
| `eltec_pol` | `ustawa` | 153 | 0.00071% |
|
| 326 |
+
| `eltec_pol` | `artykuł` | 173 | 0.00081% |
|
| 327 |
+
| `eltec_pol` | `parlament` | 95 | 0.00044% |
|
| 328 |
+
| `eltec_pol` | `rozporządzenie` | 35 | 0.00016% |
|
| 329 |
+
| `eltec_pol` | `w pobliżu` | 246 | 0.00114% |
|
| 330 |
+
| `eltec_pol` | `mieszkańców` | 214 | 0.00100% |
|
| 331 |
+
| `eltec_pol` | `Dz.U.` | 0 | 0.00000% |
|
| 332 |
+
| `eurlex` | `w roku` | 40,009 | 0.00168% |
|
| 333 |
+
| `eurlex` | `klasyfikacji` | 59,428 | 0.00250% |
|
| 334 |
+
| `eurlex` | `ustawa` | 30,368 | 0.00128% |
|
| 335 |
+
| `eurlex` | `artykuł` | 1,774,958 | 0.07464% |
|
| 336 |
+
| `eurlex` | `parlament` | 780,286 | 0.03281% |
|
| 337 |
+
| `eurlex` | `rozporządzenie` | 1,202,658 | 0.05057% |
|
| 338 |
+
| `eurlex` | `w pobliżu` | 6,088 | 0.00026% |
|
| 339 |
+
| `eurlex` | `mieszkańców` | 9,441 | 0.00040% |
|
| 340 |
+
| `eurlex` | `Dz.U.` | 915,707 | 0.03851% |
|
| 341 |
+
| `european_hplt_v3_pl` | `w roku` | 21,067 | 0.00411% |
|
| 342 |
+
| `european_hplt_v3_pl` | `klasyfikacji` | 3,576 | 0.00070% |
|
| 343 |
+
| `european_hplt_v3_pl` | `ustawa` | 5,754 | 0.00112% |
|
| 344 |
+
| `european_hplt_v3_pl` | `artykuł` | 56,295 | 0.01099% |
|
| 345 |
+
| `european_hplt_v3_pl` | `parlament` | 10,618 | 0.00207% |
|
| 346 |
+
| `european_hplt_v3_pl` | `rozporządzenie` | 2,661 | 0.00052% |
|
| 347 |
+
| `european_hplt_v3_pl` | `w pobliżu` | 9,877 | 0.00193% |
|
| 348 |
+
| `european_hplt_v3_pl` | `mieszkańców` | 33,939 | 0.00662% |
|
| 349 |
+
| `european_hplt_v3_pl` | `Dz.U.` | 1,482 | 0.00029% |
|
| 350 |
+
| `global_voices` | `w roku` | 160 | 0.00431% |
|
| 351 |
+
| `global_voices` | `klasyfikacji` | 5 | 0.00013% |
|
| 352 |
+
| `global_voices` | `ustawa` | 157 | 0.00423% |
|
| 353 |
+
| `global_voices` | `artykuł` | 1,047 | 0.02818% |
|
| 354 |
+
| `global_voices` | `parlament` | 366 | 0.00985% |
|
| 355 |
+
| `global_voices` | `rozporządzenie` | 26 | 0.00070% |
|
| 356 |
+
| `global_voices` | `w pobliżu` | 105 | 0.00283% |
|
| 357 |
+
| `global_voices` | `mieszkańców` | 508 | 0.01367% |
|
| 358 |
+
| `global_voices` | `Dz.U.` | 1 | 0.00003% |
|
| 359 |
+
| `govpl` | `w roku` | 3,372 | 0.00418% |
|
| 360 |
+
| `govpl` | `klasyfikacji` | 526 | 0.00065% |
|
| 361 |
+
| `govpl` | `ustawa` | 4,727 | 0.00586% |
|
| 362 |
+
| `govpl` | `artykuł` | 2,417 | 0.00300% |
|
| 363 |
+
| `govpl` | `parlament` | 3,967 | 0.00492% |
|
| 364 |
+
| `govpl` | `rozporządzenie` | 4,102 | 0.00509% |
|
| 365 |
+
| `govpl` | `w pobliżu` | 892 | 0.00111% |
|
| 366 |
+
| `govpl` | `mieszkańców` | 13,105 | 0.01625% |
|
| 367 |
+
| `govpl` | `Dz.U.` | 3,114 | 0.00386% |
|
| 368 |
+
| `nkjp1m` | `w roku` | 109 | 0.00419% |
|
| 369 |
+
| `nkjp1m` | `klasyfikacji` | 9 | 0.00035% |
|
| 370 |
+
| `nkjp1m` | `ustawa` | 79 | 0.00304% |
|
| 371 |
+
| `nkjp1m` | `artykuł` | 153 | 0.00588% |
|
| 372 |
+
| `nkjp1m` | `parlament` | 216 | 0.00830% |
|
| 373 |
+
| `nkjp1m` | `rozporządzenie` | 20 | 0.00077% |
|
| 374 |
+
| `nkjp1m` | `w pobliżu` | 77 | 0.00296% |
|
| 375 |
+
| `nkjp1m` | `mieszkańców` | 159 | 0.00611% |
|
| 376 |
+
| `nkjp1m` | `Dz.U.` | 2 | 0.00008% |
|
| 377 |
+
| `parliamentary` | `w roku` | 198,192 | 0.01203% |
|
| 378 |
+
| `parliamentary` | `klasyfikacji` | 12,637 | 0.00077% |
|
| 379 |
+
| `parliamentary` | `ustawa` | 459,179 | 0.02788% |
|
| 380 |
+
| `parliamentary` | `artykuł` | 182,038 | 0.01105% |
|
| 381 |
+
| `parliamentary` | `parlament` | 309,695 | 0.01881% |
|
| 382 |
+
| `parliamentary` | `rozporządzenie` | 113,547 | 0.00689% |
|
| 383 |
+
| `parliamentary` | `w pobliżu` | 4,964 | 0.00030% |
|
| 384 |
+
| `parliamentary` | `mieszkańców` | 78,048 | 0.00474% |
|
| 385 |
+
| `parliamentary` | `Dz.U.` | 23,809 | 0.00145% |
|
| 386 |
+
| `wikibooks` | `w roku` | 319 | 0.00205% |
|
| 387 |
+
| `wikibooks` | `klasyfikacji` | 37 | 0.00024% |
|
| 388 |
+
| `wikibooks` | `ustawa` | 165 | 0.00106% |
|
| 389 |
+
| `wikibooks` | `artykuł` | 732 | 0.00470% |
|
| 390 |
+
| `wikibooks` | `parlament` | 283 | 0.00182% |
|
| 391 |
+
| `wikibooks` | `rozporządzenie` | 131 | 0.00084% |
|
| 392 |
+
| `wikibooks` | `w pobliżu` | 125 | 0.00080% |
|
| 393 |
+
| `wikibooks` | `mieszkańców` | 204 | 0.00131% |
|
| 394 |
+
| `wikibooks` | `Dz.U.` | 16 | 0.00010% |
|
| 395 |
+
| `wikinews` | `w roku` | 449 | 0.00370% |
|
| 396 |
+
| `wikinews` | `klasyfikacji` | 639 | 0.00526% |
|
| 397 |
+
| `wikinews` | `ustawa` | 407 | 0.00335% |
|
| 398 |
+
| `wikinews` | `artykuł` | 2,474 | 0.02038% |
|
| 399 |
+
| `wikinews` | `parlament` | 2,530 | 0.02084% |
|
| 400 |
+
| `wikinews` | `rozporządzenie` | 168 | 0.00138% |
|
| 401 |
+
| `wikinews` | `w pobliżu` | 455 | 0.00375% |
|
| 402 |
+
| `wikinews` | `mieszkańców` | 1,014 | 0.00835% |
|
| 403 |
+
| `wikinews` | `Dz.U.` | 27 | 0.00022% |
|
| 404 |
+
| `wikipedia` | `w roku` | 143,023 | 0.02022% |
|
| 405 |
+
| `wikipedia` | `klasyfikacji` | 46,043 | 0.00651% |
|
| 406 |
+
| `wikipedia` | `ustawa` | 9,536 | 0.00135% |
|
| 407 |
+
| `wikipedia` | `artykuł` | 28,165 | 0.00398% |
|
| 408 |
+
| `wikipedia` | `parlament` | 57,863 | 0.00818% |
|
| 409 |
+
| `wikipedia` | `rozporządzenie` | 5,637 | 0.00080% |
|
| 410 |
+
| `wikipedia` | `w pobliżu` | 41,915 | 0.00593% |
|
| 411 |
+
| `wikipedia` | `mieszkańców` | 122,766 | 0.01736% |
|
| 412 |
+
| `wikipedia` | `Dz.U.` | 232 | 0.00003% |
|
| 413 |
+
| `wikiquote` | `w roku` | 608 | 0.00191% |
|
| 414 |
+
| `wikiquote` | `klasyfikacji` | 15 | 0.00005% |
|
| 415 |
+
| `wikiquote` | `ustawa` | 357 | 0.00112% |
|
| 416 |
+
| `wikiquote` | `artykuł` | 606 | 0.00190% |
|
| 417 |
+
| `wikiquote` | `parlament` | 1,271 | 0.00398% |
|
| 418 |
+
| `wikiquote` | `rozporządzenie` | 27 | 0.00008% |
|
| 419 |
+
| `wikiquote` | `w pobliżu` | 207 | 0.00065% |
|
| 420 |
+
| `wikiquote` | `mieszkańców` | 527 | 0.00165% |
|
| 421 |
+
| `wikiquote` | `Dz.U.` | 6 | 0.00002% |
|
| 422 |
+
| `wikisource` | `w roku` | 16,571 | 0.00207% |
|
| 423 |
+
| `wikisource` | `klasyfikacji` | 166 | 0.00002% |
|
| 424 |
+
| `wikisource` | `ustawa` | 8,156 | 0.00102% |
|
| 425 |
+
| `wikisource` | `artykuł` | 16,230 | 0.00202% |
|
| 426 |
+
| `wikisource` | `parlament` | 6,119 | 0.00076% |
|
| 427 |
+
| `wikisource` | `rozporządzenie` | 1,651 | 0.00021% |
|
| 428 |
+
| `wikisource` | `w pobliżu` | 13,921 | 0.00174% |
|
| 429 |
+
| `wikisource` | `mieszkańców` | 14,335 | 0.00179% |
|
| 430 |
+
| `wikisource` | `Dz.U.` | 5 | 0.00000% |
|
| 431 |
+
| `wikivoyage` | `w roku` | 609 | 0.00356% |
|
| 432 |
+
| `wikivoyage` | `klasyfikacji` | 21 | 0.00012% |
|
| 433 |
+
| `wikivoyage` | `ustawa` | 46 | 0.00027% |
|
| 434 |
+
| `wikivoyage` | `artykuł` | 657 | 0.00384% |
|
| 435 |
+
| `wikivoyage` | `parlament` | 249 | 0.00145% |
|
| 436 |
+
| `wikivoyage` | `rozporządzenie` | 34 | 0.00020% |
|
| 437 |
+
| `wikivoyage` | `w pobliżu` | 6,480 | 0.03783% |
|
| 438 |
+
| `wikivoyage` | `mieszkańców` | 4,100 | 0.02394% |
|
| 439 |
+
| `wikivoyage` | `Dz.U.` | 1 | 0.00001% |
|
| 440 |
+
| `wolne_lektury` | `w roku` | 1,898 | 0.00184% |
|
| 441 |
+
| `wolne_lektury` | `klasyfikacji` | 80 | 0.00008% |
|
| 442 |
+
| `wolne_lektury` | `ustawa` | 1,060 | 0.00103% |
|
| 443 |
+
| `wolne_lektury` | `artykuł` | 1,824 | 0.00177% |
|
| 444 |
+
| `wolne_lektury` | `parlament` | 672 | 0.00065% |
|
| 445 |
+
| `wolne_lektury` | `rozporządzenie` | 128 | 0.00012% |
|
| 446 |
+
| `wolne_lektury` | `w pobliżu` | 2,073 | 0.00201% |
|
| 447 |
+
| `wolne_lektury` | `mieszkańców` | 1,658 | 0.00161% |
|
| 448 |
+
| `wolne_lektury` | `Dz.U.` | 5 | 0.00000% |
|
| 449 |
+
|
| 450 |
+

|
| 451 |
+
|
| 452 |
+

|
| 453 |
+

|
| 454 |
+

|
| 455 |
+

|
| 456 |
+

|
| 457 |
+

|
| 458 |
+

|
| 459 |
+

|
| 460 |
+

|
| 461 |
+
|
|
|
|
|
|
data/european_hplt_v3_pl/european_hplt_v3_pl.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
# european_hplt_v3_pl
|
| 2 |
|
| 3 |
-
Filtered Polish subset of **HPLT v3.0** (`pol_Latn`), top quality bins (WDS = 10
|
| 4 |
|
| 5 |
## Dataset description
|
| 6 |
-
- **Source (upstream):** https://hplt-project.org/datasets/v3.0 (`pol_Latn`, shards `10_1`
|
| 7 |
- **Domain:** web (modern natural Polish — informational, narrative, opinion, how-to, discussion)
|
| 8 |
- **Language:** Polish (pl)
|
| 9 |
- **License:** `CC0-1.0` (packaging; see licensing note)
|
| 10 |
- **Created (range):** web crawls 2012-2024 (Internet Archive + Common Crawl)
|
| 11 |
-
- **Added:** 2026-07-14
|
| 12 |
|
| 13 |
## Licensing - traceable basis
|
| 14 |
HPLT licenses the **packaging** of these text data under Creative Commons CC0 1.0 ("no rights reserved"),
|
|
@@ -19,39 +19,41 @@ offered at parity with the already-listed `european-hplt-v1` (CC0) basis and sti
|
|
| 19 |
web/legal review (`accept_after_web_review`), not auto-accept.
|
| 20 |
|
| 21 |
## Provenance
|
| 22 |
-
Fetched directly from the HPLT distribution (`data.hplt-project.org/three/sorted/pol_Latn/{
|
| 23 |
NOT via SpeakLeash. HPLT v3 is globally deduplicated upstream and sorted into Web-Docs-Scorer (WDS) quality
|
| 24 |
-
bins
|
| 25 |
are available in the raw HPLT record and were used for filtering (not retained in the released canonical schema).
|
| 26 |
|
| 27 |
## Statistics
|
| 28 |
-
| documents |
|
| 29 |
-
|---:|---:|---
|
| 30 |
-
|
|
| 31 |
-
|
| 32 |
-
Composition
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
| 37 |
-
|
|
| 38 |
-
| `
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
`register` (not ID/OP/HI/IN/NA), `machine_translated` (MT>=0.20), `domain`
|
| 43 |
(wikipedia/wikisource/wikimedia + file-hosts excluded), `adult_spam`, `legalish` (drops legal/parliamentary
|
| 44 |
phrasing - serves the anti-legalese goal), `boilerplate`, `too_long` (>120k chars = book-length copyright/OCR
|
| 45 |
-
risk), `mojibake` (>=3 CJK/replacement chars
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
## Status & caveats (web-crawl - NOT "release-clean")
|
| 49 |
-
- **Copyright is not fully solved by filtering.**
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
- **Near-dup NOT removed** (Dynaword leaves heavy filtering downstream). ~11.8% of an HPLT sample's 8-grams
|
| 53 |
-
overlap Polish Wikipedia; wikipedia/wikisource domain exclusion mitigates the largest sources, but
|
| 54 |
-
cross-source near/containment dedup vs the full corpus remains a downstream step.
|
| 55 |
-
- Surface-metric parity with accepted sources: mojibake 0%, boilerplate ~0.2%, diacritic-ratio ~0.066,
|
| 56 |
-
TTR@500 ~0.64 (within the accepted range, ~= parliamentary). ~9% commercial/SEO-adjacent pages (web-inherent).
|
| 57 |
-
- This is 2 top bins merged. The full `pol_Latn` corpus is ~270B raw tokens across WDS bins 10->5.
|
|
|
|
| 1 |
# european_hplt_v3_pl
|
| 2 |
|
| 3 |
+
Filtered Polish subset of **HPLT v3.0** (`pol_Latn`), top quality bins (**WDS = 10 down to 5**), merged into one file.
|
| 4 |
|
| 5 |
## Dataset description
|
| 6 |
+
- **Source (upstream):** https://hplt-project.org/datasets/v3.0 (`pol_Latn`, WDS shards `10_1`, `9_1`–`9_4`, `8_1`–`8_4`, `7_1`–`7_4`, `6_1`–`6_2`, `5_1`–`5_2`)
|
| 7 |
- **Domain:** web (modern natural Polish — informational, narrative, opinion, how-to, discussion)
|
| 8 |
- **Language:** Polish (pl)
|
| 9 |
- **License:** `CC0-1.0` (packaging; see licensing note)
|
| 10 |
- **Created (range):** web crawls 2012-2024 (Internet Archive + Common Crawl)
|
| 11 |
+
- **Added:** 2026-07-14 (WDS 10+9); expanded 2026-08-07 (WDS 8-5 + additional WDS-9 shards)
|
| 12 |
|
| 13 |
## Licensing - traceable basis
|
| 14 |
HPLT licenses the **packaging** of these text data under Creative Commons CC0 1.0 ("no rights reserved"),
|
|
|
|
| 19 |
web/legal review (`accept_after_web_review`), not auto-accept.
|
| 20 |
|
| 21 |
## Provenance
|
| 22 |
+
Fetched directly from the HPLT distribution (`data.hplt-project.org/three/sorted/pol_Latn/{shard}.jsonl.zst`),
|
| 23 |
NOT via SpeakLeash. HPLT v3 is globally deduplicated upstream and sorted into Web-Docs-Scorer (WDS) quality
|
| 24 |
+
bins. Per-document URL, WDS score, web-register, MT-probability and PII spans
|
| 25 |
are available in the raw HPLT record and were used for filtering (not retained in the released canonical schema).
|
| 26 |
|
| 27 |
## Statistics
|
| 28 |
+
| documents | tokens (tiktoken cl100k proxy) | license |
|
| 29 |
+
|---:|---:|---|
|
| 30 |
+
| 1,603,974 | 2,555,525,652 | 100% `CC0-1.0` |
|
| 31 |
+
|
| 32 |
+
Composition by WDS bin (documents; single merged parquet):
|
| 33 |
+
| WDS bin | shards | documents | added |
|
| 34 |
+
|---:|---|---:|---|
|
| 35 |
+
| 10 | `10_1` | 55,590 | 2026-07-14 |
|
| 36 |
+
| 9 | `9_1` (+`9_2`,`9_3`,`9_4`) | 55,000 + 298,543 | 07-14 / 08-07 |
|
| 37 |
+
| 8 | `8_1`–`8_4` | 398,795 | 2026-08-07 |
|
| 38 |
+
| 7 | `7_1`–`7_4` | 398,431 | 2026-08-07 |
|
| 39 |
+
| 6 | `6_1`,`6_2` | 199,038 | 2026-08-07 |
|
| 40 |
+
| 5 | `5_1`,`5_2` | 198,577 | 2026-08-07 |
|
| 41 |
+
|
| 42 |
+
Per-shard char/token/drop breakdown in `*.stats.json`. Higher WDS = higher web-doc quality; lower bins add volume with modestly lower mean quality.
|
| 43 |
+
|
| 44 |
+
## Filters applied (src/clean_hplt_v3.py + run_pipeline.py)
|
| 45 |
+
Per-shard keep ~28-40% (higher for lower bins). Drop reasons:
|
| 46 |
`register` (not ID/OP/HI/IN/NA), `machine_translated` (MT>=0.20), `domain`
|
| 47 |
(wikipedia/wikisource/wikimedia + file-hosts excluded), `adult_spam`, `legalish` (drops legal/parliamentary
|
| 48 |
phrasing - serves the anti-legalese goal), `boilerplate`, `too_long` (>120k chars = book-length copyright/OCR
|
| 49 |
+
risk), `mojibake` (>=3 CJK/replacement chars), `filehost`, `domain_cap`. MT-probability of kept docs: mean ~0.08. Mojibake residual: 0.
|
| 50 |
+
|
| 51 |
+
## PII phone-scrub (v12b) & cross-source dedup
|
| 52 |
+
- **Phones → `[Telefon]`** (semantic-tag, not fake-number — avoids model-poisoning). Iterative scrub v6→v12b closed all systematic phone-recall classes (address-block-suppression, `dzwoń`-label family, leading-0 landline, `+48`-paren, newline-over-span, foreign-UK-bare). Residual **0.0135%** = genuine clearance-tail (FP-not-phone / foreign-out-of-scope / bare-no-leading-0-ambiguous / label-distance / institutional-published / rare-edge). Email/national-ID → `[PII]`.
|
| 53 |
+
- **Verification:** TWO independent lenses (deep-verify + broad recall-scan), NOT pipeline self-report — a self-report (idempotency) blind-spot had masked a systematic recall-gap; the independent gate caught it pre-release (SAFETY-INVARIANT: check-coverage ≥ scrub-coverage).
|
| 54 |
+
- **Cross-source dedup vs the existing WDS-10+9 file:** expansion deduplicated against the base shards — **exact-dup = 0, near-dup overlap = 0.0000% (byte-verified)**. This resolves the "cross-source near/containment dedup remains a downstream step" caveat from the original release.
|
| 55 |
|
| 56 |
## Status & caveats (web-crawl - NOT "release-clean")
|
| 57 |
+
- **Copyright is not fully solved by filtering.** In-copyright text recurs in web-crawl at ALL lengths (news reprints, blog reposts, excerpts). Inherent to web sources; the reason HPLT ships CC0-on-packaging + notice-and-takedown.
|
| 58 |
+
- Surface-metric parity with accepted sources: mojibake 0%, boilerplate ~0.2%. ~9% commercial/SEO-adjacent pages (web-inherent).
|
| 59 |
+
- Lower WDS bins (8-5) add volume; a domain-cap keeps per-domain skew bounded. The full `pol_Latn` corpus is ~270B raw tokens across WDS bins 10->5.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/european_hplt_v3_pl/european_hplt_v3_pl.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:135d54b1d9cce106bbde3f5569bce17898605163cd16441d014375daa00563d2
|
| 3 |
+
size 3229618782
|
data/european_hplt_v3_pl/european_hplt_v3_pl.stats.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
{
|
| 2 |
"read": 348254,
|
| 3 |
-
"kept":
|
| 4 |
"drop_short": 0,
|
| 5 |
"drop_lang": 2,
|
| 6 |
"drop_dup": 0,
|
| 7 |
"drop_ocr": 0,
|
| 8 |
-
"chars":
|
| 9 |
-
"tokens":
|
| 10 |
"licenses": {
|
| 11 |
-
"CC0-1.0":
|
| 12 |
},
|
| 13 |
"authors_with_value": 0,
|
| 14 |
"license": "CC0-1.0",
|
|
@@ -34,8 +34,13 @@
|
|
| 34 |
"bin9_WDS9": {
|
| 35 |
"kept": 55000,
|
| 36 |
"tokens": 250914965
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
}
|
| 38 |
},
|
| 39 |
"mt_prob_mean_kept": 0.08,
|
| 40 |
-
"source_repo": "HPLT/HPLT3.0 pol_Latn WDS bins 10+9 (
|
| 41 |
-
|
|
|
|
|
|
| 1 |
{
|
| 2 |
"read": 348254,
|
| 3 |
+
"kept": 1603974,
|
| 4 |
"drop_short": 0,
|
| 5 |
"drop_lang": 2,
|
| 6 |
"drop_dup": 0,
|
| 7 |
"drop_ocr": 0,
|
| 8 |
+
"chars": 6892617989,
|
| 9 |
+
"tokens": 2555525652,
|
| 10 |
"licenses": {
|
| 11 |
+
"CC0-1.0": 1603974
|
| 12 |
},
|
| 13 |
"authors_with_value": 0,
|
| 14 |
"license": "CC0-1.0",
|
|
|
|
| 34 |
"bin9_WDS9": {
|
| 35 |
"kept": 55000,
|
| 36 |
"tokens": 250914965
|
| 37 |
+
},
|
| 38 |
+
"expansion_bins5-9_WDS5-9": {
|
| 39 |
+
"kept": 1493384,
|
| 40 |
+
"tokens": 2043141874
|
| 41 |
}
|
| 42 |
},
|
| 43 |
"mt_prob_mean_kept": 0.08,
|
| 44 |
+
"source_repo": "HPLT/HPLT3.0 pol_Latn: base WDS bins 10+9 (110590) + expansion bins 5-9 cleaned/deduped-vs-base (1493384); phone-scrub-v12b->[Telefon], email/NATID->[PII]",
|
| 45 |
+
"note_expansion": "expansion 15 shards bins5-9: phone-axis GREEN (indep-leak 0.0135% clearance-tail), zero-overlap-vs-base (near-dup 3038 removed). drop_detail/chars = base-only + expansion-recount pending Mierniczy."
|
| 46 |
+
}
|
src/make_docs.py
CHANGED
|
@@ -1,399 +1,411 @@
|
|
| 1 |
-
#!/usr/bin/env python3
|
| 2 |
-
"""Generate Dynaword documentation: per-source datasheets + README + CHANGELOG + LICENSE.
|
| 3 |
-
|
| 4 |
-
Reads sources.py + data/<source>/<source>.stats.json (written by build_dynaword.py).
|
| 5 |
-
Implements the "Documented" principle (datasheets, Gebru et al. 2021) and the
|
| 6 |
-
aggregate README table (paper 2508.02271).
|
| 7 |
-
"""
|
| 8 |
-
from __future__ import annotations
|
| 9 |
-
import json, sys
|
| 10 |
-
from pathlib import Path
|
| 11 |
-
|
| 12 |
-
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
| 13 |
-
from sources import SOURCES, EXCLUDED, ADDED
|
| 14 |
-
|
| 15 |
-
ROOT = Path(__file__).resolve().parent.parent
|
| 16 |
-
VERSION = "0.2.
|
| 17 |
-
RELEASE_DATE = "2026-
|
| 18 |
-
CONTACT = "k.wikiel@gmail.com" # notice-and-takedown / data-removal requests
|
| 19 |
-
|
| 20 |
-
# Dupochron: documented good-faith provenance + no-warranty + takedown + PII.
|
| 21 |
-
DISCLAIMER = f"""## Personal & sensitive data
|
| 22 |
-
This corpus contains **only** text that its upstream sources already published
|
| 23 |
-
under open licenses or as official public-domain record. It therefore includes
|
| 24 |
-
names and statements of **public figures acting in a public capacity** — e.g.
|
| 25 |
-
parliamentary speakers (PPC), authorities named in legal acts (EUR-Lex), and
|
| 26 |
-
people described in encyclopedic articles (Wikipedia/Wikisource). No private,
|
| 27 |
-
non-public personal data was collected or added. If you are a data subject and
|
| 28 |
-
want content concerning you removed, contact **{CONTACT}** — it will be dropped
|
| 29 |
-
from the next version (see retroactive-removal policy below).
|
| 30 |
-
|
| 31 |
-
## Disclaimer & legal
|
| 32 |
-
- **Provenance in good faith.** Per-source licenses are reproduced *as documented
|
| 33 |
-
by the upstream sources and by SpeakLeash* (the intermediate aggregator), to the
|
| 34 |
-
best of our knowledge. We make no independent legal warranty about the copyright
|
| 35 |
-
status of any individual document.
|
| 36 |
-
- **No ownership claim.** This release is a *curated, license-reviewed, documented
|
| 37 |
-
aggregation*. We claim no ownership of the underlying texts; rights remain with
|
| 38 |
-
the original authors/rightsholders under their respective licenses.
|
| 39 |
-
- **Provided "as is"**, without warranty of any kind, express or implied. This is
|
| 40 |
-
not legal advice.
|
| 41 |
-
- **Your compliance is yours.** Downstream users must satisfy each upstream
|
| 42 |
-
license themselves — in particular **CC-BY-SA-4.0 attribution and share-alike**
|
| 43 |
-
for derivatives of this dataset, and attribution to the upstream sources and to
|
| 44 |
-
SpeakLeash.
|
| 45 |
-
- **Notice-and-takedown.** Any source or rightsholder raising a substantiated
|
| 46 |
-
objection can have material removed: contact **{CONTACT}**; it is dropped from
|
| 47 |
-
the next version and recorded in the CHANGELOG. Removal is retroactive
|
| 48 |
-
going-forward (prior immutable snapshots/commits may persist).
|
| 49 |
-
"""
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
def load_stats(name):
|
| 53 |
-
f = ROOT / "data" / name / f"{name}.stats.json"
|
| 54 |
-
return json.loads(f.read_text()) if f.exists() else None
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
def datasheet(name, cfg, st):
|
| 58 |
-
license_rows = ""
|
| 59 |
-
licenses = st.get("licenses") or {}
|
| 60 |
-
if licenses:
|
| 61 |
-
top = sorted(licenses.items(), key=lambda item: -item[1])[:20]
|
| 62 |
-
license_rows = "\n\n## Per-document license metadata\n| license | documents |\n|---|---:|\n"
|
| 63 |
-
license_rows += "\n".join(f"| `{k or 'UNKNOWN'}` | {v:,} |" for k, v in top)
|
| 64 |
-
author_note = ""
|
| 65 |
-
if "authors_with_value" in st:
|
| 66 |
-
author_note = (
|
| 67 |
-
f"\n\nAuthor metadata present for **{st.get('authors_with_value', 0):,}** "
|
| 68 |
-
"documents. Empty values mean the upstream record did not expose a "
|
| 69 |
-
"machine-readable author field."
|
| 70 |
-
)
|
| 71 |
-
legal_note = cfg.get("legal_note", "")
|
| 72 |
-
if legal_note:
|
| 73 |
-
legal_note = f"\n\n## Legal scope note\n{legal_note}"
|
| 74 |
-
source_note = ""
|
| 75 |
-
if st.get("stats_recomputed_from_parquet"):
|
| 76 |
-
source_note = "\n\nStatistics were recomputed directly from the released parquet file."
|
| 77 |
-
return f"""# {name}
|
| 78 |
-
|
| 79 |
-
{cfg['pretty']}
|
| 80 |
-
|
| 81 |
-
## Dataset description
|
| 82 |
-
- **Source (upstream):** {cfg['upstream']}
|
| 83 |
-
- **Domain:** {cfg['domain']}
|
| 84 |
-
- **Language:** Polish (pl)
|
| 85 |
-
- **License:** `{cfg['license']}`
|
| 86 |
-
- **Created (range):** {cfg['created']}
|
| 87 |
-
- **Added:** {ADDED}
|
| 88 |
-
|
| 89 |
-
## Licensing — traceable basis
|
| 90 |
-
{cfg['traceable']}
|
| 91 |
-
|
| 92 |
-
## Provenance
|
| 93 |
-
{cfg.get('provenance', f"Pulled from SpeakLeash's public redistribution "
|
| 94 |
-
f"(`speakleash-ds-pub`, key `{cfg.get('speakleash_key')}`) of the upstream source "
|
| 95 |
-
f"above. SpeakLeash credited as intermediate aggregator; upstream "
|
| 96 |
-
f"license/attribution preserved.")}
|
| 97 |
-
|
| 98 |
-
## Statistics
|
| 99 |
-
| documents | characters | tokens (tiktoken proxy) |
|
| 100 |
-
|---:|---:|---:|
|
| 101 |
-
| {st['kept']:,} | {st['chars']:,} | {st['tokens']:,} |
|
| 102 |
-
{license_rows}{author_note}{legal_note}{source_note}
|
| 103 |
-
|
| 104 |
-
## Filters applied (build_dynaword.py)
|
| 105 |
-
Minimal, per Dynaword guidelines (heavy filtering left to downstream use):
|
| 106 |
-
- drop documents < 200 chars: **{st.get('drop_short', 0):,}**
|
| 107 |
-
- drop non-Polish (diacritic ratio): **{st.get('drop_lang', 0):,}**
|
| 108 |
-
- exact cross-source dedup (sha1): **{st.get('drop_dup', 0):,}**
|
| 109 |
-
- OCR alpha-ratio < 0.70 (OCR sources only): **{st.get('drop_ocr', 0):,}**
|
| 110 |
-
- read {st.get('read', st['kept']):,} → kept {st['kept']:,}
|
| 111 |
-
|
| 112 |
-
Token counts are a fast tiktoken (cl100k) proxy (~1% off Llama-3); the canonical
|
| 113 |
-
Llama-3 count is computed at release.
|
| 114 |
-
"""
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
def main():
|
| 118 |
-
rows, tot_doc, tot_tok, tot_chr = [], 0, 0, 0
|
| 119 |
-
for name, cfg in SOURCES.items():
|
| 120 |
-
st = load_stats(name)
|
| 121 |
-
if not st:
|
| 122 |
-
print(f" ! no stats for {name}"); continue
|
| 123 |
-
# Sources with a hand-authored datasheet (rich provenance, per-source add
|
| 124 |
-
# date) opt out of template regeneration to avoid clobbering it.
|
| 125 |
-
if not cfg.get("custom_datasheet"):
|
| 126 |
-
(ROOT / "data" / name / f"{name}.md").write_text(datasheet(name, cfg, st))
|
| 127 |
-
rows.append((name, cfg, st))
|
| 128 |
-
tot_doc += st["kept"]; tot_tok += st["tokens"]; tot_chr += st["chars"]
|
| 129 |
-
rows.sort(key=lambda r: -r[2]["tokens"])
|
| 130 |
-
|
| 131 |
-
tbl = "\n".join(
|
| 132 |
-
f"| [{n}](data/{n}/{n}.md) | {c['pretty']} | `{c['license']}` | "
|
| 133 |
-
f"{s['kept']:,} | {s['tokens']/1e6:,.1f}M |"
|
| 134 |
-
for n, c, s in rows)
|
| 135 |
-
excl = "\n".join(f"| `{k}` | {v} |" for k, v in EXCLUDED.items())
|
| 136 |
-
phrase_frequency = ""
|
| 137 |
-
phrase_path = ROOT / "artifacts" / "pattern_frequency_hf_snippet.md"
|
| 138 |
-
if phrase_path.exists():
|
| 139 |
-
snippet = phrase_path.read_text().replace(
|
| 140 |
-
"## Phrase frequency in corpus (token-normalized)\n\n", ""
|
| 141 |
-
)
|
| 142 |
-
phrase_frequency = (
|
| 143 |
-
"\n## Results\n\n"
|
| 144 |
-
"### Corpus phrase frequency (normalized by tokens)\n\n"
|
| 145 |
-
"Raw counts and token-normalized shares are regenerated from the "
|
| 146 |
-
"current parquet files with `src/pattern_frequency_report.py`.\n\n"
|
| 147 |
-
f"{snippet}"
|
| 148 |
-
)
|
| 149 |
-
|
| 150 |
-
readme = f"""---
|
| 151 |
-
license: cc-by-sa-4.0
|
| 152 |
-
language:
|
| 153 |
-
- pl
|
| 154 |
-
pretty_name: Polish DynaWord
|
| 155 |
-
task_categories:
|
| 156 |
-
- text-generation
|
| 157 |
-
size_categories:
|
| 158 |
-
- 1M<n<10M
|
| 159 |
-
tags:
|
| 160 |
-
- polish
|
| 161 |
-
- pretraining
|
| 162 |
-
- dynaword
|
| 163 |
-
---
|
| 164 |
-
|
| 165 |
-
# Polish DynaWord
|
| 166 |
-
|
| 167 |
-
A continuously developed, **openly-licensed**, human-text Polish corpus — a Polish
|
| 168 |
-
edition in the [Dynaword](https://huggingface.co/datasets/danish-foundation-models/danish-dynaword)
|
| 169 |
-
family (Enevoldsen et al., [arXiv:2508.02271](https://arxiv.org/abs/2508.02271)).
|
| 170 |
-
|
| 171 |
-
> **v{VERSION} stable** · {tot_doc:,} documents · **{tot_tok/1e9:.2f}B tokens**
|
| 172 |
-
> (tiktoken proxy; canonical Llama-3 count at release) · {len(rows)} sources
|
| 173 |
-
> Updated: **{RELEASE_DATE}**
|
| 174 |
-
|
| 175 |
-
> **v0.3-dev experimental track** · quality/diversity workflow, source-gate
|
| 176 |
-
> validation and candidate-data audits. This is development work, not a released
|
| 177 |
-
> corpus version, and it does not replace the v{VERSION} stable parquets.
|
| 178 |
-
|
| 179 |
-
> **Europeana validation artifact (2026-07-10)** · a separate reproducible
|
| 180 |
-
> 810-document direct-ingestion sample stored under the legacy path
|
| 181 |
-
> `previews/v0.3.1/europeana.parquet`. It is not a full dataset release.
|
| 182 |
-
|
| 183 |
-
## Releases
|
| 184 |
-
|
| 185 |
-
### Stable releases
|
| 186 |
-
|
| 187 |
-
| version | status | documents | tokens | notes |
|
| 188 |
-
|---|---|---:|---:|---|
|
| 189 |
-
| `v0.2.
|
| 190 |
-
| `v0.2.
|
| 191 |
-
| `v0.2.
|
| 192 |
-
| `v0.2.
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
|
| 200 |
-
|
|
| 201 |
-
| `
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
and
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
#### v0.2.
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
[PR #
|
| 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 |
-
(see
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Generate Dynaword documentation: per-source datasheets + README + CHANGELOG + LICENSE.
|
| 3 |
+
|
| 4 |
+
Reads sources.py + data/<source>/<source>.stats.json (written by build_dynaword.py).
|
| 5 |
+
Implements the "Documented" principle (datasheets, Gebru et al. 2021) and the
|
| 6 |
+
aggregate README table (paper 2508.02271).
|
| 7 |
+
"""
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
import json, sys
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
|
| 12 |
+
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
| 13 |
+
from sources import SOURCES, EXCLUDED, ADDED
|
| 14 |
+
|
| 15 |
+
ROOT = Path(__file__).resolve().parent.parent
|
| 16 |
+
VERSION = "0.2.4"
|
| 17 |
+
RELEASE_DATE = "2026-08-07"
|
| 18 |
+
CONTACT = "k.wikiel@gmail.com" # notice-and-takedown / data-removal requests
|
| 19 |
+
|
| 20 |
+
# Dupochron: documented good-faith provenance + no-warranty + takedown + PII.
|
| 21 |
+
DISCLAIMER = f"""## Personal & sensitive data
|
| 22 |
+
This corpus contains **only** text that its upstream sources already published
|
| 23 |
+
under open licenses or as official public-domain record. It therefore includes
|
| 24 |
+
names and statements of **public figures acting in a public capacity** — e.g.
|
| 25 |
+
parliamentary speakers (PPC), authorities named in legal acts (EUR-Lex), and
|
| 26 |
+
people described in encyclopedic articles (Wikipedia/Wikisource). No private,
|
| 27 |
+
non-public personal data was collected or added. If you are a data subject and
|
| 28 |
+
want content concerning you removed, contact **{CONTACT}** — it will be dropped
|
| 29 |
+
from the next version (see retroactive-removal policy below).
|
| 30 |
+
|
| 31 |
+
## Disclaimer & legal
|
| 32 |
+
- **Provenance in good faith.** Per-source licenses are reproduced *as documented
|
| 33 |
+
by the upstream sources and by SpeakLeash* (the intermediate aggregator), to the
|
| 34 |
+
best of our knowledge. We make no independent legal warranty about the copyright
|
| 35 |
+
status of any individual document.
|
| 36 |
+
- **No ownership claim.** This release is a *curated, license-reviewed, documented
|
| 37 |
+
aggregation*. We claim no ownership of the underlying texts; rights remain with
|
| 38 |
+
the original authors/rightsholders under their respective licenses.
|
| 39 |
+
- **Provided "as is"**, without warranty of any kind, express or implied. This is
|
| 40 |
+
not legal advice.
|
| 41 |
+
- **Your compliance is yours.** Downstream users must satisfy each upstream
|
| 42 |
+
license themselves — in particular **CC-BY-SA-4.0 attribution and share-alike**
|
| 43 |
+
for derivatives of this dataset, and attribution to the upstream sources and to
|
| 44 |
+
SpeakLeash.
|
| 45 |
+
- **Notice-and-takedown.** Any source or rightsholder raising a substantiated
|
| 46 |
+
objection can have material removed: contact **{CONTACT}**; it is dropped from
|
| 47 |
+
the next version and recorded in the CHANGELOG. Removal is retroactive
|
| 48 |
+
going-forward (prior immutable snapshots/commits may persist).
|
| 49 |
+
"""
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def load_stats(name):
|
| 53 |
+
f = ROOT / "data" / name / f"{name}.stats.json"
|
| 54 |
+
return json.loads(f.read_text()) if f.exists() else None
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def datasheet(name, cfg, st):
|
| 58 |
+
license_rows = ""
|
| 59 |
+
licenses = st.get("licenses") or {}
|
| 60 |
+
if licenses:
|
| 61 |
+
top = sorted(licenses.items(), key=lambda item: -item[1])[:20]
|
| 62 |
+
license_rows = "\n\n## Per-document license metadata\n| license | documents |\n|---|---:|\n"
|
| 63 |
+
license_rows += "\n".join(f"| `{k or 'UNKNOWN'}` | {v:,} |" for k, v in top)
|
| 64 |
+
author_note = ""
|
| 65 |
+
if "authors_with_value" in st:
|
| 66 |
+
author_note = (
|
| 67 |
+
f"\n\nAuthor metadata present for **{st.get('authors_with_value', 0):,}** "
|
| 68 |
+
"documents. Empty values mean the upstream record did not expose a "
|
| 69 |
+
"machine-readable author field."
|
| 70 |
+
)
|
| 71 |
+
legal_note = cfg.get("legal_note", "")
|
| 72 |
+
if legal_note:
|
| 73 |
+
legal_note = f"\n\n## Legal scope note\n{legal_note}"
|
| 74 |
+
source_note = ""
|
| 75 |
+
if st.get("stats_recomputed_from_parquet"):
|
| 76 |
+
source_note = "\n\nStatistics were recomputed directly from the released parquet file."
|
| 77 |
+
return f"""# {name}
|
| 78 |
+
|
| 79 |
+
{cfg['pretty']}
|
| 80 |
+
|
| 81 |
+
## Dataset description
|
| 82 |
+
- **Source (upstream):** {cfg['upstream']}
|
| 83 |
+
- **Domain:** {cfg['domain']}
|
| 84 |
+
- **Language:** Polish (pl)
|
| 85 |
+
- **License:** `{cfg['license']}`
|
| 86 |
+
- **Created (range):** {cfg['created']}
|
| 87 |
+
- **Added:** {ADDED}
|
| 88 |
+
|
| 89 |
+
## Licensing — traceable basis
|
| 90 |
+
{cfg['traceable']}
|
| 91 |
+
|
| 92 |
+
## Provenance
|
| 93 |
+
{cfg.get('provenance', f"Pulled from SpeakLeash's public redistribution "
|
| 94 |
+
f"(`speakleash-ds-pub`, key `{cfg.get('speakleash_key')}`) of the upstream source "
|
| 95 |
+
f"above. SpeakLeash credited as intermediate aggregator; upstream "
|
| 96 |
+
f"license/attribution preserved.")}
|
| 97 |
+
|
| 98 |
+
## Statistics
|
| 99 |
+
| documents | characters | tokens (tiktoken proxy) |
|
| 100 |
+
|---:|---:|---:|
|
| 101 |
+
| {st['kept']:,} | {st['chars']:,} | {st['tokens']:,} |
|
| 102 |
+
{license_rows}{author_note}{legal_note}{source_note}
|
| 103 |
+
|
| 104 |
+
## Filters applied (build_dynaword.py)
|
| 105 |
+
Minimal, per Dynaword guidelines (heavy filtering left to downstream use):
|
| 106 |
+
- drop documents < 200 chars: **{st.get('drop_short', 0):,}**
|
| 107 |
+
- drop non-Polish (diacritic ratio): **{st.get('drop_lang', 0):,}**
|
| 108 |
+
- exact cross-source dedup (sha1): **{st.get('drop_dup', 0):,}**
|
| 109 |
+
- OCR alpha-ratio < 0.70 (OCR sources only): **{st.get('drop_ocr', 0):,}**
|
| 110 |
+
- read {st.get('read', st['kept']):,} → kept {st['kept']:,}
|
| 111 |
+
|
| 112 |
+
Token counts are a fast tiktoken (cl100k) proxy (~1% off Llama-3); the canonical
|
| 113 |
+
Llama-3 count is computed at release.
|
| 114 |
+
"""
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
def main():
|
| 118 |
+
rows, tot_doc, tot_tok, tot_chr = [], 0, 0, 0
|
| 119 |
+
for name, cfg in SOURCES.items():
|
| 120 |
+
st = load_stats(name)
|
| 121 |
+
if not st:
|
| 122 |
+
print(f" ! no stats for {name}"); continue
|
| 123 |
+
# Sources with a hand-authored datasheet (rich provenance, per-source add
|
| 124 |
+
# date) opt out of template regeneration to avoid clobbering it.
|
| 125 |
+
if not cfg.get("custom_datasheet"):
|
| 126 |
+
(ROOT / "data" / name / f"{name}.md").write_text(datasheet(name, cfg, st))
|
| 127 |
+
rows.append((name, cfg, st))
|
| 128 |
+
tot_doc += st["kept"]; tot_tok += st["tokens"]; tot_chr += st["chars"]
|
| 129 |
+
rows.sort(key=lambda r: -r[2]["tokens"])
|
| 130 |
+
|
| 131 |
+
tbl = "\n".join(
|
| 132 |
+
f"| [{n}](data/{n}/{n}.md) | {c['pretty']} | `{c['license']}` | "
|
| 133 |
+
f"{s['kept']:,} | {s['tokens']/1e6:,.1f}M |"
|
| 134 |
+
for n, c, s in rows)
|
| 135 |
+
excl = "\n".join(f"| `{k}` | {v} |" for k, v in EXCLUDED.items())
|
| 136 |
+
phrase_frequency = ""
|
| 137 |
+
phrase_path = ROOT / "artifacts" / "pattern_frequency_hf_snippet.md"
|
| 138 |
+
if phrase_path.exists():
|
| 139 |
+
snippet = phrase_path.read_text().replace(
|
| 140 |
+
"## Phrase frequency in corpus (token-normalized)\n\n", ""
|
| 141 |
+
)
|
| 142 |
+
phrase_frequency = (
|
| 143 |
+
"\n## Results\n\n"
|
| 144 |
+
"### Corpus phrase frequency (normalized by tokens)\n\n"
|
| 145 |
+
"Raw counts and token-normalized shares are regenerated from the "
|
| 146 |
+
"current parquet files with `src/pattern_frequency_report.py`.\n\n"
|
| 147 |
+
f"{snippet}"
|
| 148 |
+
)
|
| 149 |
+
|
| 150 |
+
readme = f"""---
|
| 151 |
+
license: cc-by-sa-4.0
|
| 152 |
+
language:
|
| 153 |
+
- pl
|
| 154 |
+
pretty_name: Polish DynaWord
|
| 155 |
+
task_categories:
|
| 156 |
+
- text-generation
|
| 157 |
+
size_categories:
|
| 158 |
+
- 1M<n<10M
|
| 159 |
+
tags:
|
| 160 |
+
- polish
|
| 161 |
+
- pretraining
|
| 162 |
+
- dynaword
|
| 163 |
+
---
|
| 164 |
+
|
| 165 |
+
# Polish DynaWord
|
| 166 |
+
|
| 167 |
+
A continuously developed, **openly-licensed**, human-text Polish corpus — a Polish
|
| 168 |
+
edition in the [Dynaword](https://huggingface.co/datasets/danish-foundation-models/danish-dynaword)
|
| 169 |
+
family (Enevoldsen et al., [arXiv:2508.02271](https://arxiv.org/abs/2508.02271)).
|
| 170 |
+
|
| 171 |
+
> **v{VERSION} stable** · {tot_doc:,} documents · **{tot_tok/1e9:.2f}B tokens**
|
| 172 |
+
> (tiktoken proxy; canonical Llama-3 count at release) · {len(rows)} sources
|
| 173 |
+
> Updated: **{RELEASE_DATE}**
|
| 174 |
+
|
| 175 |
+
> **v0.3-dev experimental track** · quality/diversity workflow, source-gate
|
| 176 |
+
> validation and candidate-data audits. This is development work, not a released
|
| 177 |
+
> corpus version, and it does not replace the v{VERSION} stable parquets.
|
| 178 |
+
|
| 179 |
+
> **Europeana validation artifact (2026-07-10)** · a separate reproducible
|
| 180 |
+
> 810-document direct-ingestion sample stored under the legacy path
|
| 181 |
+
> `previews/v0.3.1/europeana.parquet`. It is not a full dataset release.
|
| 182 |
+
|
| 183 |
+
## Releases
|
| 184 |
+
|
| 185 |
+
### Stable releases
|
| 186 |
+
|
| 187 |
+
| version | status | documents | tokens | notes |
|
| 188 |
+
|---|---|---:|---:|---|
|
| 189 |
+
| `v0.2.4` | stable release | {tot_doc:,} | {tot_tok/1e9:.2f}B | Expanded `european_hplt_v3_pl` to WDS bins 10-5 (+1.49M docs / 2.04B tok); phone PII-scrub hardening (independent dual-lens) + cross-source dedup (zero-overlap). |
|
| 190 |
+
| `v0.2.3` | previous stable | 2,710,974 | 6.88B | Adds community-contributed `european_hplt_v3_pl`, `global_voices` and `nkjp1m`. |
|
| 191 |
+
| `v0.2.2` | previous stable | 2,579,963 | 6.36B | Added community-contributed `govpl`: 88,190 docs / 80.7M tokens. |
|
| 192 |
+
| `v0.2.1` | previous stable | 2,491,773 | 6.28B | 12-source corpus with `license` and `author` metadata columns; added `1000_novels`. |
|
| 193 |
+
| `v0.2.0` | previous stable | 2,490,773 | 6.22B | Provenance-first corpus from 11 open/official sources. |
|
| 194 |
+
|
| 195 |
+

|
| 196 |
+
|
| 197 |
+
### Development and validation artifacts
|
| 198 |
+
|
| 199 |
+
| name | type | scope | notes |
|
| 200 |
+
|---|---|---|---|
|
| 201 |
+
| `v0.3-dev` | experimental development track | workflow and candidate audits | Quality remix, legal-source caps, source QA, deduplication and direct-upstream ingestion. Not a corpus release. |
|
| 202 |
+
| `Europeana validation artifact 2026-07-10` | reproducible sample | 810 documents / 140,042 tokens | Stored at the legacy path `previews/v0.3.1/europeana.parquet`; preserves per-record rights and creator metadata. Not a corpus release. |
|
| 203 |
+
|
| 204 |
+
### Version details
|
| 205 |
+
|
| 206 |
+
#### v0.2.4 — current stable
|
| 207 |
+
|
| 208 |
+
Expanded `european_hplt_v3_pl` from WDS bins 10+9 to **WDS bins 10-5** (added
|
| 209 |
+
quality bins 8/7/6/5 and further WDS-9 shards): **+1,493,384 documents /
|
| 210 |
+
2,043,141,874 cl100k-proxy tokens**, 100% CC0-1.0. Includes a phone PII-scrub
|
| 211 |
+
hardening pass (v12b) verified by two independent lenses (a systematic
|
| 212 |
+
recall-gap masked by pipeline self-report was caught pre-release), and
|
| 213 |
+
cross-source deduplication against the existing WDS-10+9 shards (exact-dup 0,
|
| 214 |
+
near-dup overlap 0.0000%, byte-verified) — resolving the "downstream near-dedup
|
| 215 |
+
remains" caveat from the original release.
|
| 216 |
+
|
| 217 |
+
#### v0.2.3 — previous stable
|
| 218 |
+
|
| 219 |
+
Community expansion release. Adds `european_hplt_v3_pl` from
|
| 220 |
+
[PR #5](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/5)
|
| 221 |
+
and `global_voices` from
|
| 222 |
+
[PR #7](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/7),
|
| 223 |
+
plus `nkjp1m` from
|
| 224 |
+
[PR #8](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/8).
|
| 225 |
+
The complete 16-source release contains **2,710,974 documents /
|
| 226 |
+
6,881,277,362 cl100k-proxy tokens**, summed from the released per-source parquet
|
| 227 |
+
statistics.
|
| 228 |
+
|
| 229 |
+
#### v0.2.2 — previous stable
|
| 230 |
+
|
| 231 |
+
Added `govpl` from
|
| 232 |
+
[PR #9](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/9):
|
| 233 |
+
88,190 Polish government press releases collected directly from 133 gov.pl
|
| 234 |
+
ministry and agency subsites.
|
| 235 |
+
|
| 236 |
+
#### v0.2.1 — previous stable
|
| 237 |
+
|
| 238 |
+
Introduced the canonical eight-column release schema:
|
| 239 |
+
`id, text, source, added, created, token_count, license, author`. Added
|
| 240 |
+
`1000_novels` from
|
| 241 |
+
[PR #1](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/1)
|
| 242 |
+
and recomputed all release statistics from parquet files.
|
| 243 |
+
|
| 244 |
+
#### v0.2.0 — initial stable corpus
|
| 245 |
+
|
| 246 |
+
The provenance-first baseline: 11 reviewed open or official sources,
|
| 247 |
+
2,490,773 documents and 6.22B proxy tokens.
|
| 248 |
+
|
| 249 |
+
#### v0.3-dev — experimental quality workflow
|
| 250 |
+
|
| 251 |
+
Candidate-only work on a better-balanced training mixture: legal-source caps,
|
| 252 |
+
temperature sampling, source QA, deduplication and direct-upstream ingestion.
|
| 253 |
+
It is not a replacement for the stable corpus.
|
| 254 |
+
|
| 255 |
+
#### Europeana validation artifact — 2026-07-10
|
| 256 |
+
|
| 257 |
+
A separate reproducible 810-document Europeana sample preserving per-record
|
| 258 |
+
rights and creator metadata. It does not change stable-release totals.
|
| 259 |
+
`v0.3.1-preview` remains only as the legacy storage-path label.
|
| 260 |
+
|
| 261 |
+
## What this dataset contributes
|
| 262 |
+
The raw texts come from existing open corpora (redistributed via SpeakLeash and,
|
| 263 |
+
where applicable, fetched from upstream). **The value added here is the curation,
|
| 264 |
+
not the bytes**, following the Dynaword methodology:
|
| 265 |
+
|
| 266 |
+
1. **License review per source** — each source vetted for an *openly-licensed,
|
| 267 |
+
traceable* legal basis (documented in its datasheet); sources that fail the
|
| 268 |
+
review are **excluded with a stated reason** (see table below), not silently
|
| 269 |
+
kept. This is the core editorial work.
|
| 270 |
+
2. **Filtering & normalization** — minimal, reproducible gates (short-doc,
|
| 271 |
+
non-Polish, exact cross-source dedup, OCR garble) applied uniformly to one
|
| 272 |
+
clean schema: `id, text, source, added, created, token_count, license, author`.
|
| 273 |
+
3. **Documentation** — a datasheet per source (Gebru et al. 2021) + this card,
|
| 274 |
+
so provenance and licensing are auditable rather than assumed.
|
| 275 |
+
4. **Reproducibility & versioning** — `src/` rebuilds the corpus from sources;
|
| 276 |
+
new sources and removals are tracked in the CHANGELOG.
|
| 277 |
+
|
| 278 |
+
Credit for the underlying texts belongs to the upstream sources and to SpeakLeash
|
| 279 |
+
as the redistributing aggregator; this release does not claim ownership of them
|
| 280 |
+
(see Disclaimer).
|
| 281 |
+
|
| 282 |
+
## Contributors
|
| 283 |
+
|
| 284 |
+
| contributor | contribution | release / PR |
|
| 285 |
+
|---|---|---|
|
| 286 |
+
| [Kacper Wikieł](https://huggingface.co/kacperwikiel) | Project maintainer; corpus curation, source and license review, release engineering, documentation, validation and reproducible build workflow. | all releases |
|
| 287 |
+
| [Bart Kobyliński](https://huggingface.co/bartoszkobylinski1) | Added `1000_novels`; expanded Biblioteka Nauki and Europeana ingestion with per-document license and author metadata. | `v0.2.1`, [PR #1](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/1) |
|
| 288 |
+
| [Paweł Puzio](https://huggingface.co/ppuzio) | Built `govpl`: subsite discovery, direct ingestion pipeline, dataset artifact, contract tests and documentation. | `v0.2.2`, [PR #9](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/9) |
|
| 289 |
+
| [Arkadiusz Słota](https://huggingface.co/Maggio33) | Built & expanded `european_hplt_v3_pl`: HPLT v3 WDS 10+9 (PR #5) then WDS 10-5 expansion (+1,493,384 docs / 2.04B tok), modular cleaning pipeline, phone-recall PII-scrub (v12b, independent dual-lens), cross-source dedup-vs-base (zero-overlap), validation and documentation. | `v0.2.3` (PR #5), `v0.2.4` |
|
| 290 |
+
| [Dawid Majewski](https://huggingface.co/dawidmajewski) | Added the reviewed Global Voices Polish corpus with per-document author attribution and documentation. | `v0.2.3`, [PR #7](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/7) |
|
| 291 |
+
| [1am](https://huggingface.co/1am) | Added `nkjp1m`: the manually annotated 1-million-word NKJP subcorpus, direct fetch/build pipeline, source documentation and release artifact. | `v0.2.3`, [PR #8](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/8) |
|
| 292 |
+
|
| 293 |
+
Contributions are credited when they add a verifiable dataset artifact, pipeline,
|
| 294 |
+
validation, documentation or release work. A merged discussion with no resulting
|
| 295 |
+
files is not listed as a data contribution.
|
| 296 |
+
|
| 297 |
+
## Guiding principles
|
| 298 |
+
1. **Open & traceable licensing** — every source is *openly licensed* with a documented
|
| 299 |
+
legal basis (see each datasheet's "traceable basis"), not a vague "public domain".
|
| 300 |
+
2. **Reproducibility** — `src/build_dynaword.py` rebuilds the corpus from sources.
|
| 301 |
+
3. **Documented** — a datasheet per source under `data/<source>/`.
|
| 302 |
+
4. **Extensibility** — versioned; new sources via PR.
|
| 303 |
+
|
| 304 |
+
## Sources
|
| 305 |
+
| source | description | license | documents | tokens |
|
| 306 |
+
|---|---|---|---:|---:|
|
| 307 |
+
{tbl}
|
| 308 |
+
| **total** | | | **{tot_doc:,}** | **{tot_tok/1e6:,.1f}M** |
|
| 309 |
+
|
| 310 |
+
## Method
|
| 311 |
+
Only **human-authored** text — no synthetic, machine-translated, or auto-transcribed
|
| 312 |
+
data. Gates are intentionally minimal (drop short docs, non-Polish, exact duplicates,
|
| 313 |
+
OCR garble); heavy quality filtering and mix-weighting are left to downstream training.
|
| 314 |
+
Evaluation-set decontamination is applied/marked separately. Schema:
|
| 315 |
+
`id, text, source, added, created, token_count, license, author`. The `license`
|
| 316 |
+
and `author` columns are per-document metadata when upstream exposes them; older
|
| 317 |
+
sources use the source-level license and an empty author field.
|
| 318 |
+
|
| 319 |
+
## v0.3 quality roadmap and current status
|
| 320 |
+
|
| 321 |
+
The v0.2.x raw corpus is intentionally provenance-first, but its token mix is too
|
| 322 |
+
heavy in legal/parliamentary language for natural general pretraining. The v0.3
|
| 323 |
+
workflow therefore separates **source inclusion** from **training mix**:
|
| 324 |
+
|
| 325 |
+
- cap `eurlex + parliamentary + dziennik_ustaw` to roughly **10-20%** of training
|
| 326 |
+
tokens combined;
|
| 327 |
+
- use source-level temperature sampling (`sqrt`, alpha `0.5`) instead of raw
|
| 328 |
+
token-proportional sampling;
|
| 329 |
+
- add traceably licensed contemporary/natural Polish: open web, academic prose,
|
| 330 |
+
cultural heritage text, guides, technical documentation/blogs, Q&A, and
|
| 331 |
+
dialogue/instruction data;
|
| 332 |
+
- run aggressive exact, normalized, and near-duplicate removal;
|
| 333 |
+
- reserve the final **5-15%** of training for higher-quality sources rather than
|
| 334 |
+
the largest sources;
|
| 335 |
+
- evaluate per-source perplexity and style contamination, not only global loss.
|
| 336 |
+
|
| 337 |
+
Current v0.3 source-ingestion status:
|
| 338 |
+
|
| 339 |
+
- `biblioteka_nauki`: prepared in the source registry as a direct-upstream
|
| 340 |
+
rebuild target with per-document license and author metadata; not included in
|
| 341 |
+
v{VERSION} parquets yet.
|
| 342 |
+
- `europeana`: prepared in the source registry as a direct-upstream rebuild
|
| 343 |
+
target with per-record rights statements and creator metadata; raw SpeakLeash
|
| 344 |
+
Europeana remains excluded.
|
| 345 |
+
- Europeana release policy: split conservatively at pre-1929 records for
|
| 346 |
+
US-sensitive downstream reuse, and keep later/unknown records separately
|
| 347 |
+
labeled or held until legal review.
|
| 348 |
+
- `european_hplt_v3_pl`: WDS bins 10+9 are included in v{VERSION} after contract
|
| 349 |
+
validation. HPLT packaging is CC0, while underlying crawled web documents can
|
| 350 |
+
carry independent rights; downstream near-dedup and web-content review remain
|
| 351 |
+
recommended before training.
|
| 352 |
+
|
| 353 |
+
Current review artifacts:
|
| 354 |
+
|
| 355 |
+
- `configs/source_candidates_v0_3.json` — candidate decisions and license policy.
|
| 356 |
+
- `artifacts/source_license_review_v0_3.md` — source-by-source license review.
|
| 357 |
+
- `artifacts/source_candidate_audit_v0_3.md` — generated Hugging Face metadata audit.
|
| 358 |
+
- `artifacts/training_mix_v0_3.md` — example 1B-token training mix with legal sources capped at 15%.
|
| 359 |
+
- `artifacts/bartek_source_ingestion_plan_2026-07-02.md` — PR contract for
|
| 360 |
+
Biblioteka Nauki and Europeana ingestion.
|
| 361 |
+
|
| 362 |
+
## Excluded sources (transparency)
|
| 363 |
+
Sources we reviewed and **deliberately left out** — part of the curation:
|
| 364 |
+
|
| 365 |
+
| source | reason |
|
| 366 |
+
|---|---|
|
| 367 |
+
{excl}
|
| 368 |
+
|
| 369 |
+
{DISCLAIMER}
|
| 370 |
+
## License & attribution
|
| 371 |
+
Released under **CC-BY-SA-4.0** (copyleft inherited from CC-BY-SA sources such as
|
| 372 |
+
Wikipedia/Wikisource/Wolne Lektury). Attribution due to each upstream (see datasheets)
|
| 373 |
+
and to **SpeakLeash** as the intermediate aggregator. Retroactive-removal policy: a
|
| 374 |
+
source that raises an objection is dropped from subsequent versions, recorded in the
|
| 375 |
+
CHANGELOG.
|
| 376 |
+
|
| 377 |
+
## Reproduce
|
| 378 |
+
```bash
|
| 379 |
+
python3 src/build_dynaword.py --all --speakleash-dir <speakleash_zst_dir> --out .
|
| 380 |
+
python3 src/make_docs.py
|
| 381 |
+
```
|
| 382 |
+
{phrase_frequency}
|
| 383 |
+
"""
|
| 384 |
+
(ROOT / "README.md").write_text(readme)
|
| 385 |
+
|
| 386 |
+
# CHANGELOG is append-only release history. Documentation regeneration must
|
| 387 |
+
# never erase earlier releases or hand-reviewed legal/release notes.
|
| 388 |
+
changelog_path = ROOT / "CHANGELOG.md"
|
| 389 |
+
changelog = changelog_path.read_text() if changelog_path.exists() else "# Changelog\n"
|
| 390 |
+
heading = f"## v{VERSION} ({RELEASE_DATE})"
|
| 391 |
+
if heading not in changelog:
|
| 392 |
+
entry = (
|
| 393 |
+
f"{heading}\n\n"
|
| 394 |
+
f"- Current release totals after parquet recount: {len(rows)} sources, "
|
| 395 |
+
f"{tot_doc:,} docs, {tot_tok:,} tokens (tiktoken cl100k proxy).\n\n"
|
| 396 |
+
)
|
| 397 |
+
changelog = changelog.replace("# Changelog\n", f"# Changelog\n\n{entry}", 1)
|
| 398 |
+
changelog_path.write_text(changelog)
|
| 399 |
+
|
| 400 |
+
(ROOT / "LICENSE").write_text(
|
| 401 |
+
"Polish DynaWord is released under Creative Commons Attribution-ShareAlike 4.0\n"
|
| 402 |
+
"International (CC-BY-SA-4.0): https://creativecommons.org/licenses/by-sa/4.0/\n\n"
|
| 403 |
+
"Per-source upstream licenses and attribution are documented in each\n"
|
| 404 |
+
"data/<source>/<source>.md datasheet.\n")
|
| 405 |
+
|
| 406 |
+
print(f"docs written: README + CHANGELOG + LICENSE + {len(rows)} datasheets")
|
| 407 |
+
print(f"TOTAL {tot_doc:,} docs | {tot_tok/1e9:.2f}B tok | {tot_chr/1e9:.1f}B chars")
|
| 408 |
+
|
| 409 |
+
|
| 410 |
+
if __name__ == "__main__":
|
| 411 |
+
main()
|
src/sources.py
CHANGED
|
@@ -1,344 +1,348 @@
|
|
| 1 |
-
"""Source registry for Polish DynaWord.
|
| 2 |
-
|
| 3 |
-
Each entry = one openly-licensed, *traceable* human-text source (paper 2508.02271,
|
| 4 |
-
principle: open+traceable licensing). The `traceable` field documents WHY the
|
| 5 |
-
license holds (not just "it's public domain") — e.g. statutory basis or upstream
|
| 6 |
-
license — as required by the Dynaword guidelines.
|
| 7 |
-
|
| 8 |
-
Provenance note: data is pulled from SpeakLeash's public redistribution
|
| 9 |
-
(iDrive e2 bucket) of these upstream sources; SpeakLeash is credited as the
|
| 10 |
-
intermediate aggregator, upstream license/attribution is preserved per source.
|
| 11 |
-
"""
|
| 12 |
-
|
| 13 |
-
# clean-6: passed the copyright review (2026-06-15). open_subtitles excluded
|
| 14 |
-
# (derivative of copyrighted film dialogue — same lesson as Danish Gigaword).
|
| 15 |
-
# Large cultural/academic sources require per-record rights metadata and should
|
| 16 |
-
# be rebuilt from direct upstream/export scripts rather than blind SpeakLeash pulls.
|
| 17 |
-
SOURCES = {
|
| 18 |
-
"wikipedia": {
|
| 19 |
-
"speakleash_key": "plwiki",
|
| 20 |
-
"pretty": "Polish Wikipedia",
|
| 21 |
-
"license": "CC-BY-SA-3.0",
|
| 22 |
-
"license_spdx": "CC-BY-SA-3.0",
|
| 23 |
-
"traceable": "Wikimedia dumps explicitly released under CC-BY-SA 3.0; "
|
| 24 |
-
"attribution to contributors + share-alike preserved.",
|
| 25 |
-
"upstream": "https://dumps.wikimedia.org/plwiki/latest/",
|
| 26 |
-
"domain": "encyclopedic",
|
| 27 |
-
"created": "2001-01-15, 2026-06-14",
|
| 28 |
-
"is_ocr": False,
|
| 29 |
-
},
|
| 30 |
-
"wikisource": {
|
| 31 |
-
"speakleash_key": "plwikisource",
|
| 32 |
-
"pretty": "Polish Wikisource",
|
| 33 |
-
"license": "CC-BY-SA-3.0",
|
| 34 |
-
"license_spdx": "CC-BY-SA-3.0",
|
| 35 |
-
"traceable": "Wikimedia dumps under CC-BY-SA 3.0; underlying texts are "
|
| 36 |
-
"public-domain works transcribed by the community.",
|
| 37 |
-
"upstream": "https://dumps.wikimedia.org/plwikisource/latest/",
|
| 38 |
-
"domain": "books/source-texts",
|
| 39 |
-
"created": "2005-01-01, 2026-06-14",
|
| 40 |
-
"is_ocr": False,
|
| 41 |
-
},
|
| 42 |
-
"eurlex": {
|
| 43 |
-
"speakleash_key": "eurlex_corpus",
|
| 44 |
-
"pretty": "EUR-Lex (EU legal acts, Polish)",
|
| 45 |
-
"license": "CC-BY-4.0",
|
| 46 |
-
"license_spdx": "CC-BY-4.0",
|
| 47 |
-
"traceable": "EU documents reusable under Commission Decision 2011/833/EU; "
|
| 48 |
-
"normative acts fall outside copyright (PL art. 4 pr. aut.). "
|
| 49 |
-
"Reuse authorised with source acknowledgement.",
|
| 50 |
-
"upstream": "https://eur-lex.europa.eu",
|
| 51 |
-
"domain": "legal",
|
| 52 |
-
"created": "1952-01-01, 2024-12-31",
|
| 53 |
-
"is_ocr": False,
|
| 54 |
-
},
|
| 55 |
-
"parliamentary": {
|
| 56 |
-
"speakleash_key": "PPC_corpus",
|
| 57 |
-
"pretty": "Polish Parliamentary Corpus (Sejm/Senat)",
|
| 58 |
-
"license": "public-domain (official documents)",
|
| 59 |
-
"license_spdx": "CC-BY-4.0",
|
| 60 |
-
"traceable": "Parliamentary proceedings are official documents outside "
|
| 61 |
-
"copyright (PL art. 4 pr. aut.); PPC redistributed by IPI PAN "
|
| 62 |
-
"under CC-BY-4.0.",
|
| 63 |
-
"upstream": "http://clip.ipipan.waw.pl/PPC",
|
| 64 |
-
"domain": "political/spoken",
|
| 65 |
-
"created": "1991-01-01, 2019-12-31",
|
| 66 |
-
"is_ocr": False,
|
| 67 |
-
},
|
| 68 |
-
"parlamint_pl": {
|
| 69 |
-
"file_key": "parlamint_pl",
|
| 70 |
-
"pretty": "ParlaMint-PL (parliamentary debates, 2015-2022)",
|
| 71 |
-
"license": "CC-BY-4.0",
|
| 72 |
-
"license_spdx": "CC-BY-4.0",
|
| 73 |
-
"traceable": "ParlaMint 3.0 corpora released under CC-BY 4.0 (CLARIN.SI "
|
| 74 |
-
"handle 11356/1486); parliamentary proceedings are also "
|
| 75 |
-
"official documents (PL art. 4 pr. aut.).",
|
| 76 |
-
"upstream": "http://hdl.handle.net/11356/1486",
|
| 77 |
-
"provenance": "Fetched directly from the CLARIN.SI plain-text edition "
|
| 78 |
-
"(ParlaMint-PL.tgz) by src/fetch_parlamint.py; one session "
|
| 79 |
-
"transcript per document, utterance IDs stripped. Modern "
|
| 80 |
-
"spoken register, complements the older PPC (1991-2019).",
|
| 81 |
-
"domain": "political/spoken",
|
| 82 |
-
"created": "2015-01-01, 2022-12-31",
|
| 83 |
-
"is_ocr": False,
|
| 84 |
-
},
|
| 85 |
-
"wolne_lektury": {
|
| 86 |
-
"speakleash_key": "wolne_lektury_corpus",
|
| 87 |
-
"pretty": "Wolne Lektury (school readings)",
|
| 88 |
-
"license": "CC-BY-SA-4.0 / Wolna Sztuka 1.3",
|
| 89 |
-
"license_spdx": "CC-BY-SA-4.0",
|
| 90 |
-
"traceable": "Wolne Lektury publishes under CC-BY-SA 4.0 or Free Art "
|
| 91 |
-
"License; texts are public-domain classics + cleared works.",
|
| 92 |
-
"upstream": "https://wolnelektury.pl/api/books/",
|
| 93 |
-
"domain": "literature",
|
| 94 |
-
"created": "1500-01-01, 2024-12-31",
|
| 95 |
-
"is_ocr": False,
|
| 96 |
-
},
|
| 97 |
-
"wikinews": {
|
| 98 |
-
"file_key": "plwikinews", # fetched from Wikimedia dumps, NOT via SpeakLeash
|
| 99 |
-
"pretty": "Polish Wikinews",
|
| 100 |
-
"license": "CC-BY-2.5",
|
| 101 |
-
"license_spdx": "CC-BY-2.5",
|
| 102 |
-
"traceable": "Wikinews content is released under CC-BY 2.5; attribution to "
|
| 103 |
-
"contributors preserved.",
|
| 104 |
-
"upstream": "https://pl.wikinews.org/",
|
| 105 |
-
"provenance": "Fetched directly from the official Wikimedia dump "
|
| 106 |
-
"(plwikinews-latest-pages-articles) by src/fetch_wikimedia.py; "
|
| 107 |
-
"mainspace only, wikitext stripped via mwparserfromhell.",
|
| 108 |
-
"domain": "news",
|
| 109 |
-
"created": "2005-01-01, 2025-12-31",
|
| 110 |
-
"is_ocr": False,
|
| 111 |
-
},
|
| 112 |
-
"wikivoyage": {
|
| 113 |
-
"file_key": "plwikivoyage",
|
| 114 |
-
"pretty": "Polish Wikivoyage (travel guides)",
|
| 115 |
-
"license": "CC-BY-SA-3.0",
|
| 116 |
-
"license_spdx": "CC-BY-SA-3.0",
|
| 117 |
-
"traceable": "Wikivoyage content is released under CC-BY-SA 3.0; "
|
| 118 |
-
"attribution + share-alike preserved.",
|
| 119 |
-
"upstream": "https://pl.wikivoyage.org/",
|
| 120 |
-
"provenance": "Fetched directly from the official Wikimedia dump "
|
| 121 |
-
"(plwikivoyage-latest-pages-articles) by src/fetch_wikimedia.py; "
|
| 122 |
-
"mainspace only, wikitext stripped via mwparserfromhell.",
|
| 123 |
-
"domain": "travel",
|
| 124 |
-
"created": "2012-01-01, 2025-12-31",
|
| 125 |
-
"is_ocr": False,
|
| 126 |
-
},
|
| 127 |
-
"wikibooks": {
|
| 128 |
-
"file_key": "plwikibooks",
|
| 129 |
-
"pretty": "Polish Wikibooks (open textbooks)",
|
| 130 |
-
"license": "CC-BY-SA-3.0",
|
| 131 |
-
"license_spdx": "CC-BY-SA-3.0",
|
| 132 |
-
"traceable": "Wikibooks content is released under CC-BY-SA 3.0; "
|
| 133 |
-
"attribution + share-alike preserved.",
|
| 134 |
-
"upstream": "https://pl.wikibooks.org/",
|
| 135 |
-
"provenance": "Fetched directly from the official Wikimedia dump "
|
| 136 |
-
"(plwikibooks-latest-pages-articles) by src/fetch_wikimedia.py; "
|
| 137 |
-
"mainspace only, wikitext stripped via mwparserfromhell.",
|
| 138 |
-
"domain": "instructional",
|
| 139 |
-
"created": "2004-01-01, 2025-12-31",
|
| 140 |
-
"is_ocr": False,
|
| 141 |
-
},
|
| 142 |
-
"wikiquote": {
|
| 143 |
-
"file_key": "plwikiquote",
|
| 144 |
-
"pretty": "Polish Wikiquote (quotations)",
|
| 145 |
-
"license": "CC-BY-SA-3.0",
|
| 146 |
-
"license_spdx": "CC-BY-SA-3.0",
|
| 147 |
-
"traceable": "Wikiquote content is released under CC-BY-SA 3.0; "
|
| 148 |
-
"attribution + share-alike preserved.",
|
| 149 |
-
"upstream": "https://pl.wikiquote.org/",
|
| 150 |
-
"provenance": "Fetched directly from the official Wikimedia dump "
|
| 151 |
-
"(plwikiquote-latest-pages-articles) by src/fetch_wikimedia.py; "
|
| 152 |
-
"mainspace only, wikitext stripped via mwparserfromhell.",
|
| 153 |
-
"domain": "quotations",
|
| 154 |
-
"created": "2005-01-01, 2025-12-31",
|
| 155 |
-
"is_ocr": False,
|
| 156 |
-
},
|
| 157 |
-
"eltec_pol": {
|
| 158 |
-
"file_key": "eltec_pol",
|
| 159 |
-
"pretty": "ELTeC-pol (European Literary Text Collection, Polish)",
|
| 160 |
-
"license": "CC-BY-4.0",
|
| 161 |
-
"license_spdx": "CC-BY-4.0",
|
| 162 |
-
"traceable": "ELTeC corpora are released under CC-BY 4.0 by the COST Action "
|
| 163 |
-
"'Distant Reading for European Literary History' (CA16204).",
|
| 164 |
-
"upstream": "https://github.com/COST-ELTeC/ELTeC-pol",
|
| 165 |
-
"provenance": "Fetched directly from the COST-ELTeC/ELTeC-pol GitHub "
|
| 166 |
-
"repository (level1 TEI) by src/fetch_eltec.py; reading text "
|
| 167 |
-
"extracted from TEI <body> paragraphs.",
|
| 168 |
-
"domain": "literature",
|
| 169 |
-
"created": "1840-01-01, 1920-12-31",
|
| 170 |
-
"is_ocr": False,
|
| 171 |
-
},
|
| 172 |
-
"dziennik_ustaw": {
|
| 173 |
-
"file_key": "dziennik_ustaw", # fetched directly, NOT via SpeakLeash
|
| 174 |
-
"pretty": "Dziennik Ustaw + Monitor Polski (Polish primary legislation)",
|
| 175 |
-
"license": "public-domain (official documents)",
|
| 176 |
-
"license_spdx": "CC0-1.0",
|
| 177 |
-
"traceable": "Normative acts and their official drafts are not subject to "
|
| 178 |
-
"copyright (PL art. 4 ustawy o prawie autorskim). Published by "
|
| 179 |
-
"the state; reuse unrestricted.",
|
| 180 |
-
"upstream": "https://api.sejm.gov.pl/eli/acts",
|
| 181 |
-
"provenance": "Fetched directly from the Sejm ELI API (text.html per act) "
|
| 182 |
-
"by src/fetch_eli.py — a native source, not redistributed via "
|
| 183 |
-
"SpeakLeash. Full provenance: each act's `meta.url` is its ELI "
|
| 184 |
-
"address, resolvable on api.sejm.gov.pl.",
|
| 185 |
-
"domain": "legal",
|
| 186 |
-
"created": "1918-01-01, 2025-12-31",
|
| 187 |
-
"is_ocr": False,
|
| 188 |
-
},
|
| 189 |
-
"govpl": {
|
| 190 |
-
"file_key": "govpl", # fetched directly from gov.pl, NOT via SpeakLeash
|
| 191 |
-
"pretty": "gov.pl — Polish government press releases",
|
| 192 |
-
"license": "CC-BY-SA-4.0",
|
| 193 |
-
"license_spdx": "CC-BY-SA-4.0",
|
| 194 |
-
"traceable": "All textual content on gov.pl is published under CC-BY-SA "
|
| 195 |
-
"4.0 (site footer: \"Treści tekstowe publikowane w serwisie "
|
| 196 |
-
"… są udostępniane na licencji CC BY-SA 4.0\"). Authored and "
|
| 197 |
-
"hosted by the Polish government, which holds the right to "
|
| 198 |
-
"license it — same open family as Polish Wikipedia.",
|
| 199 |
-
"upstream": "https://www.gov.pl/",
|
| 200 |
-
"provenance": "Ministry/agency press releases fetched directly from gov.pl "
|
| 201 |
-
"(editor-content per article, HTML stripped) by "
|
| 202 |
-
"src/fetch_govpl.py. Subsites + their non-uniform news-section "
|
| 203 |
-
"paths are enumerated by src/discover_govpl.py into the "
|
| 204 |
-
"committed manifest src/govpl_subsites.json (gov.pl has no "
|
| 205 |
-
"sitemap/API). Each record's meta.url resolves on gov.pl.",
|
| 206 |
-
"domain": "government",
|
| 207 |
-
# actual min/max of article dates in the fetched corpus (90,124 dated).
|
| 208 |
-
"created": "2005-09-26, 2026-07-19",
|
| 209 |
-
"is_ocr": False,
|
| 210 |
-
},
|
| 211 |
-
"biblioteka_nauki": {
|
| 212 |
-
"file_key": "biblioteka_nauki_pl_corpus",
|
| 213 |
-
"pretty": "Biblioteka Nauki",
|
| 214 |
-
"license": "per-record upstream license",
|
| 215 |
-
"license_spdx": "MIXED",
|
| 216 |
-
"traceable": "Documents are accepted only when the direct upstream record "
|
| 217 |
-
"exposes a reusable license. The parquet carries the "
|
| 218 |
-
"per-document `license` and `author` fields from the upstream "
|
| 219 |
-
"metadata collected by the source-specific rebuild script.",
|
| 220 |
-
"upstream": "https://bibliotekanauki.pl/",
|
| 221 |
-
"provenance": "Fetched directly from Biblioteka Nauki via the contributor "
|
| 222 |
-
"rebuild script, not from the SpeakLeash redistribution. "
|
| 223 |
-
"License and author metadata are checked document by document "
|
| 224 |
-
"before normalization into the DynaWord schema.",
|
| 225 |
-
"domain": "academic",
|
| 226 |
-
"created": "unknown",
|
| 227 |
-
"is_ocr": False,
|
| 228 |
-
},
|
| 229 |
-
"europeana": {
|
| 230 |
-
# Direct rebuild output from fetch_europeana.py, never the raw
|
| 231 |
-
# SpeakLeash Europeana aggregate.
|
| 232 |
-
"file_key": "europeana",
|
| 233 |
-
"pretty": "Europeana Polish records",
|
| 234 |
-
"license": "per-record public-domain/open rights statement",
|
| 235 |
-
"license_spdx": "MIXED",
|
| 236 |
-
"traceable": "Documents are accepted only with per-record Europeana rights "
|
| 237 |
-
"metadata classified as public-domain/open. Public-domain "
|
| 238 |
-
"status is jurisdiction-sensitive; downstream users must "
|
| 239 |
-
"check their local legal requirements.",
|
| 240 |
-
"upstream": "https://www.europeana.eu/",
|
| 241 |
-
"provenance": "Fetched directly from Europeana via the contributor rebuild "
|
| 242 |
-
"script, preserving per-record rights and creator metadata. "
|
| 243 |
-
"The raw SpeakLeash aggregate remains insufficient because "
|
| 244 |
-
"it does not carry enough rights evidence for release.",
|
| 245 |
-
"domain": "cultural heritage",
|
| 246 |
-
"created": "unknown",
|
| 247 |
-
"is_ocr": True,
|
| 248 |
-
"legal_note": "Europeana public-domain statements are primarily evaluated "
|
| 249 |
-
"for Poland/EU. For US reuse, records created/published "
|
| 250 |
-
"before 1929 are the conservative release slice; later "
|
| 251 |
-
"records should remain separately labeled or held until "
|
| 252 |
-
"legal review confirms their US status.",
|
| 253 |
-
},
|
| 254 |
-
"nkjp1m": {
|
| 255 |
-
"file_key": "nkjp1m",
|
| 256 |
-
"pretty": "The manually annotated 1-million word subcorpus of the National Corpus of Polish",
|
| 257 |
-
"license": "CC-BY",
|
| 258 |
-
"license_spdx": "CC-BY-4.0",
|
| 259 |
-
"traceable": "The NKJP download page (clip.ipipan.waw.pl) states the manually annotated 1-million-word subcorpus (Podkorpus Milionowy NKJP 1.2) is available under a CC-BY licence; attribution to the NKJP Consortium (IPI PAN) preserved. The page states 'CC-BY' with no version, normalized to CC-BY-4.0 for SPDX. The CC-BY licence covers the corpus text; NKJP's separate tools are GPL and are not included here.",
|
| 260 |
-
"upstream": "https://clip.ipipan.waw.pl/NationalCorpusOfPolish",
|
| 261 |
-
"provenance": "Downloaded the IPI PAN tarball (NKJP-PodkorpusMilionowy-1.2.tar.gz) directly by src/fetch_njkp.py, one row per TEI <div> passage (its <ab> paragraphs joined by newlines, ellipsis markers stripped). The same minimal gates as build_dynaword.py are applied per passage (drop < 200 chars, drop non-Polish by diacritic ratio, exact sha1 dedup; the OCR gate is inapplicable). Per-document 'created' is the sample's TEI publication date (<date type=\"published\">) where the header records one. Normalized into the DynaWord schema; cl100k token counts via tiktoken (encode_ordinary), and the stats are recomputed from the written parquet.",
|
| 262 |
-
"domain": "mixed (balanced reference corpus)",
|
| 263 |
-
"created": "1957-2008 (recorded for 6,581 of 18,381 documents; per-document in the created column)",
|
| 264 |
-
"is_ocr": False,
|
| 265 |
-
},
|
| 266 |
-
"european_hplt_v3_pl": {
|
| 267 |
-
"file_key": "european_hplt_v3_pl",
|
| 268 |
-
"pretty": "HPLT v3.0 Polish (web, top WDS bins 10-
|
| 269 |
-
"license": "CC0-1.0",
|
| 270 |
-
"license_spdx": "CC0-1.0",
|
| 271 |
-
"traceable": "HPLT v3.0 Terms of Use license the data packaging under CC0-1.0 "
|
| 272 |
-
"(hplt-project.org/datasets/v3.0; HF card HPLT/HPLT3.0). HPLT does not "
|
| 273 |
-
"own the underlying web text; notice-and-takedown applies and downstream "
|
| 274 |
-
"legal/provenance review remains the user's responsibility.",
|
| 275 |
-
"upstream": "https://data.hplt-project.org/three/sorted/pol_Latn/",
|
| 276 |
-
"provenance": "Fetched directly from the HPLT v3 distribution (pol_Latn shards "
|
| 277 |
-
"10_1
|
| 278 |
-
"
|
| 279 |
-
"in ID/OP/HI/IN/NA,
|
| 280 |
-
"
|
| 281 |
-
"wikimedia + file-host
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Source registry for Polish DynaWord.
|
| 2 |
+
|
| 3 |
+
Each entry = one openly-licensed, *traceable* human-text source (paper 2508.02271,
|
| 4 |
+
principle: open+traceable licensing). The `traceable` field documents WHY the
|
| 5 |
+
license holds (not just "it's public domain") — e.g. statutory basis or upstream
|
| 6 |
+
license — as required by the Dynaword guidelines.
|
| 7 |
+
|
| 8 |
+
Provenance note: data is pulled from SpeakLeash's public redistribution
|
| 9 |
+
(iDrive e2 bucket) of these upstream sources; SpeakLeash is credited as the
|
| 10 |
+
intermediate aggregator, upstream license/attribution is preserved per source.
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
+
# clean-6: passed the copyright review (2026-06-15). open_subtitles excluded
|
| 14 |
+
# (derivative of copyrighted film dialogue — same lesson as Danish Gigaword).
|
| 15 |
+
# Large cultural/academic sources require per-record rights metadata and should
|
| 16 |
+
# be rebuilt from direct upstream/export scripts rather than blind SpeakLeash pulls.
|
| 17 |
+
SOURCES = {
|
| 18 |
+
"wikipedia": {
|
| 19 |
+
"speakleash_key": "plwiki",
|
| 20 |
+
"pretty": "Polish Wikipedia",
|
| 21 |
+
"license": "CC-BY-SA-3.0",
|
| 22 |
+
"license_spdx": "CC-BY-SA-3.0",
|
| 23 |
+
"traceable": "Wikimedia dumps explicitly released under CC-BY-SA 3.0; "
|
| 24 |
+
"attribution to contributors + share-alike preserved.",
|
| 25 |
+
"upstream": "https://dumps.wikimedia.org/plwiki/latest/",
|
| 26 |
+
"domain": "encyclopedic",
|
| 27 |
+
"created": "2001-01-15, 2026-06-14",
|
| 28 |
+
"is_ocr": False,
|
| 29 |
+
},
|
| 30 |
+
"wikisource": {
|
| 31 |
+
"speakleash_key": "plwikisource",
|
| 32 |
+
"pretty": "Polish Wikisource",
|
| 33 |
+
"license": "CC-BY-SA-3.0",
|
| 34 |
+
"license_spdx": "CC-BY-SA-3.0",
|
| 35 |
+
"traceable": "Wikimedia dumps under CC-BY-SA 3.0; underlying texts are "
|
| 36 |
+
"public-domain works transcribed by the community.",
|
| 37 |
+
"upstream": "https://dumps.wikimedia.org/plwikisource/latest/",
|
| 38 |
+
"domain": "books/source-texts",
|
| 39 |
+
"created": "2005-01-01, 2026-06-14",
|
| 40 |
+
"is_ocr": False,
|
| 41 |
+
},
|
| 42 |
+
"eurlex": {
|
| 43 |
+
"speakleash_key": "eurlex_corpus",
|
| 44 |
+
"pretty": "EUR-Lex (EU legal acts, Polish)",
|
| 45 |
+
"license": "CC-BY-4.0",
|
| 46 |
+
"license_spdx": "CC-BY-4.0",
|
| 47 |
+
"traceable": "EU documents reusable under Commission Decision 2011/833/EU; "
|
| 48 |
+
"normative acts fall outside copyright (PL art. 4 pr. aut.). "
|
| 49 |
+
"Reuse authorised with source acknowledgement.",
|
| 50 |
+
"upstream": "https://eur-lex.europa.eu",
|
| 51 |
+
"domain": "legal",
|
| 52 |
+
"created": "1952-01-01, 2024-12-31",
|
| 53 |
+
"is_ocr": False,
|
| 54 |
+
},
|
| 55 |
+
"parliamentary": {
|
| 56 |
+
"speakleash_key": "PPC_corpus",
|
| 57 |
+
"pretty": "Polish Parliamentary Corpus (Sejm/Senat)",
|
| 58 |
+
"license": "public-domain (official documents)",
|
| 59 |
+
"license_spdx": "CC-BY-4.0",
|
| 60 |
+
"traceable": "Parliamentary proceedings are official documents outside "
|
| 61 |
+
"copyright (PL art. 4 pr. aut.); PPC redistributed by IPI PAN "
|
| 62 |
+
"under CC-BY-4.0.",
|
| 63 |
+
"upstream": "http://clip.ipipan.waw.pl/PPC",
|
| 64 |
+
"domain": "political/spoken",
|
| 65 |
+
"created": "1991-01-01, 2019-12-31",
|
| 66 |
+
"is_ocr": False,
|
| 67 |
+
},
|
| 68 |
+
"parlamint_pl": {
|
| 69 |
+
"file_key": "parlamint_pl",
|
| 70 |
+
"pretty": "ParlaMint-PL (parliamentary debates, 2015-2022)",
|
| 71 |
+
"license": "CC-BY-4.0",
|
| 72 |
+
"license_spdx": "CC-BY-4.0",
|
| 73 |
+
"traceable": "ParlaMint 3.0 corpora released under CC-BY 4.0 (CLARIN.SI "
|
| 74 |
+
"handle 11356/1486); parliamentary proceedings are also "
|
| 75 |
+
"official documents (PL art. 4 pr. aut.).",
|
| 76 |
+
"upstream": "http://hdl.handle.net/11356/1486",
|
| 77 |
+
"provenance": "Fetched directly from the CLARIN.SI plain-text edition "
|
| 78 |
+
"(ParlaMint-PL.tgz) by src/fetch_parlamint.py; one session "
|
| 79 |
+
"transcript per document, utterance IDs stripped. Modern "
|
| 80 |
+
"spoken register, complements the older PPC (1991-2019).",
|
| 81 |
+
"domain": "political/spoken",
|
| 82 |
+
"created": "2015-01-01, 2022-12-31",
|
| 83 |
+
"is_ocr": False,
|
| 84 |
+
},
|
| 85 |
+
"wolne_lektury": {
|
| 86 |
+
"speakleash_key": "wolne_lektury_corpus",
|
| 87 |
+
"pretty": "Wolne Lektury (school readings)",
|
| 88 |
+
"license": "CC-BY-SA-4.0 / Wolna Sztuka 1.3",
|
| 89 |
+
"license_spdx": "CC-BY-SA-4.0",
|
| 90 |
+
"traceable": "Wolne Lektury publishes under CC-BY-SA 4.0 or Free Art "
|
| 91 |
+
"License; texts are public-domain classics + cleared works.",
|
| 92 |
+
"upstream": "https://wolnelektury.pl/api/books/",
|
| 93 |
+
"domain": "literature",
|
| 94 |
+
"created": "1500-01-01, 2024-12-31",
|
| 95 |
+
"is_ocr": False,
|
| 96 |
+
},
|
| 97 |
+
"wikinews": {
|
| 98 |
+
"file_key": "plwikinews", # fetched from Wikimedia dumps, NOT via SpeakLeash
|
| 99 |
+
"pretty": "Polish Wikinews",
|
| 100 |
+
"license": "CC-BY-2.5",
|
| 101 |
+
"license_spdx": "CC-BY-2.5",
|
| 102 |
+
"traceable": "Wikinews content is released under CC-BY 2.5; attribution to "
|
| 103 |
+
"contributors preserved.",
|
| 104 |
+
"upstream": "https://pl.wikinews.org/",
|
| 105 |
+
"provenance": "Fetched directly from the official Wikimedia dump "
|
| 106 |
+
"(plwikinews-latest-pages-articles) by src/fetch_wikimedia.py; "
|
| 107 |
+
"mainspace only, wikitext stripped via mwparserfromhell.",
|
| 108 |
+
"domain": "news",
|
| 109 |
+
"created": "2005-01-01, 2025-12-31",
|
| 110 |
+
"is_ocr": False,
|
| 111 |
+
},
|
| 112 |
+
"wikivoyage": {
|
| 113 |
+
"file_key": "plwikivoyage",
|
| 114 |
+
"pretty": "Polish Wikivoyage (travel guides)",
|
| 115 |
+
"license": "CC-BY-SA-3.0",
|
| 116 |
+
"license_spdx": "CC-BY-SA-3.0",
|
| 117 |
+
"traceable": "Wikivoyage content is released under CC-BY-SA 3.0; "
|
| 118 |
+
"attribution + share-alike preserved.",
|
| 119 |
+
"upstream": "https://pl.wikivoyage.org/",
|
| 120 |
+
"provenance": "Fetched directly from the official Wikimedia dump "
|
| 121 |
+
"(plwikivoyage-latest-pages-articles) by src/fetch_wikimedia.py; "
|
| 122 |
+
"mainspace only, wikitext stripped via mwparserfromhell.",
|
| 123 |
+
"domain": "travel",
|
| 124 |
+
"created": "2012-01-01, 2025-12-31",
|
| 125 |
+
"is_ocr": False,
|
| 126 |
+
},
|
| 127 |
+
"wikibooks": {
|
| 128 |
+
"file_key": "plwikibooks",
|
| 129 |
+
"pretty": "Polish Wikibooks (open textbooks)",
|
| 130 |
+
"license": "CC-BY-SA-3.0",
|
| 131 |
+
"license_spdx": "CC-BY-SA-3.0",
|
| 132 |
+
"traceable": "Wikibooks content is released under CC-BY-SA 3.0; "
|
| 133 |
+
"attribution + share-alike preserved.",
|
| 134 |
+
"upstream": "https://pl.wikibooks.org/",
|
| 135 |
+
"provenance": "Fetched directly from the official Wikimedia dump "
|
| 136 |
+
"(plwikibooks-latest-pages-articles) by src/fetch_wikimedia.py; "
|
| 137 |
+
"mainspace only, wikitext stripped via mwparserfromhell.",
|
| 138 |
+
"domain": "instructional",
|
| 139 |
+
"created": "2004-01-01, 2025-12-31",
|
| 140 |
+
"is_ocr": False,
|
| 141 |
+
},
|
| 142 |
+
"wikiquote": {
|
| 143 |
+
"file_key": "plwikiquote",
|
| 144 |
+
"pretty": "Polish Wikiquote (quotations)",
|
| 145 |
+
"license": "CC-BY-SA-3.0",
|
| 146 |
+
"license_spdx": "CC-BY-SA-3.0",
|
| 147 |
+
"traceable": "Wikiquote content is released under CC-BY-SA 3.0; "
|
| 148 |
+
"attribution + share-alike preserved.",
|
| 149 |
+
"upstream": "https://pl.wikiquote.org/",
|
| 150 |
+
"provenance": "Fetched directly from the official Wikimedia dump "
|
| 151 |
+
"(plwikiquote-latest-pages-articles) by src/fetch_wikimedia.py; "
|
| 152 |
+
"mainspace only, wikitext stripped via mwparserfromhell.",
|
| 153 |
+
"domain": "quotations",
|
| 154 |
+
"created": "2005-01-01, 2025-12-31",
|
| 155 |
+
"is_ocr": False,
|
| 156 |
+
},
|
| 157 |
+
"eltec_pol": {
|
| 158 |
+
"file_key": "eltec_pol",
|
| 159 |
+
"pretty": "ELTeC-pol (European Literary Text Collection, Polish)",
|
| 160 |
+
"license": "CC-BY-4.0",
|
| 161 |
+
"license_spdx": "CC-BY-4.0",
|
| 162 |
+
"traceable": "ELTeC corpora are released under CC-BY 4.0 by the COST Action "
|
| 163 |
+
"'Distant Reading for European Literary History' (CA16204).",
|
| 164 |
+
"upstream": "https://github.com/COST-ELTeC/ELTeC-pol",
|
| 165 |
+
"provenance": "Fetched directly from the COST-ELTeC/ELTeC-pol GitHub "
|
| 166 |
+
"repository (level1 TEI) by src/fetch_eltec.py; reading text "
|
| 167 |
+
"extracted from TEI <body> paragraphs.",
|
| 168 |
+
"domain": "literature",
|
| 169 |
+
"created": "1840-01-01, 1920-12-31",
|
| 170 |
+
"is_ocr": False,
|
| 171 |
+
},
|
| 172 |
+
"dziennik_ustaw": {
|
| 173 |
+
"file_key": "dziennik_ustaw", # fetched directly, NOT via SpeakLeash
|
| 174 |
+
"pretty": "Dziennik Ustaw + Monitor Polski (Polish primary legislation)",
|
| 175 |
+
"license": "public-domain (official documents)",
|
| 176 |
+
"license_spdx": "CC0-1.0",
|
| 177 |
+
"traceable": "Normative acts and their official drafts are not subject to "
|
| 178 |
+
"copyright (PL art. 4 ustawy o prawie autorskim). Published by "
|
| 179 |
+
"the state; reuse unrestricted.",
|
| 180 |
+
"upstream": "https://api.sejm.gov.pl/eli/acts",
|
| 181 |
+
"provenance": "Fetched directly from the Sejm ELI API (text.html per act) "
|
| 182 |
+
"by src/fetch_eli.py — a native source, not redistributed via "
|
| 183 |
+
"SpeakLeash. Full provenance: each act's `meta.url` is its ELI "
|
| 184 |
+
"address, resolvable on api.sejm.gov.pl.",
|
| 185 |
+
"domain": "legal",
|
| 186 |
+
"created": "1918-01-01, 2025-12-31",
|
| 187 |
+
"is_ocr": False,
|
| 188 |
+
},
|
| 189 |
+
"govpl": {
|
| 190 |
+
"file_key": "govpl", # fetched directly from gov.pl, NOT via SpeakLeash
|
| 191 |
+
"pretty": "gov.pl — Polish government press releases",
|
| 192 |
+
"license": "CC-BY-SA-4.0",
|
| 193 |
+
"license_spdx": "CC-BY-SA-4.0",
|
| 194 |
+
"traceable": "All textual content on gov.pl is published under CC-BY-SA "
|
| 195 |
+
"4.0 (site footer: \"Treści tekstowe publikowane w serwisie "
|
| 196 |
+
"… są udostępniane na licencji CC BY-SA 4.0\"). Authored and "
|
| 197 |
+
"hosted by the Polish government, which holds the right to "
|
| 198 |
+
"license it — same open family as Polish Wikipedia.",
|
| 199 |
+
"upstream": "https://www.gov.pl/",
|
| 200 |
+
"provenance": "Ministry/agency press releases fetched directly from gov.pl "
|
| 201 |
+
"(editor-content per article, HTML stripped) by "
|
| 202 |
+
"src/fetch_govpl.py. Subsites + their non-uniform news-section "
|
| 203 |
+
"paths are enumerated by src/discover_govpl.py into the "
|
| 204 |
+
"committed manifest src/govpl_subsites.json (gov.pl has no "
|
| 205 |
+
"sitemap/API). Each record's meta.url resolves on gov.pl.",
|
| 206 |
+
"domain": "government",
|
| 207 |
+
# actual min/max of article dates in the fetched corpus (90,124 dated).
|
| 208 |
+
"created": "2005-09-26, 2026-07-19",
|
| 209 |
+
"is_ocr": False,
|
| 210 |
+
},
|
| 211 |
+
"biblioteka_nauki": {
|
| 212 |
+
"file_key": "biblioteka_nauki_pl_corpus",
|
| 213 |
+
"pretty": "Biblioteka Nauki",
|
| 214 |
+
"license": "per-record upstream license",
|
| 215 |
+
"license_spdx": "MIXED",
|
| 216 |
+
"traceable": "Documents are accepted only when the direct upstream record "
|
| 217 |
+
"exposes a reusable license. The parquet carries the "
|
| 218 |
+
"per-document `license` and `author` fields from the upstream "
|
| 219 |
+
"metadata collected by the source-specific rebuild script.",
|
| 220 |
+
"upstream": "https://bibliotekanauki.pl/",
|
| 221 |
+
"provenance": "Fetched directly from Biblioteka Nauki via the contributor "
|
| 222 |
+
"rebuild script, not from the SpeakLeash redistribution. "
|
| 223 |
+
"License and author metadata are checked document by document "
|
| 224 |
+
"before normalization into the DynaWord schema.",
|
| 225 |
+
"domain": "academic",
|
| 226 |
+
"created": "unknown",
|
| 227 |
+
"is_ocr": False,
|
| 228 |
+
},
|
| 229 |
+
"europeana": {
|
| 230 |
+
# Direct rebuild output from fetch_europeana.py, never the raw
|
| 231 |
+
# SpeakLeash Europeana aggregate.
|
| 232 |
+
"file_key": "europeana",
|
| 233 |
+
"pretty": "Europeana Polish records",
|
| 234 |
+
"license": "per-record public-domain/open rights statement",
|
| 235 |
+
"license_spdx": "MIXED",
|
| 236 |
+
"traceable": "Documents are accepted only with per-record Europeana rights "
|
| 237 |
+
"metadata classified as public-domain/open. Public-domain "
|
| 238 |
+
"status is jurisdiction-sensitive; downstream users must "
|
| 239 |
+
"check their local legal requirements.",
|
| 240 |
+
"upstream": "https://www.europeana.eu/",
|
| 241 |
+
"provenance": "Fetched directly from Europeana via the contributor rebuild "
|
| 242 |
+
"script, preserving per-record rights and creator metadata. "
|
| 243 |
+
"The raw SpeakLeash aggregate remains insufficient because "
|
| 244 |
+
"it does not carry enough rights evidence for release.",
|
| 245 |
+
"domain": "cultural heritage",
|
| 246 |
+
"created": "unknown",
|
| 247 |
+
"is_ocr": True,
|
| 248 |
+
"legal_note": "Europeana public-domain statements are primarily evaluated "
|
| 249 |
+
"for Poland/EU. For US reuse, records created/published "
|
| 250 |
+
"before 1929 are the conservative release slice; later "
|
| 251 |
+
"records should remain separately labeled or held until "
|
| 252 |
+
"legal review confirms their US status.",
|
| 253 |
+
},
|
| 254 |
+
"nkjp1m": {
|
| 255 |
+
"file_key": "nkjp1m",
|
| 256 |
+
"pretty": "The manually annotated 1-million word subcorpus of the National Corpus of Polish",
|
| 257 |
+
"license": "CC-BY",
|
| 258 |
+
"license_spdx": "CC-BY-4.0",
|
| 259 |
+
"traceable": "The NKJP download page (clip.ipipan.waw.pl) states the manually annotated 1-million-word subcorpus (Podkorpus Milionowy NKJP 1.2) is available under a CC-BY licence; attribution to the NKJP Consortium (IPI PAN) preserved. The page states 'CC-BY' with no version, normalized to CC-BY-4.0 for SPDX. The CC-BY licence covers the corpus text; NKJP's separate tools are GPL and are not included here.",
|
| 260 |
+
"upstream": "https://clip.ipipan.waw.pl/NationalCorpusOfPolish",
|
| 261 |
+
"provenance": "Downloaded the IPI PAN tarball (NKJP-PodkorpusMilionowy-1.2.tar.gz) directly by src/fetch_njkp.py, one row per TEI <div> passage (its <ab> paragraphs joined by newlines, ellipsis markers stripped). The same minimal gates as build_dynaword.py are applied per passage (drop < 200 chars, drop non-Polish by diacritic ratio, exact sha1 dedup; the OCR gate is inapplicable). Per-document 'created' is the sample's TEI publication date (<date type=\"published\">) where the header records one. Normalized into the DynaWord schema; cl100k token counts via tiktoken (encode_ordinary), and the stats are recomputed from the written parquet.",
|
| 262 |
+
"domain": "mixed (balanced reference corpus)",
|
| 263 |
+
"created": "1957-2008 (recorded for 6,581 of 18,381 documents; per-document in the created column)",
|
| 264 |
+
"is_ocr": False,
|
| 265 |
+
},
|
| 266 |
+
"european_hplt_v3_pl": {
|
| 267 |
+
"file_key": "european_hplt_v3_pl",
|
| 268 |
+
"pretty": "HPLT v3.0 Polish (web, top WDS bins 10-5)",
|
| 269 |
+
"license": "CC0-1.0",
|
| 270 |
+
"license_spdx": "CC0-1.0",
|
| 271 |
+
"traceable": "HPLT v3.0 Terms of Use license the data packaging under CC0-1.0 "
|
| 272 |
+
"(hplt-project.org/datasets/v3.0; HF card HPLT/HPLT3.0). HPLT does not "
|
| 273 |
+
"own the underlying web text; notice-and-takedown applies and downstream "
|
| 274 |
+
"legal/provenance review remains the user's responsibility.",
|
| 275 |
+
"upstream": "https://data.hplt-project.org/three/sorted/pol_Latn/",
|
| 276 |
+
"provenance": "Fetched directly from the HPLT v3 distribution (pol_Latn shards "
|
| 277 |
+
"10_1, 9_1-9_4, 8_1-8_4, 7_1-7_4, 6_1-6_2, 5_1-5_2 [WDS 10 down to 5]) by "
|
| 278 |
+
"src/clean_hplt_v3.py + run_pipeline.py, NOT via SpeakLeash. Filtered: "
|
| 279 |
+
"lang=pol_Latn + prob>=0.80, MT-prob<0.20, register in ID/OP/HI/IN/NA, "
|
| 280 |
+
"min 400 chars / 80 words, boilerplate/adult/legalish drop, length cap "
|
| 281 |
+
"120k chars, CJK-mojibake drop, wikipedia/wikisource/wikimedia + file-host "
|
| 282 |
+
"domains excluded, per-domain cap. Phone->[Telefon] / email+national-ID->[PII] "
|
| 283 |
+
"PII-scrub (v12b, independent dual-lens verify). Token counts via tiktoken cl100k.",
|
| 284 |
+
"domain": "web",
|
| 285 |
+
"created": "2012-01-01, 2024-12-31",
|
| 286 |
+
"is_ocr": False,
|
| 287 |
+
"legal_note": "Web-crawl derived: accept_after_web_review. HPLT is globally "
|
| 288 |
+
"deduplicated upstream and WDS quality-sorted. Cross-source near/"
|
| 289 |
+
"containment dedup vs the existing WDS-10+9 base shards was performed "
|
| 290 |
+
"for the WDS 8-5 + extra-9 expansion: exact-dup=0, near-dup overlap="
|
| 291 |
+
"0.0000% (byte-verified). Copyright recurs at all lengths in web crawl. "
|
| 292 |
+
"Parity with the accepted european-hplt-v1 CC0 basis.",
|
| 293 |
+
"custom_datasheet": True,
|
| 294 |
+
},
|
| 295 |
+
"1000_novels": {
|
| 296 |
+
"speakleash_key": "1000_novels_corpus_CLARIN-PL",
|
| 297 |
+
"pretty": "1000 Novels Corpus (CLARIN-PL)",
|
| 298 |
+
"license": "CC-BY-4.0",
|
| 299 |
+
"license_spdx": "CC-BY-4.0",
|
| 300 |
+
"traceable": "The 1000 Novels Corpus is released under Creative Commons "
|
| 301 |
+
"Attribution 4.0 International by CLARIN-PL / Wrocław University "
|
| 302 |
+
"of Technology, with attribution to the corpus authors and "
|
| 303 |
+
"maintainers.",
|
| 304 |
+
"upstream": "https://clarin-pl.eu/dspace/handle/11321/312",
|
| 305 |
+
"domain": "literature",
|
| 306 |
+
"created": "unknown",
|
| 307 |
+
"is_ocr": False,
|
| 308 |
+
# Datasheet is contributor-committed (added 2026-07-02); skip regeneration
|
| 309 |
+
# so the global ADDED stamp does not overwrite the real add date.
|
| 310 |
+
"custom_datasheet": True,
|
| 311 |
+
},
|
| 312 |
+
"global_voices": {
|
| 313 |
+
# Data contributed directly (PR #7): no in-repo fetch/build script and a
|
| 314 |
+
# hand-authored datasheet. Registered for the source table + release totals;
|
| 315 |
+
# the datasheet stays contributor-owned via custom_datasheet.
|
| 316 |
+
"file_key": "global_voices",
|
| 317 |
+
"pretty": "Global Voices Polish",
|
| 318 |
+
"license": "CC-BY-3.0",
|
| 319 |
+
"license_spdx": "CC-BY-3.0",
|
| 320 |
+
"traceable": "CC BY 3.0 verified from the article-level license link published "
|
| 321 |
+
"with each retained Global Voices article; each record carries "
|
| 322 |
+
"CC-BY-3.0 metadata and per-document author/translator attribution "
|
| 323 |
+
"in global_voices.attribution.jsonl.",
|
| 324 |
+
"upstream": "https://pl.globalvoices.org/",
|
| 325 |
+
"domain": "civic media, news and public-interest journalism",
|
| 326 |
+
"created": "2008-11-04, 2023-05-24",
|
| 327 |
+
"is_ocr": False,
|
| 328 |
+
"custom_datasheet": True,
|
| 329 |
+
},
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
ADDED = "2026-07-19"
|
| 333 |
+
EXCLUDED = {
|
| 334 |
+
"open_subtitles_corpus": "Derivative of copyrighted film/TV dialogue; "
|
| 335 |
+
"OpenSubtitles uploads largely unlicensed. Same copyright lesson as "
|
| 336 |
+
"Danish Gigaword's OpenSubtitles (paper 2508.02271). Not openly licensed.",
|
| 337 |
+
"europeana_eu_pl_corpus_raw_speakleash": "Aggregated items with mixed "
|
| 338 |
+
"per-record rights (PD / CC-BY-NC / rights-reserved). The raw "
|
| 339 |
+
"SpeakLeash redistribution is excluded; only a direct rebuild preserving "
|
| 340 |
+
"per-record rights metadata may be included.",
|
| 341 |
+
"1000_novels_corpus_CLARIN-PL": "CC-BY-4.0 label, but 'novels' likely include "
|
| 342 |
+
"in-copyright contemporary works; verify titles/years on CLARIN handle "
|
| 343 |
+
"11321/312 before inclusion.",
|
| 344 |
+
"project_gutenberg_pl_corpus": "Only 31 PL books (4.3MB) — PG is ~99% English; "
|
| 345 |
+
"Polish PD literature already covered by wolne_lektury + wikisource (so "
|
| 346 |
+
"near-redundant after dedup). Dropped to avoid the PD-in-EU per-work check "
|
| 347 |
+
"(PG claims PD-in-US only) for negligible token gain.",
|
| 348 |
+
}
|