Datasets:
wikipedia: rebuild from the official plwiki dump, CC BY-SA 3.0/4.0 per page (v0.2.6)
What and why
Rebuilds wikipedia from the official Wikimedia dump instead of the SpeakLeash plwiki snapshot, and labels each row CC BY-SA 3.0 or 4.0 by its page's last revision. v0.2.0-v0.2.5 labelled every row CC-BY-SA-3.0. Decision of 2026-10-05 on slayerlabs/polish-dynaword-v2#69 (October 2026 rights audit: artifacts/rights_audit_2026-10/reports/wikis_ugc.md L44-46, reports/citations.md L17).
Second commit (ca8d210), per the rule "keep a source clean, or drop what can't be cleared": drops the two pages the copyright sample found copied (COPIED_PAGES, keyed on the wiki page id) and pages whose {{ek}} speedy-deletion notice gives a copyright reason. Rebuilt from the same dump; only those two rows differ.
Before → after
| v0.2.5 | this PR | |
|---|---|---|
| documents | 1,171,897 | 1,468,654 |
| characters | 1,844,707,761 | 3,140,838,409 |
| tokens (cl100k proxy) | 707,194,207 | 1,226,912,191 |
CC-BY-SA-3.0 rows |
1,171,897 | 190,836 (81,022,938 tokens, 6.6%) |
CC-BY-SA-4.0 rows |
0 | 1,277,818 (1,145,889,253 tokens, 93.4%) |
The first commit (3393e05) had 1,468,656 documents and 1,226,913,508 tokens; ca8d210 removes 2 documents, 3,438 characters and 1,317 tokens.
Row ids are now wikipedia_<page id> (e.g. "Bitwa pod Grunwaldem": wikipedia_25295 → wikipedia_716). More documents, and longer text per page: the SpeakLeash text drops appendix sections and, on the page compared, lists ("Bitwa pod Grunwaldem": 37,234 → 59,133 characters).
Rules, counts, hand-checks
Dump plwiki-20260901-pages-articles, 7 shards, each sha1 matched to dumpstatus.json and sha1sums.txt (wikipedia.build.json). src/fetch_wikipedia.py:
| rule | count | hand-check |
|---|---|---|
| pages scanned | 2,877,278 | |
| not namespace 0 | 572,853 | |
| redirects | 598,071 | |
{{NPA}} / {{Copyvio}} / {{Plagiat}} in the page |
35 dropped | the 31 unchanged since the dump re-read on pl.wikipedia: all carry the notice (some mark one section; the whole page is dropped). 4 edited since were not re-read |
{{ek}} (and redirects {{EK}}, {{Ekspresowe kasowanko}}, {{Usuń}}, {{Speedy}}, {{Delete}}) with a copyright reason (npa, plagiat, copypaste, kopiuj-wklej, copyvio, "praw… autorsk…") |
0 dropped | the dump has 0 live {{ek}} notices on articles, so no reasons to count and none to hand-check. A looser text scan of all 7 shards found 3, all inside <!-- --> comments (not shown, not counted): Pożar Londynu (1666) (powód=redir), Tabela wszech czasów w konkursie Miss Supranational (content moved), Dangdang (no reason) |
| empty / parser failures | 0 / 0 | |
| exact duplicates of stripped text (lower page id kept) | 382 | 6 sampled: all real duplicates (empty conversions of year/formula pages, table skeletons of tournament pages) |
COPIED_PAGES (page id, reason per entry; the build fails if one is not reached) |
2 dropped | 833396 "Obnażyć prawdę", 1126780 "Czarnka" (see the sample below) |
build_dynaword.py < 200 chars |
231,717 | 8 sampled: all short stubs or disambiguations |
build_dynaword.py non-Polish (diacritic ratio) |
5,564 | 8 sampled: all Polish list/table pages heavy with foreign names; existing shared filter, not changed here |
| cross-source exact dedup | 0 |
Label rule license_for_revision: last revision before 2023-06-07T00:00:00Z → CC-BY-SA-3.0, at or after → CC-BY-SA-4.0; a missing or zone-less timestamp stops the build. Tested at the cutoff second, across time zones and on a missing timestamp; test_every_row_label_follows_its_last_revision rechecks all 1,468,654 rows against the sidecar. 184 pages were last edited on 2023-06-07 itself: midnight puts them under 4.0. The audit suggested 06-08 "if time of day unknown"; that would put that day's 4.0 edits under 3.0, which 4.0 §3(b)(1) does not allow. Neither is exact without the switch time.
Copyright-paste sample: 40 released pages per label (seed 20261006), Earwig's Copyvio Detector on the dumped revision, every hit from confidence 0.10 or "possible"/"suspected" read by hand against the page history and the source's date:
| result | 3.0 | 4.0 |
|---|---|---|
| below 0.10, not read | 37 | 33 |
| later copy of Wikipedia | 2 | 4 |
| shared title / stock phrase only | 0 | 2 |
| copied or closely paraphrased from a copyrighted source | 1 | 1 |
95% Wilson upper bound 12.9% per label. The two pages, wikipedia_833396 "Obnażyć prawdę" (Filmweb's official description, paraphrased in 2008) and wikipedia_1126780 "Czarnka" (Drawieński Park Narodowy lake text, archived 2012, paraphrased in 2015), are dropped in ca8d210: "Obnażyć prawdę" excluded; "Czarnka" held for review, since whether the park's text is free under Art. 4 of the Polish copyright act is not assessed. The sample's population stays the 3393e05 build it was drawn from; wikipedia.license-evidence.json records the two dropped ids. Per page: wikipedia.copyvio-sample.jsonl.
Provenance and licence
- Contributors' text: Wikimedia Terms of Use oldid 554823 (CC BY-SA 4.0 and GFDL, in effect June 7, 2023; sha256
c96ef93b…) and oldid 98524 (CC BY-SA 3.0, June 16, 2014); CC BY-SA 3.0 §4(b) and 4.0 §3(b)(1) legal code; pl.wikipediarightsinfoBY-SA 4.0. Read 2026-10-05. A page edited after the switch carries its earlier 3.0 text under 4.0 via 3.0 §4(b)(ii) (inferred, not a lawyer's opinion). - Attribution:
author=Wikipedia contributors, <page URL>;wikipedia.attribution.jsonl(LFS) has id, pageid, revid, title, url, last_revision_at, license per row. - SpeakLeash intermediary removed;
src/sources.pyprovenance, licence, traceable text and upstream updated;releasestays 0.2.0. - Not checked: GFDL-era text (every released page was last edited in 2010 or later, but may hold older text), imported text under other licences, deletion discussions and maintenance notices other than
{{NPA}}and{{ek}}, quotations, the time of the switch. Appendix headings remain in 56.4% of documents (2.96% of characters) and whitespace-only lines in 11.9%; disambiguation pages are kept.
Dedup (reported, not fixed)
Exact-text overlap (SHA-256 of raw text) with NKJP1M (main and v0.2.5) and HPLT v0.2.5: 0 documents (v0.2.5: NKJP1M–Wikipedia 1, HPLT–Wikipedia 6). Near duplicates not measured. plwiki_talk (and other) overlap_audit.json compare literal ids against the old data/wikipedia and are stale after the id change.
Rebuild diff (3393e05 → ca8d210)
Same dump, same shards. Parquet: 1,468,656 → 1,468,654 rows; removed wikipedia_833396 and wikipedia_1126780; none added; no other row's columns changed. Attribution sidecar: the same two lines removed, none added or changed. Row order differs between builds (build_dynaword.py uses imap_unordered); content per id is identical. wikipedia.build.json: extract counts, exact_duplicate_pageids and copyvio_tagged unchanged.
Tests
$PY -m pytest -q on main 3bab9f9 (this PR's base): 24 failed, 258 passed, 7 errors. With this PR: 24 failed, 313 passed, 7 errors. The failing/erroring set is identical (LFS pointer parquets of other sources in the worktree); the 55 new tests in src/test_wikipedia_contract.py pass.
python3 src/render_sample.py data/wikipedia/wikipedia.parquet -n 3
id: wikipedia_241636
source: wikipedia
added: 2026-07-19
created: 2026-08-07
token_count: 165
license: CC-BY-SA-4.0
author: Wikipedia contributors, https://pl.wikipedia.org/wiki/Montliot-et-Courcelles
Montliot-et-Courcelles – miejscowość i gmina we Francji, w regionie Burgundia-Franche-Comté, w departamencie Côte-d’Or. Przez miejscowość przepływa Sekwana.
Według danych na rok 1990 gminę zamieszkiwało 288 osób, a gęstość zaludnienia wynosiła 33 osoby/km² (wśród 2044 gmin Burgundii Montliot-et-Courcelles plasuje się na 625. miejscu pod względem liczby ludności, natomiast pod względem powierzchni na miejscu 999.).
Przypisy
Bibliografia
id: wikipedia_2640084
source: wikipedia
added: 2026-07-19
created: 2023-05-20
token_count: 109
license: CC-BY-SA-3.0
author: Wikipedia contributors, https://pl.wikipedia.org/wiki/Podhrad%C3%AD_%28kraj_zli%C5%84ski%29
Podhradí – gmina w Czechach, w powiecie Zlín, w kraju zlińskim. Według danych z dnia 1 stycznia 2012 liczyła 196 mieszkańców.
W pobliżu miejscowości Podhradí (czyli podgrodzie) znajdują się ruiny średniowiecznego zamku Starý Světlov.
Zobacz też:
Podhradí
Przypisy
id: wikipedia_2948074
source: wikipedia
added: 2026-07-19
created: 2022-07-16
token_count: 119
license: CC-BY-SA-3.0
author: Wikipedia contributors, https://pl.wikipedia.org/wiki/Radio._Miesi%C4%99cznik_dla_technik%C3%B3w_i_amator%C3%B3w
Radio. Miesięcznik dla techników i amatorów – polskie czasopismo o tematyce radiotechnicznej, wydawane od marca 1946 r. do grudnia 1950 r. przez Biuro Wydawnictw Polskiego Radia. Od roku 1951 pismo zostało połączone z miesięcznikiem "Radioamator.".
Zobacz też
Radioamator (czasopismo)
Radioamator i Krótkofalowiec
Przypisy
🤖 Generated with Claude Code
refs/pr/68 ref