Datasets:
Update samorzad_gov_pl to de-identified upstream v0.2 (scoped from #15)
Update samorzad_gov_pl to de-identified upstream v0.2 (scoped from #15)
Replacement delivery for #15 (authored by @dawidmajewski — this account cannot push to refs/pr/15, same author-scoped ref policy as #24/#19), scoped per review items: no make_docs.py, pattern_frequency_report.md or chart-PNG changes (those belong to the maintainer's release commit); only this source's files + the registry entry.
Before → after (review item 1)
| measure | v0.1 (current main) |
v0.2 (this update) | Δ |
|---|---|---|---|
| documents kept | 72,771 | 72,472 | −299 |
tokens (cl100k_base) |
41,154,506 | 40,011,099 | −1,143,407 (−2.8%) |
| characters | 109,513,754 | 107,130,266 | −2,383,488 (−2.2%) |
| upstream rows read | 81,422 | 81,418 | −4 (corrupted source records excluded upstream) |
| dropped: too short (<200 chars) | 6,624 | 6,932 | +308 |
| dropped: exact duplicates | 1,992 | 1,980 | −12 |
| dropped: language gate | 35 | 34 | −1 |
| publishers | 247 | 247 | 0 |
What changed: the upstream release moved from d5eaefc3… (v0.1) to a998efea… (v0.2) and de-identifies consumer-facing text before DynaWord filtering — the samorzad-pii-v3 policy (pinned ArkadiuszPawlak/fastpdn-ner-polish-pii model @636c57fe… + deterministic rules + checksum validation) replaces removed values with typed placeholders (<PERSON>, <PHONE>, …). The −1.14M tokens are those redactions plus 4 corrupted records dropped upstream and slightly shifted dedup/length outcomes. Retained text is an exact subset of the de-identified upstream release (leading/trailing whitespace trimmed only).
License (review item 2)
CC BY-SA 4.0 for textual content, stated in the shared samorzad.gov.pl / gov.pl platform footer — e.g. the live footer on https://samorzad.gov.pl/web/gmina-krzyz-wielkopolski/2-miliony-dla-gminy-krzyz-wielkopolski reads verbatim: "Treści tekstowe publikowane w serwisie (z wyłączeniem treści audiowizualnych), są udostępniane na licencji typu Creative Commons: uznanie autorstwa - na tych samych warunkach 4.0 (CC BY-SA 4.0)." (Audiovisual content is CC BY-NC-ND 4.0 and is not redistributed here — text only.) Deed: https://creativecommons.org/licenses/by-sa/4.0/deed.pl. Per-record license/license_url and canonical source URLs ride in the attribution sidecar; the upstream dataset card also declares cc-by-sa-4.0.
What the texts are (review item 4)
- Genre: institutional news and announcements of Polish local-government institutions on the shared samorzad.gov.pl platform — administrative notices (vehicle registration rules, fees, office hours), investment/funding reports, school and culture-institution announcements, obituaries of local figures, museum/exhibition notes.
- Publishers: 247 tenants — 246 local public institutions (gminy, powiaty, urzędy, schools, social-help and culture institutions) + 1 central platform tenant;
authoris the institution name (100% coverage). - Time span: publication dates 2020-04-10 – 2026-07-31 (dated records; a subset carries no publication date —
createdleft empty for those). - Register: formal institutional Polish with occasional marketing/PR phrasing; not OCR'd (HTML extraction), not machine-translated.
Sample (verbatim, from the built v0.2 shard)
id: samorzad_gov_pl_18bf5b599f8d7d8f8ce7f2ba929a8ecbe4a11112760b1f6d4f393924ffc49c51
source: samorzad_gov_pl
added: 2026-08-14
created:
token_count: 929
license: CC-BY-SA-4.0
author: Powiat Oleśnicki
Wydział Komunikacji i Inżynierii Dróg Starostwa Powiatowego w Oleśnicy informuje, że od 1 stycznia wprowadzone zostanę nowe regulacje dotyczące rejestracji pojazdów. Dotychczasowy obowiązek zawiadomienia o nabyciu pojazdu zastąpiono obowiązkiem zarejestrowania pojazdu.
Właściciel pojazdu będzie obowiązany złożyć wniosek o rejestrację w terminie 30 dni od dnia: 1️⃣ nabycia pojazdu na terytorium Rzeczypospolitej Polskiej 2️⃣ dopuszczenia do obrotu przez organ Krajowej Administracji Skarbowej pojazdu sprowadzonego z terytorium państwa niebędącego państwem członkowskim Unii Europejskiej 3️⃣ sprowadzenia pojazdu na terytorium Rzeczypospolitej Polskiej z terytorium państwa członkowskiego Unii Europejskiej.
W przypadku nabycia pojazdu w drodze spadku, termin 30 dni biegnie od dnia prawomocnego […]
id: samorzad_gov_pl_218c46650f47291b53d9ffdd76e9e344b6cc86f1fb5a60a2419df4ee6eb05475
source: samorzad_gov_pl
added: 2026-08-14
created:
token_count: 8047
license: CC-BY-SA-4.0
author: Miasto Chełm
NAZWA numer telefonu i adres
GŁÓWNY NUMER URZĘDU MIASTA CHEŁM
ADRES DO eDORĘCZENIA
ADRES ePUAP
ADRES E-MAIL
tel. <PHONE>
ul. Lubelska 65, 22-100 Chełm
(The <PHONE> above is the v0.2 typed placeholder in action — the layout survives, the number is gone.)
PII (review item 5)
Which scrubber ran: upstream samorzad-pii-v3 — the pinned ArkadiuszPawlak/fastpdn-ner-polish-pii model (rev 636c57fe…) + deterministic rules + checksum validation for contact data and structured identifiers, applied to consumer-facing text before DynaWord filtering (typed placeholders). Upstream audit: all 81,418 records scanned for structured residuals, PERSON model rerun on a 1,000-record sample, placeholder structure validated, provenance verified against the pinned manifest. This is a model scrubber, but it is not SlayerLab/NERGAL: per AGENTS.md the shard must be re-run through NERGAL before it is admitted to a release. Merge with release: None is fine meanwhile. Stated in the datasheet.
Scope (review item 6)
This PR changes only: data/samorzad_gov_pl/{samorzad_gov_pl.parquet, samorzad_gov_pl.stats.json, samorzad_gov_pl.attribution.jsonl, samorzad_gov_pl.md, NOTICE.md}, src/clean_samorzad_gov_pl.py, src/test_samorzad_gov_pl_contract.py and the registry entry (v0.2 provenance wording). No make_docs.py, pattern_frequency_report.md, chart PNGs, README/CHANGELOG — the release bookkeeping stays with the maintainer.
refs/pr/46 ref