Datasets:
Commit ·
79dc2b0
1
Parent(s): 30c7a18
Release v0.2.3 with community HPLT contribution
Browse files- CHANGELOG.md +27 -0
- README.md +75 -164
- artifacts/pattern_frequency_hf_snippet.md +28 -10
- pattern_frequency_report.md +28 -10
- src/make_docs.py +80 -27
- src/pattern_frequency_report.py +4 -1
- src/test_hplt_v3_contract.py +2 -1
CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
| 1 |
# Changelog
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
## v0.2.2 (2026-07-19)
|
| 4 |
|
| 5 |
- Added `govpl` — gov.pl Polish government press releases (CC-BY-SA-4.0),
|
|
|
|
| 1 |
# Changelog
|
| 2 |
|
| 3 |
+
## v0.2.3 (2026-07-26)
|
| 4 |
+
|
| 5 |
+
- Added the community contribution `european_hplt_v3_pl` by Arkadiusz Słota
|
| 6 |
+
(`Maggio33`): HPLT v3.0 Polish WDS quality bins 10+9, 110,590 documents and
|
| 7 |
+
512,383,778 cl100k-proxy tokens under CC0-1.0 packaging.
|
| 8 |
+
- Added the reviewed `global_voices` contribution by Dawid Majewski
|
| 9 |
+
(`dawidmajewski`): 2,040 documents / 3,715,020 tokens with CC-BY-3.0 and
|
| 10 |
+
per-document author attribution metadata.
|
| 11 |
+
- Added `nkjp1m` from contributor `1am`: 18,381 documents / 2,601,201 tokens
|
| 12 |
+
from the manually annotated 1-million-word NKJP subcorpus under the upstream
|
| 13 |
+
version-unspecified CC-BY statement.
|
| 14 |
+
- Revalidated the contributed parquet against the canonical schema, non-empty
|
| 15 |
+
text, positive token counts, uniform source/license metadata, and stats-file
|
| 16 |
+
consistency.
|
| 17 |
+
- Updated the complete 16-source release totals from per-source parquet stats:
|
| 18 |
+
2,710,974 documents and 6,881,277,362 cl100k-proxy tokens.
|
| 19 |
+
- Recomputed the full-corpus phrase-frequency report and charts. Updated the
|
| 20 |
+
Arrow reporting path to use 64-bit string offsets for large row groups.
|
| 21 |
+
- Fixed `src/test_hplt_v3_contract.py` to resolve its fixture relative to the
|
| 22 |
+
repository instead of a contributor-local Windows path.
|
| 23 |
+
- Added public contributor credit for Arkadiusz Słota (`Maggio33`) and Paweł
|
| 24 |
+
Puzio (`ppuzio`, author of the `govpl` contribution released in v0.2.2), plus
|
| 25 |
+
Dawid Majewski (`dawidmajewski`) for Global Voices Polish.
|
| 26 |
+
- HPLT caveat: CC0 applies to the HPLT packaging; underlying web documents can
|
| 27 |
+
carry independent rights. Downstream near-dedup and web-content review remain
|
| 28 |
+
recommended before training.
|
| 29 |
+
|
| 30 |
## v0.2.2 (2026-07-19)
|
| 31 |
|
| 32 |
- Added `govpl` — gov.pl Polish government press releases (CC-BY-SA-4.0),
|
README.md
CHANGED
|
@@ -19,14 +19,14 @@ A continuously developed, **openly-licensed**, human-text Polish corpus — a Po
|
|
| 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 |
-
> (tiktoken proxy
|
| 24 |
-
> Updated: **2026-07-
|
| 25 |
|
| 26 |
> **v0.3.0-preview validation release** · live source-gate validation for
|
| 27 |
> SpeakLeash shards and direct Europeana candidate data, plus the quality/diversity
|
| 28 |
> remix workflow. This is candidate-only metadata and audit work: it does not
|
| 29 |
-
> replace the v0.2.
|
| 30 |
|
| 31 |
> **v0.3.1-preview** · first reproducible Europeana direct-ingestion shard:
|
| 32 |
> 1,000 API records → 810 quality-gated parquet documents, each preserving
|
|
@@ -38,12 +38,61 @@ family (Enevoldsen et al., [arXiv:2508.02271](https://arxiv.org/abs/2508.02271))
|
|
| 38 |
|
| 39 |
| version | status | documents | tokens | notes |
|
| 40 |
|---|---|---:|---:|---|
|
| 41 |
-
| `v0.2.
|
|
|
|
| 42 |
| `v0.2.1` | previous stable | 2,491,773 | 6.28B | 12-source stable corpus with `license` and `author` metadata columns; adds `1000_novels`. |
|
| 43 |
| `v0.2.0` | previous stable | 2,490,773 | 6.22B | Provenance-first corpus from 11 open/official sources. |
|
| 44 |
| `v0.3.0-preview` | validation release, candidate-only | candidate-only | TBD | Live source gates validated; Biblioteka Nauki, Europeana, and HPLT/Common Corpus expansion remain subject to per-source QA, dedup, and legal review. |
|
| 45 |
| `v0.3.1-preview` | reproducible Europeana shard | 810 | 140,042 | 1,000 direct API records sampled; 810 passed short/language/OCR gates, with per-record rights and author metadata. |
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
## What this dataset contributes
|
| 48 |
The raw texts come from existing open corpora (redistributed via SpeakLeash and,
|
| 49 |
where applicable, fetched from upstream). **The value added here is the curation,
|
|
@@ -67,10 +116,18 @@ as the redistributing aggregator; this release does not claim ownership of them
|
|
| 67 |
|
| 68 |
## Contributors
|
| 69 |
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
## Guiding principles
|
| 76 |
1. **Open & traceable licensing** — every source is *openly licensed* with a documented
|
|
@@ -86,6 +143,7 @@ as the redistributing aggregator; this release does not claim ownership of them
|
|
| 86 |
| [parliamentary](data/parliamentary/parliamentary.md) | Polish Parliamentary Corpus (Sejm/Senat) | `public-domain (official documents)` | 324,622 | 1,646.8M |
|
| 87 |
| [wikisource](data/wikisource/wikisource.md) | Polish Wikisource | `CC-BY-SA-3.0` | 632,005 | 801.9M |
|
| 88 |
| [wikipedia](data/wikipedia/wikipedia.md) | Polish Wikipedia | `CC-BY-SA-3.0` | 1,171,897 | 707.2M |
|
|
|
|
| 89 |
| [dziennik_ustaw](data/dziennik_ustaw/dziennik_ustaw.md) | Dziennik Ustaw + Monitor Polski (Polish primary legislation) | `public-domain (official documents)` | 35,442 | 486.1M |
|
| 90 |
| [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 |
|
| 91 |
| [govpl](data/govpl/govpl.md) | gov.pl — Polish government press releases | `CC-BY-SA-4.0` | 88,190 | 80.7M |
|
|
@@ -95,7 +153,9 @@ as the redistributing aggregator; this release does not claim ownership of them
|
|
| 95 |
| [wikivoyage](data/wikivoyage/wikivoyage.md) | Polish Wikivoyage (travel guides) | `CC-BY-SA-3.0` | 13,645 | 17.1M |
|
| 96 |
| [wikibooks](data/wikibooks/wikibooks.md) | Polish Wikibooks (open textbooks) | `CC-BY-SA-3.0` | 9,112 | 15.6M |
|
| 97 |
| [wikinews](data/wikinews/wikinews.md) | Polish Wikinews | `CC-BY-2.5` | 24,386 | 12.1M |
|
| 98 |
-
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
## Method
|
| 101 |
Only **human-authored** text — no synthetic, machine-translated, or auto-transcribed
|
|
@@ -146,9 +206,10 @@ Current v0.3 source-ingestion status:
|
|
| 146 |
- Europeana release policy: split conservatively at pre-1929 records for
|
| 147 |
US-sensitive downstream reuse, and keep later/unknown records separately
|
| 148 |
labeled or held until legal review.
|
| 149 |
-
- `
|
| 150 |
-
|
| 151 |
-
|
|
|
|
| 152 |
|
| 153 |
Current review artifacts:
|
| 154 |
|
|
@@ -212,154 +273,4 @@ python3 src/make_docs.py
|
|
| 212 |
|
| 213 |
## Results
|
| 214 |
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
Raw counts and token-normalized shares are regenerated from the current parquet files with `src/pattern_frequency_report.py`.
|
| 218 |
-
|
| 219 |
-
- Total token count (tiktoken proxy): **6,362,577,363**
|
| 220 |
-
|
| 221 |
-
| Pattern | Count | Share of all tokens |
|
| 222 |
-
|---|---:|---:|
|
| 223 |
-
| `w roku` | 438,913 | 0.0069% |
|
| 224 |
-
| `klasyfikacji` | 130,503 | 0.0021% |
|
| 225 |
-
| `ustawa` | 592,186 | 0.0093% |
|
| 226 |
-
| `artykuł` | 2,038,776 | 0.0320% |
|
| 227 |
-
| `parlament` | 1,205,608 | 0.0189% |
|
| 228 |
-
| `rozporządzenie` | 1,494,566 | 0.0235% |
|
| 229 |
-
| `w pobliżu` | 79,715 | 0.0013% |
|
| 230 |
-
| `mieszkańców` | 254,305 | 0.0040% |
|
| 231 |
-
| `Dz.U.` | 943,080 | 0.0148% |
|
| 232 |
-
|
| 233 |
-
### Per-source shares
|
| 234 |
-
|
| 235 |
-
| source | pattern | count | share of source tokens |
|
| 236 |
-
|---|---|---:|---:|
|
| 237 |
-
| `1000_novels` | `w roku` | 659 | 0.00109% |
|
| 238 |
-
| `1000_novels` | `klasyfikacji` | 14 | 0.00002% |
|
| 239 |
-
| `1000_novels` | `ustawa` | 656 | 0.00108% |
|
| 240 |
-
| `1000_novels` | `artykuł` | 729 | 0.00120% |
|
| 241 |
-
| `1000_novels` | `parlament` | 240 | 0.00040% |
|
| 242 |
-
| `1000_novels` | `rozporządzenie` | 65 | 0.00011% |
|
| 243 |
-
| `1000_novels` | `w pobliżu` | 1,262 | 0.00209% |
|
| 244 |
-
| `1000_novels` | `mieszkańców` | 868 | 0.00143% |
|
| 245 |
-
| `1000_novels` | `Dz.U.` | 0 | 0.00000% |
|
| 246 |
-
| `dziennik_ustaw` | `w roku` | 33,096 | 0.00681% |
|
| 247 |
-
| `dziennik_ustaw` | `klasyfikacji` | 10,896 | 0.00224% |
|
| 248 |
-
| `dziennik_ustaw` | `ustawa` | 77,376 | 0.01592% |
|
| 249 |
-
| `dziennik_ustaw` | `artykuł` | 27,773 | 0.00571% |
|
| 250 |
-
| `dziennik_ustaw` | `parlament` | 42,338 | 0.00871% |
|
| 251 |
-
| `dziennik_ustaw` | `rozporządzenie` | 166,383 | 0.03423% |
|
| 252 |
-
| `dziennik_ustaw` | `w pobliżu` | 1,087 | 0.00022% |
|
| 253 |
-
| `dziennik_ustaw` | `mieszkańców` | 8,025 | 0.00165% |
|
| 254 |
-
| `dziennik_ustaw` | `Dz.U.` | 158 | 0.00003% |
|
| 255 |
-
| `eltec_pol` | `w roku` | 108 | 0.00050% |
|
| 256 |
-
| `eltec_pol` | `klasyfikacji` | 1 | 0.00000% |
|
| 257 |
-
| `eltec_pol` | `ustawa` | 153 | 0.00071% |
|
| 258 |
-
| `eltec_pol` | `artykuł` | 173 | 0.00081% |
|
| 259 |
-
| `eltec_pol` | `parlament` | 95 | 0.00044% |
|
| 260 |
-
| `eltec_pol` | `rozporządzenie` | 35 | 0.00016% |
|
| 261 |
-
| `eltec_pol` | `w pobliżu` | 246 | 0.00114% |
|
| 262 |
-
| `eltec_pol` | `mieszkańców` | 214 | 0.00100% |
|
| 263 |
-
| `eltec_pol` | `Dz.U.` | 0 | 0.00000% |
|
| 264 |
-
| `eurlex` | `w roku` | 40,009 | 0.00168% |
|
| 265 |
-
| `eurlex` | `klasyfikacji` | 59,428 | 0.00250% |
|
| 266 |
-
| `eurlex` | `ustawa` | 30,368 | 0.00128% |
|
| 267 |
-
| `eurlex` | `artykuł` | 1,774,958 | 0.07464% |
|
| 268 |
-
| `eurlex` | `parlament` | 780,286 | 0.03281% |
|
| 269 |
-
| `eurlex` | `rozporządzenie` | 1,202,658 | 0.05057% |
|
| 270 |
-
| `eurlex` | `w pobliżu` | 6,088 | 0.00026% |
|
| 271 |
-
| `eurlex` | `mieszkańców` | 9,441 | 0.00040% |
|
| 272 |
-
| `eurlex` | `Dz.U.` | 915,707 | 0.03851% |
|
| 273 |
-
| `govpl` | `w roku` | 3,372 | 0.00418% |
|
| 274 |
-
| `govpl` | `klasyfikacji` | 526 | 0.00065% |
|
| 275 |
-
| `govpl` | `ustawa` | 4,727 | 0.00586% |
|
| 276 |
-
| `govpl` | `artykuł` | 2,417 | 0.00300% |
|
| 277 |
-
| `govpl` | `parlament` | 3,967 | 0.00492% |
|
| 278 |
-
| `govpl` | `rozporządzenie` | 4,102 | 0.00509% |
|
| 279 |
-
| `govpl` | `w pobliżu` | 892 | 0.00111% |
|
| 280 |
-
| `govpl` | `mieszkańców` | 13,105 | 0.01625% |
|
| 281 |
-
| `govpl` | `Dz.U.` | 3,114 | 0.00386% |
|
| 282 |
-
| `parliamentary` | `w roku` | 198,192 | 0.01203% |
|
| 283 |
-
| `parliamentary` | `klasyfikacji` | 12,637 | 0.00077% |
|
| 284 |
-
| `parliamentary` | `ustawa` | 459,179 | 0.02788% |
|
| 285 |
-
| `parliamentary` | `artykuł` | 182,038 | 0.01105% |
|
| 286 |
-
| `parliamentary` | `parlament` | 309,695 | 0.01881% |
|
| 287 |
-
| `parliamentary` | `rozporządzenie` | 113,547 | 0.00689% |
|
| 288 |
-
| `parliamentary` | `w pobliżu` | 4,964 | 0.00030% |
|
| 289 |
-
| `parliamentary` | `mieszkańców` | 78,048 | 0.00474% |
|
| 290 |
-
| `parliamentary` | `Dz.U.` | 23,809 | 0.00145% |
|
| 291 |
-
| `wikibooks` | `w roku` | 319 | 0.00205% |
|
| 292 |
-
| `wikibooks` | `klasyfikacji` | 37 | 0.00024% |
|
| 293 |
-
| `wikibooks` | `ustawa` | 165 | 0.00106% |
|
| 294 |
-
| `wikibooks` | `artykuł` | 732 | 0.00470% |
|
| 295 |
-
| `wikibooks` | `parlament` | 283 | 0.00182% |
|
| 296 |
-
| `wikibooks` | `rozporządzenie` | 131 | 0.00084% |
|
| 297 |
-
| `wikibooks` | `w pobliżu` | 125 | 0.00080% |
|
| 298 |
-
| `wikibooks` | `mieszkańców` | 204 | 0.00131% |
|
| 299 |
-
| `wikibooks` | `Dz.U.` | 16 | 0.00010% |
|
| 300 |
-
| `wikinews` | `w roku` | 449 | 0.00370% |
|
| 301 |
-
| `wikinews` | `klasyfikacji` | 639 | 0.00526% |
|
| 302 |
-
| `wikinews` | `ustawa` | 407 | 0.00335% |
|
| 303 |
-
| `wikinews` | `artykuł` | 2,474 | 0.02038% |
|
| 304 |
-
| `wikinews` | `parlament` | 2,530 | 0.02084% |
|
| 305 |
-
| `wikinews` | `rozporządzenie` | 168 | 0.00138% |
|
| 306 |
-
| `wikinews` | `w pobliżu` | 455 | 0.00375% |
|
| 307 |
-
| `wikinews` | `mieszkańców` | 1,014 | 0.00835% |
|
| 308 |
-
| `wikinews` | `Dz.U.` | 27 | 0.00022% |
|
| 309 |
-
| `wikipedia` | `w roku` | 143,023 | 0.02022% |
|
| 310 |
-
| `wikipedia` | `klasyfikacji` | 46,043 | 0.00651% |
|
| 311 |
-
| `wikipedia` | `ustawa` | 9,536 | 0.00135% |
|
| 312 |
-
| `wikipedia` | `artykuł` | 28,165 | 0.00398% |
|
| 313 |
-
| `wikipedia` | `parlament` | 57,863 | 0.00818% |
|
| 314 |
-
| `wikipedia` | `rozporządzenie` | 5,637 | 0.00080% |
|
| 315 |
-
| `wikipedia` | `w pobliżu` | 41,915 | 0.00593% |
|
| 316 |
-
| `wikipedia` | `mieszkańców` | 122,766 | 0.01736% |
|
| 317 |
-
| `wikipedia` | `Dz.U.` | 232 | 0.00003% |
|
| 318 |
-
| `wikiquote` | `w roku` | 608 | 0.00191% |
|
| 319 |
-
| `wikiquote` | `klasyfikacji` | 15 | 0.00005% |
|
| 320 |
-
| `wikiquote` | `ustawa` | 357 | 0.00112% |
|
| 321 |
-
| `wikiquote` | `artykuł` | 606 | 0.00190% |
|
| 322 |
-
| `wikiquote` | `parlament` | 1,271 | 0.00398% |
|
| 323 |
-
| `wikiquote` | `rozporządzenie` | 27 | 0.00008% |
|
| 324 |
-
| `wikiquote` | `w pobliżu` | 207 | 0.00065% |
|
| 325 |
-
| `wikiquote` | `mieszkańców` | 527 | 0.00165% |
|
| 326 |
-
| `wikiquote` | `Dz.U.` | 6 | 0.00002% |
|
| 327 |
-
| `wikisource` | `w roku` | 16,571 | 0.00207% |
|
| 328 |
-
| `wikisource` | `klasyfikacji` | 166 | 0.00002% |
|
| 329 |
-
| `wikisource` | `ustawa` | 8,156 | 0.00102% |
|
| 330 |
-
| `wikisource` | `artykuł` | 16,230 | 0.00202% |
|
| 331 |
-
| `wikisource` | `parlament` | 6,119 | 0.00076% |
|
| 332 |
-
| `wikisource` | `rozporządzenie` | 1,651 | 0.00021% |
|
| 333 |
-
| `wikisource` | `w pobliżu` | 13,921 | 0.00174% |
|
| 334 |
-
| `wikisource` | `mieszkańców` | 14,335 | 0.00179% |
|
| 335 |
-
| `wikisource` | `Dz.U.` | 5 | 0.00000% |
|
| 336 |
-
| `wikivoyage` | `w roku` | 609 | 0.00356% |
|
| 337 |
-
| `wikivoyage` | `klasyfikacji` | 21 | 0.00012% |
|
| 338 |
-
| `wikivoyage` | `ustawa` | 46 | 0.00027% |
|
| 339 |
-
| `wikivoyage` | `artykuł` | 657 | 0.00384% |
|
| 340 |
-
| `wikivoyage` | `parlament` | 249 | 0.00145% |
|
| 341 |
-
| `wikivoyage` | `rozporządzenie` | 34 | 0.00020% |
|
| 342 |
-
| `wikivoyage` | `w pobliżu` | 6,480 | 0.03783% |
|
| 343 |
-
| `wikivoyage` | `mieszkańców` | 4,100 | 0.02394% |
|
| 344 |
-
| `wikivoyage` | `Dz.U.` | 1 | 0.00001% |
|
| 345 |
-
| `wolne_lektury` | `w roku` | 1,898 | 0.00184% |
|
| 346 |
-
| `wolne_lektury` | `klasyfikacji` | 80 | 0.00008% |
|
| 347 |
-
| `wolne_lektury` | `ustawa` | 1,060 | 0.00103% |
|
| 348 |
-
| `wolne_lektury` | `artykuł` | 1,824 | 0.00177% |
|
| 349 |
-
| `wolne_lektury` | `parlament` | 672 | 0.00065% |
|
| 350 |
-
| `wolne_lektury` | `rozporządzenie` | 128 | 0.00012% |
|
| 351 |
-
| `wolne_lektury` | `w pobliżu` | 2,073 | 0.00201% |
|
| 352 |
-
| `wolne_lektury` | `mieszkańców` | 1,658 | 0.00161% |
|
| 353 |
-
| `wolne_lektury` | `Dz.U.` | 5 | 0.00000% |
|
| 354 |
-
|
| 355 |
-

|
| 356 |
-
|
| 357 |
-

|
| 358 |
-

|
| 359 |
-

|
| 360 |
-

|
| 361 |
-

|
| 362 |
-

|
| 363 |
-

|
| 364 |
-

|
| 365 |
-

|
|
|
|
| 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.3 stable** · 2,710,974 documents · **6.88B tokens**
|
| 23 |
+
> (6,881,277,362 tiktoken cl100k-proxy tokens) · 16 sources
|
| 24 |
+
> Updated: **2026-07-26**
|
| 25 |
|
| 26 |
> **v0.3.0-preview validation release** · live source-gate validation for
|
| 27 |
> SpeakLeash shards and direct Europeana candidate data, plus the quality/diversity
|
| 28 |
> remix workflow. This is candidate-only metadata and audit work: it does not
|
| 29 |
+
> replace the v0.2.3 stable parquets.
|
| 30 |
|
| 31 |
> **v0.3.1-preview** · first reproducible Europeana direct-ingestion shard:
|
| 32 |
> 1,000 API records → 810 quality-gated parquet documents, each preserving
|
|
|
|
| 38 |
|
| 39 |
| version | status | documents | tokens | notes |
|
| 40 |
|---|---|---:|---:|---|
|
| 41 |
+
| `v0.2.3` | stable release | 2,710,974 | 6.88B | Adds community-contributed HPLT v3 Polish WDS 10+9, Global Voices Polish and the NKJP manually annotated 1M-word subcorpus. |
|
| 42 |
+
| `v0.2.2` | previous stable | 2,579,963 | 6.36B | Added community-contributed `govpl`: 88,190 docs / 80.7M tokens fetched directly across 133 ministry/agency subsites. |
|
| 43 |
| `v0.2.1` | previous stable | 2,491,773 | 6.28B | 12-source stable corpus with `license` and `author` metadata columns; adds `1000_novels`. |
|
| 44 |
| `v0.2.0` | previous stable | 2,490,773 | 6.22B | Provenance-first corpus from 11 open/official sources. |
|
| 45 |
| `v0.3.0-preview` | validation release, candidate-only | candidate-only | TBD | Live source gates validated; Biblioteka Nauki, Europeana, and HPLT/Common Corpus expansion remain subject to per-source QA, dedup, and legal review. |
|
| 46 |
| `v0.3.1-preview` | reproducible Europeana shard | 810 | 140,042 | 1,000 direct API records sampled; 810 passed short/language/OCR gates, with per-record rights and author metadata. |
|
| 47 |
|
| 48 |
+
### Version details
|
| 49 |
+
|
| 50 |
+
#### v0.2.3 — current stable
|
| 51 |
+
|
| 52 |
+
Community expansion release. Adds `european_hplt_v3_pl` from
|
| 53 |
+
[PR #5](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/5)
|
| 54 |
+
and `global_voices` from
|
| 55 |
+
[PR #7](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/7),
|
| 56 |
+
plus `nkjp1m` from
|
| 57 |
+
[PR #8](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/8).
|
| 58 |
+
The complete 16-source release contains **2,710,974 documents /
|
| 59 |
+
6,881,277,362 cl100k-proxy tokens**, summed from the released per-source parquet
|
| 60 |
+
statistics.
|
| 61 |
+
|
| 62 |
+
#### v0.2.2 — previous stable
|
| 63 |
+
|
| 64 |
+
Added `govpl` from
|
| 65 |
+
[PR #9](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/9):
|
| 66 |
+
88,190 Polish government press releases collected directly from 133 gov.pl
|
| 67 |
+
ministry and agency subsites. Result: 13 sources, 2,579,963 documents and
|
| 68 |
+
6.36B proxy tokens.
|
| 69 |
+
|
| 70 |
+
#### v0.2.1 — previous stable
|
| 71 |
+
|
| 72 |
+
Introduced the canonical eight-column release schema:
|
| 73 |
+
`id, text, source, added, created, token_count, license, author`. Added the
|
| 74 |
+
CC-BY-4.0 `1000_novels` source from
|
| 75 |
+
[PR #1](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/1)
|
| 76 |
+
and recomputed all release statistics from parquet files.
|
| 77 |
+
|
| 78 |
+
#### v0.2.0 — initial stable corpus
|
| 79 |
+
|
| 80 |
+
The provenance-first baseline: 11 reviewed open or official sources,
|
| 81 |
+
2,490,773 documents and 6.22B proxy tokens. This version established the
|
| 82 |
+
per-source datasheet, traceable-license and exclusion-policy workflow.
|
| 83 |
+
|
| 84 |
+
#### v0.3.0-preview — quality workflow
|
| 85 |
+
|
| 86 |
+
Candidate-only work on a better-balanced training mixture: legal-source caps,
|
| 87 |
+
temperature sampling, source QA, deduplication and direct-upstream ingestion.
|
| 88 |
+
It is a workflow and validation track, not a replacement for the stable corpus.
|
| 89 |
+
|
| 90 |
+
#### v0.3.1-preview — Europeana validation shard
|
| 91 |
+
|
| 92 |
+
A separate reproducible 810-document Europeana sample preserving per-record
|
| 93 |
+
rights and creator metadata. It validates the direct-ingestion contract without
|
| 94 |
+
changing stable-release totals.
|
| 95 |
+
|
| 96 |
## What this dataset contributes
|
| 97 |
The raw texts come from existing open corpora (redistributed via SpeakLeash and,
|
| 98 |
where applicable, fetched from upstream). **The value added here is the curation,
|
|
|
|
| 116 |
|
| 117 |
## Contributors
|
| 118 |
|
| 119 |
+
| contributor | contribution | release / PR |
|
| 120 |
+
|---|---|---|
|
| 121 |
+
| [Kacper Wikieł](https://huggingface.co/kacperwikiel) | Project maintainer; corpus curation, source and license review, release engineering, documentation, validation and reproducible build workflow. | all releases |
|
| 122 |
+
| [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) |
|
| 123 |
+
| [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) |
|
| 124 |
+
| [Arkadiusz Słota](https://huggingface.co/Maggio33) | Built `european_hplt_v3_pl`: HPLT v3 WDS 10+9 cleaning pipeline, 110,590-document artifact, validation and documentation. | `v0.2.3`, [PR #5](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/5) |
|
| 125 |
+
| [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) |
|
| 126 |
+
| [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) |
|
| 127 |
+
|
| 128 |
+
Contributions are credited when they add a verifiable dataset artifact, pipeline,
|
| 129 |
+
validation, documentation or release work. A merged discussion with no resulting
|
| 130 |
+
files is not listed as a data contribution.
|
| 131 |
|
| 132 |
## Guiding principles
|
| 133 |
1. **Open & traceable licensing** — every source is *openly licensed* with a documented
|
|
|
|
| 143 |
| [parliamentary](data/parliamentary/parliamentary.md) | Polish Parliamentary Corpus (Sejm/Senat) | `public-domain (official documents)` | 324,622 | 1,646.8M |
|
| 144 |
| [wikisource](data/wikisource/wikisource.md) | Polish Wikisource | `CC-BY-SA-3.0` | 632,005 | 801.9M |
|
| 145 |
| [wikipedia](data/wikipedia/wikipedia.md) | Polish Wikipedia | `CC-BY-SA-3.0` | 1,171,897 | 707.2M |
|
| 146 |
+
| [european_hplt_v3_pl](data/european_hplt_v3_pl/european_hplt_v3_pl.md) | HPLT v3.0 Polish — top WDS quality bins 10+9 | `CC0-1.0` | 110,590 | 512.4M |
|
| 147 |
| [dziennik_ustaw](data/dziennik_ustaw/dziennik_ustaw.md) | Dziennik Ustaw + Monitor Polski (Polish primary legislation) | `public-domain (official documents)` | 35,442 | 486.1M |
|
| 148 |
| [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 |
|
| 149 |
| [govpl](data/govpl/govpl.md) | gov.pl — Polish government press releases | `CC-BY-SA-4.0` | 88,190 | 80.7M |
|
|
|
|
| 153 |
| [wikivoyage](data/wikivoyage/wikivoyage.md) | Polish Wikivoyage (travel guides) | `CC-BY-SA-3.0` | 13,645 | 17.1M |
|
| 154 |
| [wikibooks](data/wikibooks/wikibooks.md) | Polish Wikibooks (open textbooks) | `CC-BY-SA-3.0` | 9,112 | 15.6M |
|
| 155 |
| [wikinews](data/wikinews/wikinews.md) | Polish Wikinews | `CC-BY-2.5` | 24,386 | 12.1M |
|
| 156 |
+
| [global_voices](data/global_voices/global_voices.md) | Global Voices Polish | `CC-BY-3.0` | 2,040 | 3.7M |
|
| 157 |
+
| [nkjp1m](data/nkjp1m/nkjp1m.md) | NKJP manually annotated 1-million-word subcorpus | `CC-BY` | 18,381 | 2.6M |
|
| 158 |
+
| **total** | | | **2,710,974** | **6,881.3M** |
|
| 159 |
|
| 160 |
## Method
|
| 161 |
Only **human-authored** text — no synthetic, machine-translated, or auto-transcribed
|
|
|
|
| 206 |
- Europeana release policy: split conservatively at pre-1929 records for
|
| 207 |
US-sensitive downstream reuse, and keep later/unknown records separately
|
| 208 |
labeled or held until legal review.
|
| 209 |
+
- `european_hplt_v3_pl`: WDS bins 10+9 are included in v0.2.3 after contract
|
| 210 |
+
validation. HPLT packaging is CC0, while underlying crawled web documents can
|
| 211 |
+
carry independent rights; downstream near-dedup and web-content review remain
|
| 212 |
+
recommended before training.
|
| 213 |
|
| 214 |
Current review artifacts:
|
| 215 |
|
|
|
|
| 273 |
|
| 274 |
## Results
|
| 275 |
|
| 276 |
+
The corpus-level phrase-frequency recount for the 16-source v0.2.3 release is pending. The previous 15-source tables were removed to avoid presenting stale analysis as current. Release document/token totals above are summed from the validated per-source parquet statistics.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
artifacts/pattern_frequency_hf_snippet.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
## Phrase frequency in corpus (token-normalized)
|
| 2 |
|
| 3 |
-
- Total token count (tiktoken proxy): **6,
|
| 4 |
|
| 5 |
| Pattern | Count | Share of all tokens |
|
| 6 |
|---|---:|---:|
|
| 7 |
-
| `w roku` |
|
| 8 |
-
| `klasyfikacji` |
|
| 9 |
-
| `ustawa` |
|
| 10 |
-
| `artykuł` | 2,
|
| 11 |
-
| `parlament` | 1,
|
| 12 |
-
| `rozporządzenie` | 1,
|
| 13 |
-
| `w pobliżu` |
|
| 14 |
-
| `mieszkańców` |
|
| 15 |
-
| `Dz.U.` |
|
| 16 |
|
| 17 |
### Per-source shares
|
| 18 |
|
|
@@ -54,6 +54,24 @@
|
|
| 54 |
| `eurlex` | `w pobliżu` | 6,088 | 0.00026% |
|
| 55 |
| `eurlex` | `mieszkańców` | 9,441 | 0.00040% |
|
| 56 |
| `eurlex` | `Dz.U.` | 915,707 | 0.03851% |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
| `govpl` | `w roku` | 3,372 | 0.00418% |
|
| 58 |
| `govpl` | `klasyfikacji` | 526 | 0.00065% |
|
| 59 |
| `govpl` | `ustawa` | 4,727 | 0.00586% |
|
|
|
|
| 1 |
## Phrase frequency in corpus (token-normalized)
|
| 2 |
|
| 3 |
+
- Total token count (tiktoken proxy): **6,878,676,161**
|
| 4 |
|
| 5 |
| Pattern | Count | Share of all tokens |
|
| 6 |
|---|---:|---:|
|
| 7 |
+
| `w roku` | 460,140 | 0.0067% |
|
| 8 |
+
| `klasyfikacji` | 134,084 | 0.0019% |
|
| 9 |
+
| `ustawa` | 598,097 | 0.0087% |
|
| 10 |
+
| `artykuł` | 2,096,118 | 0.0305% |
|
| 11 |
+
| `parlament` | 1,216,592 | 0.0177% |
|
| 12 |
+
| `rozporządzenie` | 1,497,253 | 0.0218% |
|
| 13 |
+
| `w pobliżu` | 89,697 | 0.0013% |
|
| 14 |
+
| `mieszkańców` | 288,752 | 0.0042% |
|
| 15 |
+
| `Dz.U.` | 944,563 | 0.0137% |
|
| 16 |
|
| 17 |
### Per-source shares
|
| 18 |
|
|
|
|
| 54 |
| `eurlex` | `w pobliżu` | 6,088 | 0.00026% |
|
| 55 |
| `eurlex` | `mieszkańców` | 9,441 | 0.00040% |
|
| 56 |
| `eurlex` | `Dz.U.` | 915,707 | 0.03851% |
|
| 57 |
+
| `european_hplt_v3_pl` | `w roku` | 21,067 | 0.00411% |
|
| 58 |
+
| `european_hplt_v3_pl` | `klasyfikacji` | 3,576 | 0.00070% |
|
| 59 |
+
| `european_hplt_v3_pl` | `ustawa` | 5,754 | 0.00112% |
|
| 60 |
+
| `european_hplt_v3_pl` | `artykuł` | 56,295 | 0.01099% |
|
| 61 |
+
| `european_hplt_v3_pl` | `parlament` | 10,618 | 0.00207% |
|
| 62 |
+
| `european_hplt_v3_pl` | `rozporządzenie` | 2,661 | 0.00052% |
|
| 63 |
+
| `european_hplt_v3_pl` | `w pobliżu` | 9,877 | 0.00193% |
|
| 64 |
+
| `european_hplt_v3_pl` | `mieszkańców` | 33,939 | 0.00662% |
|
| 65 |
+
| `european_hplt_v3_pl` | `Dz.U.` | 1,482 | 0.00029% |
|
| 66 |
+
| `global_voices` | `w roku` | 160 | 0.00431% |
|
| 67 |
+
| `global_voices` | `klasyfikacji` | 5 | 0.00013% |
|
| 68 |
+
| `global_voices` | `ustawa` | 157 | 0.00423% |
|
| 69 |
+
| `global_voices` | `artykuł` | 1,047 | 0.02818% |
|
| 70 |
+
| `global_voices` | `parlament` | 366 | 0.00985% |
|
| 71 |
+
| `global_voices` | `rozporządzenie` | 26 | 0.00070% |
|
| 72 |
+
| `global_voices` | `w pobliżu` | 105 | 0.00283% |
|
| 73 |
+
| `global_voices` | `mieszkańców` | 508 | 0.01367% |
|
| 74 |
+
| `global_voices` | `Dz.U.` | 1 | 0.00003% |
|
| 75 |
| `govpl` | `w roku` | 3,372 | 0.00418% |
|
| 76 |
| `govpl` | `klasyfikacji` | 526 | 0.00065% |
|
| 77 |
| `govpl` | `ustawa` | 4,727 | 0.00586% |
|
pattern_frequency_report.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
## Pattern frequency on corpus
|
| 2 |
|
| 3 |
-
- total tokens (tiktoken proxy): `6,
|
| 4 |
|
| 5 |
| pattern | count | share of all tokens |
|
| 6 |
|---|---:|---:|
|
| 7 |
-
| `w roku` |
|
| 8 |
-
| `klasyfikacji` |
|
| 9 |
-
| `ustawa` |
|
| 10 |
-
| `artykuł` | 2,
|
| 11 |
-
| `parlament` | 1,
|
| 12 |
-
| `rozporządzenie` | 1,
|
| 13 |
-
| `w pobliżu` |
|
| 14 |
-
| `mieszkańców` |
|
| 15 |
-
| `Dz.U.` |
|
| 16 |
|
| 17 |
| source | pattern | count | per-token share |
|
| 18 |
|---|---|---:|---:|
|
|
@@ -52,6 +52,24 @@
|
|
| 52 |
| eurlex | `w pobliżu` | 6,088 | 0.00026% |
|
| 53 |
| eurlex | `mieszkańców` | 9,441 | 0.00040% |
|
| 54 |
| eurlex | `Dz.U.` | 915,707 | 0.03851% |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
| govpl | `w roku` | 3,372 | 0.00418% |
|
| 56 |
| govpl | `klasyfikacji` | 526 | 0.00065% |
|
| 57 |
| govpl | `ustawa` | 4,727 | 0.00586% |
|
|
|
|
| 1 |
## Pattern frequency on corpus
|
| 2 |
|
| 3 |
+
- total tokens (tiktoken proxy): `6,878,676,161`
|
| 4 |
|
| 5 |
| pattern | count | share of all tokens |
|
| 6 |
|---|---:|---:|
|
| 7 |
+
| `w roku` | 460,140 | 0.0067% |
|
| 8 |
+
| `klasyfikacji` | 134,084 | 0.0019% |
|
| 9 |
+
| `ustawa` | 598,097 | 0.0087% |
|
| 10 |
+
| `artykuł` | 2,096,118 | 0.0305% |
|
| 11 |
+
| `parlament` | 1,216,592 | 0.0177% |
|
| 12 |
+
| `rozporządzenie` | 1,497,253 | 0.0218% |
|
| 13 |
+
| `w pobliżu` | 89,697 | 0.0013% |
|
| 14 |
+
| `mieszkańców` | 288,752 | 0.0042% |
|
| 15 |
+
| `Dz.U.` | 944,563 | 0.0137% |
|
| 16 |
|
| 17 |
| source | pattern | count | per-token share |
|
| 18 |
|---|---|---:|---:|
|
|
|
|
| 52 |
| eurlex | `w pobliżu` | 6,088 | 0.00026% |
|
| 53 |
| eurlex | `mieszkańców` | 9,441 | 0.00040% |
|
| 54 |
| eurlex | `Dz.U.` | 915,707 | 0.03851% |
|
| 55 |
+
| european_hplt_v3_pl | `w roku` | 21,067 | 0.00411% |
|
| 56 |
+
| european_hplt_v3_pl | `klasyfikacji` | 3,576 | 0.00070% |
|
| 57 |
+
| european_hplt_v3_pl | `ustawa` | 5,754 | 0.00112% |
|
| 58 |
+
| european_hplt_v3_pl | `artykuł` | 56,295 | 0.01099% |
|
| 59 |
+
| european_hplt_v3_pl | `parlament` | 10,618 | 0.00207% |
|
| 60 |
+
| european_hplt_v3_pl | `rozporządzenie` | 2,661 | 0.00052% |
|
| 61 |
+
| european_hplt_v3_pl | `w pobliżu` | 9,877 | 0.00193% |
|
| 62 |
+
| european_hplt_v3_pl | `mieszkańców` | 33,939 | 0.00662% |
|
| 63 |
+
| european_hplt_v3_pl | `Dz.U.` | 1,482 | 0.00029% |
|
| 64 |
+
| global_voices | `w roku` | 160 | 0.00431% |
|
| 65 |
+
| global_voices | `klasyfikacji` | 5 | 0.00013% |
|
| 66 |
+
| global_voices | `ustawa` | 157 | 0.00423% |
|
| 67 |
+
| global_voices | `artykuł` | 1,047 | 0.02818% |
|
| 68 |
+
| global_voices | `parlament` | 366 | 0.00985% |
|
| 69 |
+
| global_voices | `rozporządzenie` | 26 | 0.00070% |
|
| 70 |
+
| global_voices | `w pobliżu` | 105 | 0.00283% |
|
| 71 |
+
| global_voices | `mieszkańców` | 508 | 0.01367% |
|
| 72 |
+
| global_voices | `Dz.U.` | 1 | 0.00003% |
|
| 73 |
| govpl | `w roku` | 3,372 | 0.00418% |
|
| 74 |
| govpl | `klasyfikacji` | 526 | 0.00065% |
|
| 75 |
| govpl | `ustawa` | 4,727 | 0.00586% |
|
src/make_docs.py
CHANGED
|
@@ -13,7 +13,8 @@ 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 |
CONTACT = "k.wikiel@gmail.com" # notice-and-takedown / data-removal requests
|
| 18 |
|
| 19 |
# Dupochron: documented good-faith provenance + no-warranty + takedown + PII.
|
|
@@ -166,7 +167,7 @@ family (Enevoldsen et al., [arXiv:2508.02271](https://arxiv.org/abs/2508.02271))
|
|
| 166 |
|
| 167 |
> **v{VERSION} stable** · {tot_doc:,} documents · **{tot_tok/1e9:.2f}B tokens**
|
| 168 |
> (tiktoken proxy; canonical Llama-3 count at release) · {len(rows)} sources
|
| 169 |
-
> Updated: **{
|
| 170 |
|
| 171 |
> **v0.3.0-preview in progress** · quality/diversity remix workflow, legal-style
|
| 172 |
> downweighting, and filtered contemporary Polish web candidates. Biblioteka
|
|
@@ -178,10 +179,57 @@ family (Enevoldsen et al., [arXiv:2508.02271](https://arxiv.org/abs/2508.02271))
|
|
| 178 |
|
| 179 |
| version | status | documents | tokens | notes |
|
| 180 |
|---|---|---:|---:|---|
|
| 181 |
-
| `v0.2.
|
|
|
|
|
|
|
| 182 |
| `v0.2.0` | previous stable | 2,490,773 | 6.22B | Provenance-first corpus from 11 open/official sources. |
|
| 183 |
| `v0.3.0-preview` | workflow + candidate data in progress | candidate-only | TBD | Biblioteka Nauki, Europeana, and HPLT/Common Corpus style expansion pending per-source QA, dedup, and legal review. |
|
| 184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
## What this dataset contributes
|
| 186 |
The raw texts come from existing open corpora (redistributed via SpeakLeash and,
|
| 187 |
where applicable, fetched from upstream). **The value added here is the curation,
|
|
@@ -205,10 +253,18 @@ as the redistributing aggregator; this release does not claim ownership of them
|
|
| 205 |
|
| 206 |
## Contributors
|
| 207 |
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
|
| 213 |
## Guiding principles
|
| 214 |
1. **Open & traceable licensing** — every source is *openly licensed* with a documented
|
|
@@ -261,9 +317,10 @@ Current v0.3 source-ingestion status:
|
|
| 261 |
- Europeana release policy: split conservatively at pre-1929 records for
|
| 262 |
US-sensitive downstream reuse, and keep later/unknown records separately
|
| 263 |
labeled or held until legal review.
|
| 264 |
-
- `
|
| 265 |
-
|
| 266 |
-
|
|
|
|
| 267 |
|
| 268 |
Current review artifacts:
|
| 269 |
|
|
@@ -298,23 +355,19 @@ python3 src/make_docs.py
|
|
| 298 |
"""
|
| 299 |
(ROOT / "README.md").write_text(readme)
|
| 300 |
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
f"- Kept raw SpeakLeash Europeana excluded unless a direct rebuild "
|
| 315 |
-
f"preserves per-record rights metadata.\n"
|
| 316 |
-
f"- Sources: {', '.join(n for n, _, _ in rows)}.\n"
|
| 317 |
-
f"- Excluded (see README): {', '.join(EXCLUDED)}.\n")
|
| 318 |
|
| 319 |
(ROOT / "LICENSE").write_text(
|
| 320 |
"Polish DynaWord is released under Creative Commons Attribution-ShareAlike 4.0\n"
|
|
|
|
| 13 |
from sources import SOURCES, EXCLUDED, ADDED
|
| 14 |
|
| 15 |
ROOT = Path(__file__).resolve().parent.parent
|
| 16 |
+
VERSION = "0.2.3"
|
| 17 |
+
RELEASE_DATE = "2026-07-26"
|
| 18 |
CONTACT = "k.wikiel@gmail.com" # notice-and-takedown / data-removal requests
|
| 19 |
|
| 20 |
# Dupochron: documented good-faith provenance + no-warranty + takedown + PII.
|
|
|
|
| 167 |
|
| 168 |
> **v{VERSION} stable** · {tot_doc:,} documents · **{tot_tok/1e9:.2f}B tokens**
|
| 169 |
> (tiktoken proxy; canonical Llama-3 count at release) · {len(rows)} sources
|
| 170 |
+
> Updated: **{RELEASE_DATE}**
|
| 171 |
|
| 172 |
> **v0.3.0-preview in progress** · quality/diversity remix workflow, legal-style
|
| 173 |
> downweighting, and filtered contemporary Polish web candidates. Biblioteka
|
|
|
|
| 179 |
|
| 180 |
| version | status | documents | tokens | notes |
|
| 181 |
|---|---|---:|---:|---|
|
| 182 |
+
| `v0.2.3` | stable release | {tot_doc:,} | {tot_tok/1e9:.2f}B | Adds community-contributed `european_hplt_v3_pl`, `global_voices` and `nkjp1m`. |
|
| 183 |
+
| `v0.2.2` | previous stable | 2,579,963 | 6.36B | Added community-contributed `govpl`: 88,190 docs / 80.7M tokens. |
|
| 184 |
+
| `v0.2.1` | previous stable | 2,491,773 | 6.28B | 12-source corpus with `license` and `author` metadata columns; added `1000_novels`. |
|
| 185 |
| `v0.2.0` | previous stable | 2,490,773 | 6.22B | Provenance-first corpus from 11 open/official sources. |
|
| 186 |
| `v0.3.0-preview` | workflow + candidate data in progress | candidate-only | TBD | Biblioteka Nauki, Europeana, and HPLT/Common Corpus style expansion pending per-source QA, dedup, and legal review. |
|
| 187 |
|
| 188 |
+
### Version details
|
| 189 |
+
|
| 190 |
+
#### v0.2.3 — current stable
|
| 191 |
+
|
| 192 |
+
Community expansion release. Adds `european_hplt_v3_pl` from
|
| 193 |
+
[PR #5](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/5)
|
| 194 |
+
and `global_voices` from
|
| 195 |
+
[PR #7](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/7),
|
| 196 |
+
plus `nkjp1m` from
|
| 197 |
+
[PR #8](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/8).
|
| 198 |
+
The complete 16-source release contains **2,710,974 documents /
|
| 199 |
+
6,881,277,362 cl100k-proxy tokens**, summed from the released per-source parquet
|
| 200 |
+
statistics.
|
| 201 |
+
|
| 202 |
+
#### v0.2.2 — previous stable
|
| 203 |
+
|
| 204 |
+
Added `govpl` from
|
| 205 |
+
[PR #9](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/9):
|
| 206 |
+
88,190 Polish government press releases collected directly from 133 gov.pl
|
| 207 |
+
ministry and agency subsites.
|
| 208 |
+
|
| 209 |
+
#### v0.2.1 — previous stable
|
| 210 |
+
|
| 211 |
+
Introduced the canonical eight-column release schema:
|
| 212 |
+
`id, text, source, added, created, token_count, license, author`. Added
|
| 213 |
+
`1000_novels` from
|
| 214 |
+
[PR #1](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/1)
|
| 215 |
+
and recomputed all release statistics from parquet files.
|
| 216 |
+
|
| 217 |
+
#### v0.2.0 — initial stable corpus
|
| 218 |
+
|
| 219 |
+
The provenance-first baseline: 11 reviewed open or official sources,
|
| 220 |
+
2,490,773 documents and 6.22B proxy tokens.
|
| 221 |
+
|
| 222 |
+
#### v0.3.0-preview — quality workflow
|
| 223 |
+
|
| 224 |
+
Candidate-only work on a better-balanced training mixture: legal-source caps,
|
| 225 |
+
temperature sampling, source QA, deduplication and direct-upstream ingestion.
|
| 226 |
+
It is not a replacement for the stable corpus.
|
| 227 |
+
|
| 228 |
+
#### v0.3.1-preview — Europeana validation shard
|
| 229 |
+
|
| 230 |
+
A separate reproducible 810-document Europeana sample preserving per-record
|
| 231 |
+
rights and creator metadata. It does not change stable-release totals.
|
| 232 |
+
|
| 233 |
## What this dataset contributes
|
| 234 |
The raw texts come from existing open corpora (redistributed via SpeakLeash and,
|
| 235 |
where applicable, fetched from upstream). **The value added here is the curation,
|
|
|
|
| 253 |
|
| 254 |
## Contributors
|
| 255 |
|
| 256 |
+
| contributor | contribution | release / PR |
|
| 257 |
+
|---|---|---|
|
| 258 |
+
| [Kacper Wikieł](https://huggingface.co/kacperwikiel) | Project maintainer; corpus curation, source and license review, release engineering, documentation, validation and reproducible build workflow. | all releases |
|
| 259 |
+
| [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) |
|
| 260 |
+
| [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) |
|
| 261 |
+
| [Arkadiusz Słota](https://huggingface.co/Maggio33) | Built `european_hplt_v3_pl`: HPLT v3 WDS 10+9 cleaning pipeline, 110,590-document artifact, validation and documentation. | `v0.2.3`, [PR #5](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/5) |
|
| 262 |
+
| [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) |
|
| 263 |
+
| [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) |
|
| 264 |
+
|
| 265 |
+
Contributions are credited when they add a verifiable dataset artifact, pipeline,
|
| 266 |
+
validation, documentation or release work. A merged discussion with no resulting
|
| 267 |
+
files is not listed as a data contribution.
|
| 268 |
|
| 269 |
## Guiding principles
|
| 270 |
1. **Open & traceable licensing** — every source is *openly licensed* with a documented
|
|
|
|
| 317 |
- Europeana release policy: split conservatively at pre-1929 records for
|
| 318 |
US-sensitive downstream reuse, and keep later/unknown records separately
|
| 319 |
labeled or held until legal review.
|
| 320 |
+
- `european_hplt_v3_pl`: WDS bins 10+9 are included in v{VERSION} after contract
|
| 321 |
+
validation. HPLT packaging is CC0, while underlying crawled web documents can
|
| 322 |
+
carry independent rights; downstream near-dedup and web-content review remain
|
| 323 |
+
recommended before training.
|
| 324 |
|
| 325 |
Current review artifacts:
|
| 326 |
|
|
|
|
| 355 |
"""
|
| 356 |
(ROOT / "README.md").write_text(readme)
|
| 357 |
|
| 358 |
+
# CHANGELOG is append-only release history. Documentation regeneration must
|
| 359 |
+
# never erase earlier releases or hand-reviewed legal/release notes.
|
| 360 |
+
changelog_path = ROOT / "CHANGELOG.md"
|
| 361 |
+
changelog = changelog_path.read_text() if changelog_path.exists() else "# Changelog\n"
|
| 362 |
+
heading = f"## v{VERSION} ({RELEASE_DATE})"
|
| 363 |
+
if heading not in changelog:
|
| 364 |
+
entry = (
|
| 365 |
+
f"{heading}\n\n"
|
| 366 |
+
f"- Current release totals after parquet recount: {len(rows)} sources, "
|
| 367 |
+
f"{tot_doc:,} docs, {tot_tok:,} tokens (tiktoken cl100k proxy).\n\n"
|
| 368 |
+
)
|
| 369 |
+
changelog = changelog.replace("# Changelog\n", f"# Changelog\n\n{entry}", 1)
|
| 370 |
+
changelog_path.write_text(changelog)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 371 |
|
| 372 |
(ROOT / "LICENSE").write_text(
|
| 373 |
"Polish DynaWord is released under Creative Commons Attribution-ShareAlike 4.0\n"
|
src/pattern_frequency_report.py
CHANGED
|
@@ -45,7 +45,10 @@ def count_patterns_for_source(parquet_path: Path) -> dict[str, int]:
|
|
| 45 |
|
| 46 |
for rg in range(pf.num_row_groups):
|
| 47 |
table = pf.read_row_group(rg, columns=["text"])
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
| 49 |
text = pc.utf8_lower(text)
|
| 50 |
text = pc.replace_substring_regex(text, pattern="\\r?\\n", replacement=" ")
|
| 51 |
|
|
|
|
| 45 |
|
| 46 |
for rg in range(pf.num_row_groups):
|
| 47 |
table = pf.read_row_group(rg, columns=["text"])
|
| 48 |
+
# A single large source row group can exceed Arrow's 2 GiB utf8
|
| 49 |
+
# offset limit after lower-casing. Use 64-bit string offsets before
|
| 50 |
+
# applying any text kernels so community-contributed web shards scale.
|
| 51 |
+
text = pc.cast(table["text"], "large_string")
|
| 52 |
text = pc.utf8_lower(text)
|
| 53 |
text = pc.replace_substring_regex(text, pattern="\\r?\\n", replacement=" ")
|
| 54 |
|
src/test_hplt_v3_contract.py
CHANGED
|
@@ -11,7 +11,8 @@ from pathlib import Path
|
|
| 11 |
import pyarrow as pa, pyarrow.parquet as pq
|
| 12 |
import pyarrow.compute as pc
|
| 13 |
|
| 14 |
-
|
|
|
|
| 15 |
PARQUET = D / "european_hplt_v3_pl.parquet"
|
| 16 |
STATS = D / "european_hplt_v3_pl.stats.json"
|
| 17 |
ACCEPTED = {"cc0-1.0", "cc-by-3.0", "cc-by-4.0", "cc-by-sa-3.0", "cc-by-sa-4.0",
|
|
|
|
| 11 |
import pyarrow as pa, pyarrow.parquet as pq
|
| 12 |
import pyarrow.compute as pc
|
| 13 |
|
| 14 |
+
ROOT = Path(__file__).resolve().parent.parent
|
| 15 |
+
D = ROOT / "data" / "european_hplt_v3_pl"
|
| 16 |
PARQUET = D / "european_hplt_v3_pl.parquet"
|
| 17 |
STATS = D / "european_hplt_v3_pl.stats.json"
|
| 18 |
ACCEPTED = {"cc0-1.0", "cc-by-3.0", "cc-by-4.0", "cc-by-sa-3.0", "cc-by-sa-4.0",
|