ppuzio commited on
Commit
92b36dc
·
1 Parent(s): 17171a3

Withdraw wikisource: one CC BY-SA label over mixed per-page licences (#60)

Browse files

- Withdraw wikisource: one CC BY-SA label over mixed per-page licences (b81c1327875578d9a774491d1ce5e6e1c34830f9)

CHANGELOG.md CHANGED
@@ -60,6 +60,17 @@ Removed from main:
60
  right. As with HPLT, the registry keeps its `release: "0.2.0"` entry (with a
61
  `legal_note`) and `make_docs.py` skips it; `plwikiquote` was dropped from
62
  `src/fetch_wikimedia.py`. The v0.2.0-v0.2.5 tags still contain it.
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  Changed on main:
65
 
@@ -74,9 +85,9 @@ Changed on main:
74
  in v0.2.5 → 1,818 / 207,181 on main.
75
  - `nkjp1m` is relabelled `CC-BY-4.0` per the NKJP Consortium, with an agreed
76
  `ATTRIBUTION.md` (Hub PR #51); documents and text unchanged.
77
- - The 18 v0.2.5 sources still on main total 2,725,031 documents /
78
- 7,078,287,856 tokens; all 33 sources on main total 4,010,443 documents /
79
- 8,335,077,871 tokens.
80
 
81
  Tooling and process:
82
 
 
60
  right. As with HPLT, the registry keeps its `release: "0.2.0"` entry (with a
61
  `legal_note`) and `make_docs.py` skips it; `plwikiquote` was dropped from
62
  `src/fetch_wikimedia.py`. The v0.2.0-v0.2.5 tags still contain it.
63
+ - `wikisource` (632,005 documents / 801,947,427 tokens in v0.2.0-v0.2.5) was
64
+ removed on 2026-10-05. Every row carries one CC-BY-SA-3.0 label, but the
65
+ October rights audit found in-copyright post-war imprints among 12 checked
66
+ rows, each released by its rights holder under its own per-page licence (CC
67
+ BY 3.0 PL, CC BY-SA 3.0 PL, CC BY-SA 3.0, GFDL, CC BY 4.0) and needing
68
+ attribution the rows lack. The data came through SpeakLeash with an
69
+ undocumented selection and no title, author or page id, so it cannot be
70
+ screened. The registry keeps its `release: "0.2.0"` entry with a
71
+ `legal_note`, and its `traceable` text no longer claims every text is public
72
+ domain. A rebuild from the official dump with per-page licences is planned
73
+ for a later release. The v0.2.0-v0.2.5 tags still contain it.
74
 
75
  Changed on main:
76
 
 
85
  in v0.2.5 → 1,818 / 207,181 on main.
86
  - `nkjp1m` is relabelled `CC-BY-4.0` per the NKJP Consortium, with an agreed
87
  `ATTRIBUTION.md` (Hub PR #51); documents and text unchanged.
88
+ - The 17 v0.2.5 sources still on main total 2,093,026 documents /
89
+ 6,276,340,429 tokens; all 32 sources on main total 3,378,438 documents /
90
+ 7,533,130,444 tokens.
91
 
92
  Tooling and process:
93
 
README.md CHANGED
@@ -23,9 +23,9 @@ family (Enevoldsen et al., [arXiv:2508.02271](https://arxiv.org/abs/2508.02271))
23
  > (tiktoken proxy; canonical Llama-3 count at release) · 20 sources
24
  > Updated: **2026-08-14**
25
 
26
- > **main, not a release (2026-10-05)** · 33 sources · 4,010,443 documents ·
27
- > **8.34B tokens**: 18 of the 20 v0.2.5 sources (`european_hplt_v3_pl` and
28
- > `wikiquote` withdrawn)
29
  > plus the 15 sources [planned for v0.2.6](#v026-dev-planned-sources-on-main-not-yet-released). Cite
30
  > the `v0.2.5` tag, not main.
31
 
@@ -191,7 +191,7 @@ files is not listed as a data contribution.
191
  | european_hplt_v3_pl *(withdrawn from main after v0.2.5, licence under review)* | HPLT v3.0 Polish (web, top WDS bins 10-5) | `CC0-1.0` | 1,603,974 | 2,555.5M |
192
  | [eurlex](data/eurlex/eurlex.md) | EUR-Lex (EU legal acts, Polish) | `CC-BY-4.0` | 243,060 | 2,378.1M |
193
  | [parliamentary](data/parliamentary/parliamentary.md) | Polish Parliamentary Corpus (Sejm/Senat) | `public-domain (official documents)` | 324,622 | 1,646.8M |
194
- | [wikisource](data/wikisource/wikisource.md) | Polish Wikisource | `CC-BY-SA-3.0` | 632,005 | 801.9M |
195
  | [wikipedia](data/wikipedia/wikipedia.md) | Polish Wikipedia | `CC-BY-SA-3.0` | 1,171,897 | 707.2M |
196
  | [biblioteka_nauki](data/biblioteka_nauki/biblioteka_nauki.md) | Biblioteka Nauki | `per-record upstream license` | 42,071 | 673.5M |
197
  | [dziennik_ustaw](data/dziennik_ustaw/dziennik_ustaw.md) | Dziennik Ustaw + Monitor Polski (Polish primary legislation) | `public-domain (official documents)` | 35,442 | 486.1M |
@@ -227,8 +227,11 @@ Main has changed since:
227
  agreed attribution file; its text is unchanged ([PR #51](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/51)).
228
  - `wikiquote` was removed from main: most of its pages quote works still in
229
  copyright, and its CC BY-SA label covers only the contributors' selection.
 
 
 
230
 
231
- The 18 v0.2.5 sources still on main total 2,725,031 documents / 7,078.3M tokens.
232
 
233
  ## v0.2.6-dev: planned sources (on main, not yet released)
234
  The planned content of v0.2.6. Built and documented, but **not** part of v0.2.5 and excluded from every total
@@ -323,7 +326,7 @@ This corpus contains **only** text that its upstream sources already published
323
  under open licenses or as official public-domain record. It therefore includes
324
  names and statements of **public figures acting in a public capacity** — e.g.
325
  parliamentary speakers (from [PPC](https://clip.ipipan.waw.pl/PPC), the Polish Parliamentary Corpus, and the Sejm API), authorities named in legal acts (EUR-Lex), and
326
- people described in encyclopedic articles (Wikipedia/Wikisource). No private,
327
  non-public personal data was collected or added. If you are a data subject and
328
  want content concerning you removed, contact **k.wikiel@gmail.com** — it will be dropped
329
  from the next version (see retroactive-removal policy below).
@@ -349,7 +352,7 @@ from the next version (see retroactive-removal policy below).
349
 
350
  ## License & attribution
351
  Released under **CC-BY-SA-4.0** (copyleft inherited from CC-BY-SA sources such as
352
- Wikipedia/Wikisource/Wolne Lektury). Attribution due to each upstream (see datasheets)
353
  and to **SpeakLeash** as the intermediate aggregator. Retroactive-removal policy: a
354
  source that raises an objection is dropped from subsequent versions, recorded in the
355
  CHANGELOG.
 
23
  > (tiktoken proxy; canonical Llama-3 count at release) · 20 sources
24
  > Updated: **2026-08-14**
25
 
26
+ > **main, not a release (2026-10-05)** · 32 sources · 3,378,438 documents ·
27
+ > **7.53B tokens**: 17 of the 20 v0.2.5 sources (`european_hplt_v3_pl`,
28
+ > `wikiquote` and `wikisource` withdrawn)
29
  > plus the 15 sources [planned for v0.2.6](#v026-dev-planned-sources-on-main-not-yet-released). Cite
30
  > the `v0.2.5` tag, not main.
31
 
 
191
  | european_hplt_v3_pl *(withdrawn from main after v0.2.5, licence under review)* | HPLT v3.0 Polish (web, top WDS bins 10-5) | `CC0-1.0` | 1,603,974 | 2,555.5M |
192
  | [eurlex](data/eurlex/eurlex.md) | EUR-Lex (EU legal acts, Polish) | `CC-BY-4.0` | 243,060 | 2,378.1M |
193
  | [parliamentary](data/parliamentary/parliamentary.md) | Polish Parliamentary Corpus (Sejm/Senat) | `public-domain (official documents)` | 324,622 | 1,646.8M |
194
+ | wikisource *(withdrawn from main after v0.2.5, mixed per-page licences; rebuild planned)* | Polish Wikisource | `CC-BY-SA-3.0` | 632,005 | 801.9M |
195
  | [wikipedia](data/wikipedia/wikipedia.md) | Polish Wikipedia | `CC-BY-SA-3.0` | 1,171,897 | 707.2M |
196
  | [biblioteka_nauki](data/biblioteka_nauki/biblioteka_nauki.md) | Biblioteka Nauki | `per-record upstream license` | 42,071 | 673.5M |
197
  | [dziennik_ustaw](data/dziennik_ustaw/dziennik_ustaw.md) | Dziennik Ustaw + Monitor Polski (Polish primary legislation) | `public-domain (official documents)` | 35,442 | 486.1M |
 
227
  agreed attribution file; its text is unchanged ([PR #51](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/51)).
228
  - `wikiquote` was removed from main: most of its pages quote works still in
229
  copyright, and its CC BY-SA label covers only the contributors' selection.
230
+ - `wikisource` was removed from main: its single CC BY-SA 3.0 label also covers
231
+ in-copyright post-war imprints that carry their own per-page licences. A
232
+ rebuild from the official dump is planned for a later release.
233
 
234
+ The 17 v0.2.5 sources still on main total 2,093,026 documents / 6,276.3M tokens.
235
 
236
  ## v0.2.6-dev: planned sources (on main, not yet released)
237
  The planned content of v0.2.6. Built and documented, but **not** part of v0.2.5 and excluded from every total
 
326
  under open licenses or as official public-domain record. It therefore includes
327
  names and statements of **public figures acting in a public capacity** — e.g.
328
  parliamentary speakers (from [PPC](https://clip.ipipan.waw.pl/PPC), the Polish Parliamentary Corpus, and the Sejm API), authorities named in legal acts (EUR-Lex), and
329
+ people described in encyclopedic articles (Wikipedia). No private,
330
  non-public personal data was collected or added. If you are a data subject and
331
  want content concerning you removed, contact **k.wikiel@gmail.com** — it will be dropped
332
  from the next version (see retroactive-removal policy below).
 
352
 
353
  ## License & attribution
354
  Released under **CC-BY-SA-4.0** (copyleft inherited from CC-BY-SA sources such as
355
+ Wikipedia and Wolne Lektury). Attribution due to each upstream (see datasheets)
356
  and to **SpeakLeash** as the intermediate aggregator. Retroactive-removal policy: a
357
  source that raises an objection is dropped from subsequent versions, recorded in the
358
  CHANGELOG.
artifacts/source_findings.md CHANGED
@@ -1228,3 +1228,35 @@ L11; `reports/citations/wikimedia.md` section 3 (Q1-Q14); sample in
1228
 
1229
  **Lesson** — a project licence covers what the project's contributors wrote. On a
1230
  quotation site that is the framing, not the quoted text.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1228
 
1229
  **Lesson** — a project licence covers what the project's contributors wrote. On a
1230
  quotation site that is the framing, not the quoted text.
1231
+
1232
+ ## wikisource — withdrawn (2026-10-05)
1233
+
1234
+ **Verdict** — `removed`, whole source, from main and from v0.2.6; a rebuild for a later
1235
+ release is tracked separately (polish-dynaword-v2 #68). Released in v0.2.0 and in every
1236
+ tag through v0.2.5, which stay as published. 632,005 documents / 801,947,427 tokens
1237
+ dropped. As with HPLT, the registry keeps its `release: "0.2.0"` entry with a
1238
+ `legal_note`. Its `traceable` text no longer claims every text is public domain, and
1239
+ its `upstream` is now pl.wikisource.org rather than the dumps it never came from.
1240
+ `count_vocab.py` and `sample_quality.py` no longer list it. There was no fetch script
1241
+ to remove: the data was a SpeakLeash pull.
1242
+
1243
+ **Reason** — all rows carry one `CC-BY-SA-3.0` label, and the card said the underlying
1244
+ texts are public-domain works. Wikisource's own guidance says "mostly" (W1).
1245
+ - Among the 12 audited rows, several are in-copyright post-war imprints that their
1246
+ rights holders released through consent programmes or OTRS, each page under its own
1247
+ licence template: PIW 1971 and 1972, Czytelnik 1962 and 1966, WL 1974, a 1995 sailing
1248
+ manual, 1990-91 regional press (W11-W21). The templates differ (CC BY 3.0 PL,
1249
+ CC BY-SA 3.0 PL, CC BY-SA 3.0, GFDL, CC BY 4.0), so no single relabel fixes them (W17).
1250
+ - One row carries a translator's footnote for a translation still protected until 2045;
1251
+ the row-to-page mapping is inferred (W8-W10).
1252
+ - The rows keep neither the consent, the licence version nor an author (W22). The
1253
+ SpeakLeash selection is undocumented and rows have no title or page id, so the rows
1254
+ cannot be screened afterwards. The audit's crude filter (372 rows, 1.7%) was not
1255
+ reproduced; the in-copyright share is unknown (W23).
1256
+
1257
+ References: `rights_audit_2026-10/reports/citations.md` L10;
1258
+ `reports/citations/wikimedia.md` section 2 (W1-W23); `REVIEW.html` (wikisource block).
1259
+
1260
+ **Lesson** — a project-wide label on an aggregator pull hides per-page licences. Pull
1261
+ from the official dump with page ids and licence templates, so each page can be
1262
+ screened and labelled.
data/wikisource/wikisource.md DELETED
@@ -1,43 +0,0 @@
1
- # wikisource
2
-
3
- Polish Wikisource
4
-
5
- ## Dataset description
6
- - **Source (upstream):** https://dumps.wikimedia.org/plwikisource/latest/
7
- - **Domain:** books/source-texts
8
- - **Language:** Polish (pl)
9
- - **License:** `CC-BY-SA-3.0`
10
- - **Created (range):** 2005-01-01, 2026-06-14
11
- - **Added:** 2026-07-02
12
-
13
- ## Licensing — traceable basis
14
- Wikimedia dumps under CC-BY-SA 3.0; underlying texts are public-domain works transcribed by the community.
15
-
16
- ## Provenance
17
- Pulled from SpeakLeash's public redistribution (`speakleash-ds-pub`, key `plwikisource`) of the upstream source above. SpeakLeash credited as intermediate aggregator; upstream license/attribution preserved.
18
-
19
- ## Statistics
20
- | documents | characters | tokens (tiktoken proxy) |
21
- |---:|---:|---:|
22
- | 632,005 | 1,974,249,746 | 801,947,427 |
23
-
24
-
25
- ## Per-document license metadata
26
- | license | documents |
27
- |---|---:|
28
- | `CC-BY-SA-3.0` | 632,005 |
29
-
30
- Author metadata present for **0** documents. Empty values mean the upstream record did not expose a machine-readable author field.
31
-
32
- Statistics were recomputed directly from the released parquet file.
33
-
34
- ## Filters applied (build_dynaword.py)
35
- Minimal, per Dynaword guidelines (heavy filtering left to downstream use):
36
- - drop documents < 200 chars: **0**
37
- - drop non-Polish (diacritic ratio): **0**
38
- - exact cross-source dedup (sha1): **0**
39
- - OCR alpha-ratio < 0.70 (OCR sources only): **0**
40
- - read 632,005 → kept 632,005
41
-
42
- Token counts are a fast tiktoken (cl100k) proxy (~1% off Llama-3); the canonical
43
- Llama-3 count is computed at release.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/wikisource/wikisource.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1d5a01e35a59a7388bd979c6744b5092fbf446cd0052faec9610d07e04228615
3
- size 983059726
 
 
 
 
data/wikisource/wikisource.stats.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "read": 632005,
3
- "kept": 632005,
4
- "drop_short": 0,
5
- "drop_lang": 0,
6
- "drop_dup": 0,
7
- "drop_ocr": 0,
8
- "chars": 1974249746,
9
- "tokens": 801947427,
10
- "licenses": {
11
- "CC-BY-SA-3.0": 632005
12
- },
13
- "authors_with_value": 0,
14
- "license": "CC-BY-SA-3.0",
15
- "stats_recomputed_from_parquet": true
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/count_vocab.py CHANGED
@@ -6,7 +6,7 @@ ponytail: lowercased surface forms (Polish is heavily inflected, so this is
6
  import re
7
  import pyarrow.parquet as pq
8
 
9
- SOURCES = ["eurlex", "parliamentary", "wikisource", "wikipedia",
10
  "dziennik_ustaw", "wolne_lektury"]
11
  WORD = re.compile(r"[^\W\d_]+", re.UNICODE) # unicode letters, no digits/punct
12
 
 
6
  import re
7
  import pyarrow.parquet as pq
8
 
9
+ SOURCES = ["eurlex", "parliamentary", "wikipedia",
10
  "dziennik_ustaw", "wolne_lektury"]
11
  WORD = re.compile(r"[^\W\d_]+", re.UNICODE) # unicode letters, no digits/punct
12
 
src/make_docs.py CHANGED
@@ -26,7 +26,7 @@ This corpus contains **only** text that its upstream sources already published
26
  under open licenses or as official public-domain record. It therefore includes
27
  names and statements of **public figures acting in a public capacity** — e.g.
28
  parliamentary speakers (from [PPC](https://clip.ipipan.waw.pl/PPC), the Polish Parliamentary Corpus, and the Sejm API), authorities named in legal acts (EUR-Lex), and
29
- people described in encyclopedic articles (Wikipedia/Wikisource). No private,
30
  non-public personal data was collected or added. If you are a data subject and
31
  want content concerning you removed, contact **{CONTACT}** — it will be dropped
32
  from the next version (see retroactive-removal policy below).
@@ -465,7 +465,7 @@ Sources we reviewed and **deliberately left out** — part of the curation:
465
  {DISCLAIMER}
466
  ## License & attribution
467
  Released under **CC-BY-SA-4.0** (copyleft inherited from CC-BY-SA sources such as
468
- Wikipedia/Wikisource/Wolne Lektury). Attribution due to each upstream (see datasheets)
469
  and to **SpeakLeash** as the intermediate aggregator. Retroactive-removal policy: a
470
  source that raises an objection is dropped from subsequent versions, recorded in the
471
  CHANGELOG.
 
26
  under open licenses or as official public-domain record. It therefore includes
27
  names and statements of **public figures acting in a public capacity** — e.g.
28
  parliamentary speakers (from [PPC](https://clip.ipipan.waw.pl/PPC), the Polish Parliamentary Corpus, and the Sejm API), authorities named in legal acts (EUR-Lex), and
29
+ people described in encyclopedic articles (Wikipedia). No private,
30
  non-public personal data was collected or added. If you are a data subject and
31
  want content concerning you removed, contact **{CONTACT}** — it will be dropped
32
  from the next version (see retroactive-removal policy below).
 
465
  {DISCLAIMER}
466
  ## License & attribution
467
  Released under **CC-BY-SA-4.0** (copyleft inherited from CC-BY-SA sources such as
468
+ Wikipedia and Wolne Lektury). Attribution due to each upstream (see datasheets)
469
  and to **SpeakLeash** as the intermediate aggregator. Retroactive-removal policy: a
470
  source that raises an objection is dropped from subsequent versions, recorded in the
471
  CHANGELOG.
src/sample_quality.py CHANGED
@@ -6,7 +6,7 @@ metrics look ambiguous and you need semantic quality, not just surface garble.
6
  import sys, re, random
7
  import pyarrow.parquet as pq
8
 
9
- SOURCES = ["eurlex", "parliamentary", "wikisource", "wikipedia",
10
  "dziennik_ustaw", "wolne_lektury"]
11
  N = int(sys.argv[1]) if len(sys.argv) > 1 else 200 # docs sampled per source
12
  SHOW = 2 # raw samples printed per source
 
6
  import sys, re, random
7
  import pyarrow.parquet as pq
8
 
9
+ SOURCES = ["eurlex", "parliamentary", "wikipedia",
10
  "dziennik_ustaw", "wolne_lektury"]
11
  N = int(sys.argv[1]) if len(sys.argv) > 1 else 200 # docs sampled per source
12
  SHOW = 2 # raw samples printed per source
src/sources.py CHANGED
@@ -132,12 +132,24 @@ SOURCES = {
132
  "pretty": "Polish Wikisource",
133
  "license": "CC-BY-SA-3.0",
134
  "license_spdx": "CC-BY-SA-3.0",
135
- "traceable": "Wikimedia dumps under CC-BY-SA 3.0; underlying texts are "
136
- "public-domain works transcribed by the community.",
137
- "upstream": "https://dumps.wikimedia.org/plwikisource/latest/",
 
 
 
 
138
  "domain": "books/source-texts",
139
  "created": "2005-01-01, 2026-06-14",
140
  "is_ocr": False,
 
 
 
 
 
 
 
 
141
  },
142
  "wiktionary_examples": {
143
  "added": "2026-07-19",
 
132
  "pretty": "Polish Wikisource",
133
  "license": "CC-BY-SA-3.0",
134
  "license_spdx": "CC-BY-SA-3.0",
135
+ "traceable": "Pulled through SpeakLeash (plwikisource), not from the Wikimedia "
136
+ "dumps; the selection is undocumented and rows have no title, "
137
+ "author or page id. Wikisource texts are mostly, not all, public "
138
+ "domain: consented post-war imprints carry their own per-page "
139
+ "licences (CC BY 3.0 PL, CC BY-SA 3.0 PL, CC BY-SA 3.0, GFDL, "
140
+ "CC BY 4.0).",
141
+ "upstream": "https://pl.wikisource.org/",
142
  "domain": "books/source-texts",
143
  "created": "2005-01-01, 2026-06-14",
144
  "is_ocr": False,
145
+ "legal_note": "Withdrawn from main on 2026-10-05; not in v0.2.6. Every row carries "
146
+ "one CC-BY-SA-3.0 label, but the October rights audit found "
147
+ "in-copyright post-war imprints among 12 checked rows, released by "
148
+ "their rights holders under per-page licences that differ from the "
149
+ "label and need attribution the rows lack. The rows cannot be "
150
+ "screened. A rebuild from the official dump with per-page licences "
151
+ "is planned for a later release. The v0.2.0-v0.2.5 tags still "
152
+ "contain it.",
153
  },
154
  "wiktionary_examples": {
155
  "added": "2026-07-19",