nkjp1m: relabel CC BY 4.0 per the NKJP Consortium, add agreed attribution file

#51
by ppuzio - opened
Fabryka AI org
•
edited 4 days ago

What changes

nkjp1m rows are relabelled from CC-BY to CC-BY-4.0, which matches the sources.py entry, and author becomes NKJP Consortium (IPI PAN, IJP PAN, PWN, University of Łódź). The text is unchanged: the parquet was rebuilt from the same tarball, and only the license and author columns differ from v0.2.5. It has 18,381 documents, 6,824,905 characters and 2,601,201 tokens. A new ATTRIBUTION.md has been agreed with the consortium.

Why

On 2026-10-05, IPI PAN (Maciej Ogrodniczuk, for the NKJP Consortium) answered our question by email:

  • CC BY covers both the texts and the corpus annotations.
  • Agreements were signed with the publishers or authors of every text, spoken texts included.
  • The texts may be distributed without the annotations.

The download page states only "CC-BY", so the version was undocumented in v0.2.5. The first email's template named CC BY 3.0 Polska, but another company had written that template for its own model. In a second reply the same day, the consortium accepted our attribution text and pointed to nkjp.pl, which states CC-BY 4.0 for the subcorpus.

How

  • src/fetch_njkp.py: sets LICENSE, LICENSE_URL and AUTHOR.
  • src/sources.py: the traceable text cites both emails, the nkjp.pl page and ATTRIBUTION.md.
  • data/nkjp1m/ATTRIBUTION.md (new): the attribution text, in Polish and English, agreed by the consortium. It adapts their template, which was written for a model trained on the corpus, to redistribution of the text. It names the corpus and version (1.2), the consortium members and CC BY 4.0 with its URL. It lists our changes: text only, without annotations; one document per <div>; ellipsis marks removed; passages under 200 characters, under 0.5% Polish diacritics, or duplicated left out. It also says the consortium does not endorse the dataset. The text they approved named 3.0 Polska; we changed the licence line to 4.0, as their reply suggested.
  • data/nkjp1m/nkjp1m.license-evidence.json (new): the licensor's statements and reply, the Message-ID and sha256 of both emails, the nkjp.pl page (with the sha256 of its HTML), the chain of rights, the tarball sha256 and what was not checked.
  • nkjp1m.md: licensing, attribution, provenance and "Not checked" sections.
  • src/test_nkjp1m_contract.py (new): checks the schema and counts, that the licence and author agree across the parquet, stats, sources.py and the evidence file, and that both language versions of ATTRIBUTION.md carry the URL, licence name, version and consortium members.
  • artifacts/source_findings.md: appended entry.
  • Card (make_docs.py, README.md): at the consortium's request, "PPC" in the disclaimer now links to https://clip.ipipan.waw.pl/PPC. README.md gets the same one-line edit, so the card changes on merge without a full regeneration.

pytest src/: 281 passed.

Not in this PR

  • added is 2026-07-17 in the parquet and 2026-06-15 in sources.py. This was already the case in v0.2.5, and the parquet value is kept so the data matches v0.2.5.

Sample (python3 src/render_sample.py data/nkjp1m/nkjp1m.parquet -n 3)

id: nkjp1m_711-3-010000037_4
source: nkjp1m
added: 2026-07-17
created: 
token_count: 109
license: CC-BY-4.0
author: NKJP Consortium (IPI PAN, IJP PAN, PWN, University of Łódź)

– no co cię cieszy ? na przykład co ?
– Kuba najcudowniejsza chwila dnia
– a wiesz że posłucham
– no. budzę się rano
– tak
– idę tam gdzie on śpi. on otwiera oczy i się śmieje. no przede wszystkim wyraźnie jest niedoinformowany bo on cały czas się śmieje. o wielu rzeczach widać nie wie
id: nkjp1m_120-2-000009_146
source: nkjp1m
added: 2026-07-17
created: 
token_count: 137
license: CC-BY-4.0
author: NKJP Consortium (IPI PAN, IJP PAN, PWN, University of Łódź)

Jeśli wpłacamy raty na budowę mieszkania albo domu, ryzyka zamrożenia albo wręcz utraty pieniędzy nie da się wykluczyć. Można je jednak ograniczyć wybierając inwestora, który ma certyfikat dewelopera (firmy informują o tym w swoich reklamach). Eksperci, którzy przyznają certyfikaty, badają sytuację finansową inwestora, tempo wzrostu sprzedaży, jakość postawionych budynków.
id: nkjp1m_200-4-000000204_4
source: nkjp1m
added: 2026-07-17
created: 
token_count: 158
license: CC-BY-4.0
author: NKJP Consortium (IPI PAN, IJP PAN, PWN, University of Łódź)

Każdy z nas dźwiga na plecach jakiś krzyż. Dla Stasysa Eidrigeviciusa jest nim sztuka, która przesłania mu świat, jak pędzle przesłaniały mu oczy tam na wernisażu. Każdy z nas wytycza jakąś indywidualną drogę życia. Kiedy jako dziecko codziennie szedł wiele kilometrów do szkoły w Poniewieżu, droga ułożona była z bierwion. W Krakowie symbolizowały je deski. Stasys zawsze czerpie ze wspomnień dzieciństwa.

🤖 Generated with Claude Code

ppuzio changed pull request title from nkjp1m: relabel CC BY 3.0 PL per the NKJP Consortium, add attribution file to nkjp1m: relabel CC BY 4.0 per the NKJP Consortium, add agreed attribution file
ppuzio changed pull request status to open
ppuzio changed pull request status to merged
ppuzio deleted the refs/pr/51 ref

Sign up or log in to comment