Datasets:
Add source: sejm_api_2011_2022 - remaining attributed Sejm speeches
This PR contributes the remaining 2011-2022 portion of the immutablePiotrSty/sejm-speeches-corpus@124557799608ce4212cf22fa90ca7904618de1b6
release. It complements the already merged sejm_api contribution, which
starts in 2023.
Measured artifact:
- 118,902 speech-level documents
- 135,072,403
cl100k_baseproxy tokens - 361,275,710 characters
- 2011-11-08 through 2022-12-14
- terms VII, VIII and IX
- 100% non-empty speaker attribution
- 100% speech-level official Sejm API URLs in the attribution sidecar
- canonical eight-column DynaWord Parquet schema
- pinned source and target commits
- statutory legal evidence, Slayer ontology manifest and contract tests
Data samples
Real records with all canonical metadata fields. Text is truncated only at […]. The linked Sejm pages provide the official source context.
Record 1
| id | source | added | created | token_count | license | author |
|---|---|---|---|---|---|---|
sejm_api_2011_2022_41ee1d5f8c200e975687754202175707bf4d1e22e07c847a5977d6a5e6bf83f9 |
sejm_api_2011_2022 |
2026-08-31 |
2011-11-08 |
7374 |
public-domain (official documents) |
Senior Józef Zych |
Source context: Sejm term 7, official record
Otwieram 1. posiedzenie Sejmu VII kadencji. (Marszałek senior trzykrotnie uderza laską marszałkowską) Serdecznie witam przybyłych na naszą uroczystość dostojnych gości, a wśród nich: prezydenta Rzeczypospolitej Polskiej pana Bronisława Komorowskiego (Oklaski), prezesa Rady Ministrów pana Donalda Tuska oraz członków Rady Ministrów (Oklaski), marszałka seniora Senatu VIII kadencji pana Kazimierza Kutza (Oklaski), byłych prezydentów Rzeczypospolitej Polskiej pana Lecha Wałęsę i pana Aleksandra Kwaśniewskiego. (Oklaski) Witam marszałków Sejmu i Senatu ubiegłych kadencji oraz byłych premierów rządu (Oklaski), korpus dyplomatyczny, Ich Ekscelencje panie i panów ambasadorów z dziekanem korpusu nuncjuszem apostolskim księdzem arcybiskupem Celestino[…]
Record 2
| id | source | added | created | token_count | license | author |
|---|---|---|---|---|---|---|
sejm_api_2011_2022_d766ef5bdb9eecdce4153176ae175cdb8dfb66bc09e7b6a8c86c995b5e32f63a |
sejm_api_2011_2022 |
2026-08-31 |
2016-07-05 |
2131 |
public-domain (official documents) |
Alicja Chybicka |
Source context: Sejm term 8, official record
Pani Marszałek! Panie Ministrze! Szanowni Państwo! Stanowisko klubu Platformy Obywatelskiej w sprawie projektu ustawy o zmianie ustawy o ochronie zdrowia przed następstwami używania tytoniu i wyrobów tytoniowych. Projekt ustawy wdraża dyrektywy unijne dotyczące zakazu reklamowania w szczególności e-papierosów oraz zakazu ich palenia w miejscach publicznych. Populacja wieku rozwojowego to ponad 7 mln istot ludzkich, które należy chronić przed wszelką formą palenia, czynną i bierną, konwencjonalnymi papierosami i e-papierosami, a także nowoczesnymi papierosami. Dla populacji wieku rozwojowego groźne są wszystkie formy kontaktu z paleniem czynnym i biernym wszelkiego rodzaju wyrobów tytoniowych: cygaretek, cygar, nowatorskich wyrobów tytoniowych[…]
Known overlap is disclosed rather than hidden. The 2011-2019 date range
overlaps parliamentary, whose released records have no machine-readable
author metadata. The 2015-2022 range overlaps the registered parlamint_pl
candidate, but the pinned target commit contains no releaseddata/parlamint_pl/*.parquet artifact. This PR intentionally makes no temporal
novelty claim. It provides a complete, fully attributed alternative so the
maintainers can merge the whole range or retain only the years they want in the
training mix.
All 157,714 pinned source rows were inspected. Exactly 38,812 rows dated 2023
or later were excluded because they are already present in sejm_api; no
qualifying 2011-2022 row was dropped as an exact duplicate.
Review addendum (license citation and cleaning summary)
- License citation:
public-domain (official documents)/LicenseRef-Polish-Official-Documents— official parliamentary documents and materials are excluded from copyright by Polish Copyright Act art. 4 pkt 2 (https://eli.gov.pl/api/acts/DU/2025/24/text/O/D20250024.pdf); reuse documented under the Polish Open Data and Reuse of PSI Act, arts. 2(12), 5, 6, 14(1), 15, 17 (https://eli.gov.pl/api/acts/DU/2023/1524/text.html). Same basis assejm_api. - Cleaning (pinned release protocol + this build): upstream heuristic PII redaction (e-mail, PESEL, phone — release 1.0.1 manifest: 1 e-mail, 0 PESEL, 0 phone replaced), <50-word filter, exact dedup on
term+date+speaker+text; then this build's date window 2011-01-01..2022-12-31, >=200 chars + author, exact dedup. NERGAL did not run — floor interjections can name private persons, so no release before a NERGAL pass. Filtering beyond the date-boundary dedup: min length, author gate and exact dedup only — no language-ID gate in this build.
Ontology alignment update is ready for review.
- No dataset rows or binary data artifacts were changed.
- A full rebuild from the pinned source reproduced the existing Parquet and attribution-sidecar SHA-256 digests.
- The manifest now includes content-addressed Object/Version and Protocol/Run records, typed lineage, Actors, addressable Evidence, falsifiable Claims, Claim-Evidence links, and evidence-backed attestations.
- Contract coverage now checks immutable commit URIs, graph references and acyclicity, protocol code identity, environment capture, and artifact checksums.
Verification result: 4 passed. Please let me know if you would like any ontology field names adjusted before merge.
Review against AGENTS.md ("What the PR must show", "Normalize the text before you build"). Needed before merge:
- License citation. Cite Polish Copyright Act art. 4 pkt 2 with a link in the description (as in
sejm_api), not only in.license-evidence.json. - Normalization and PII. State which cleaning steps ran and whether NERGAL ran (interjections can name private persons); add a before/after excerpt.
- Filtering beyond the date-boundary dedup — min length, language ID, or confirm only the standard build gates applied.
- Shared code.
fetch_sejm_api_2011_2022.pylooks like it duplicatesfetch_sejm_api.py— factor out the shared parsing instead of a second copy, and don't modifymake_docs.py. - Rebase onto current
main.git fetchof this PR's ref currently fails on our side; a fresh push after the rebase should fix it.
Correction to my review comment above: the git fetch failure was on the Hub side (have/ack negotiation), not a problem with this PR. It fetches fine with git -c fetch.negotiationAlgorithm=noop fetch. No re-push needed for that; the rebase ask still stands.
Review addressed — pushed onto refs/pr/18 (this is PiotrSty's PR), rebased onto main @ 34e7ea3. Point by point:
- License citation in the description.
public-domain (official documents)/LicenseRef-Polish-Official-Documents— official parliamentary documents and materials are excluded from copyright by Polish Copyright Act art. 4 pkt 2 (https://eli.gov.pl/api/acts/DU/2025/24/text/O/D20250024.pdf); reuse is documented under the Polish Open Data and Reuse of PSI Act, arts. 2(12), 5, 6, 14(1), 15, 17 (https://eli.gov.pl/api/acts/DU/2023/1524/text.html). Same basis assejm_api; statutory evidence also rides insejm_api_2011_2022.license-evidence.json(that file stays — the description now carries the citation itself). - Normalization and PII. Which cleaning ran, in order (now in the datasheet): the pinned source release protocol (
PiotrSty/sejm-speeches-corpus@1245577, README steps 3–6):terms→termnormalization + term/date verification, text-stat recomputation with heuristic PII redaction (e-mail, PESEL, phone) — release 1.0.1's manifest records the actual counts: 1 e-mail replaced, 0 PESEL, 0 phone across the corpus — speeches under 50 words dropped, exact dedup onterm + date + speaker + text. Then this build: date window 2011-01-01..2022-12-31,len(text) >= 200+ non-empty author, exact text dedup — no further text rewriting. NERGAL did not run: the scrubber is the upstream heuristic, and floor interjections ("Głos z sali", heckling) can name private persons — so no release before a NERGAL pass (AGENTS.md), merge withrelease: Nonefine meanwhile. Before/after: at text level this build is a deliberate no-op (the pinned release keeps post-normalization text + the documented protocol; raw stenogram pages aren't pinned and drift on sejm.gov.pl), so the concrete before/after evidence is the redaction record above (the one e-mail → placeholder) plus the verbatim speech samples already in the description. - Filtering — answered precisely. Beyond the date-boundary filter and dedup, this build applies exactly: minimum 200 characters, non-empty author, exact text dedup (sha1). No language-ID gate runs here (the pinned release's QA covers the corpus); nothing else is dropped. Counts in
sejm_api_2011_2022.stats.json: 118,902 published of the pinned 2011–2022 slice. - Shared code factored out. New
src/sejm_api_common.pyholds the previously byte-identical copies (sha256_file,canonical_sha256,write_json,EXPECTED_FIELDSsemantics,legal_evidence— which differed only in signature — andstable_document_id/stable_id, same body). Bothfetch_sejm_api.pyandfetch_sejm_api_2011_2022.pynow import from it via thin name-preserving wrappers; the second copy is gone.make_docs.pyis untouched. The manifest's pinnedcode_sha256is updated to the refactored script digest. - Rebase — done (was 3 commits behind; drift gone).
Verification: python3 -m pytest src/test_sejm_api_contract.py src/test_sejm_api_2011_2022_contract.py — 16 passed on the rebased tree (after the digest pin refresh).
refs/pr/18 ref