plwiki_user_talk: drop file-link residue (v2#116), label by contribution date (v2#110)

#136
by ppuzio - opened
Fabryka AI org

Cleans the plwiki_user_talk text (v2#116, option A, with category lines kept) and relabels it by contribution date (v2#110, option B). Data only: the code and the findings section are in #135, so merge this after it or with it.

Labels per record (380,295 documents, 381,015,336 tokens; was 380,527 / 381,445,111)

label documents tokens share
CC-BY-SA-3.0 276,541 199,375,207 52.3%
CC-BY-SA-3.0 AND CC-BY-SA-4.0 22,558 137,720,964 36.1%
CC-BY-SA-4.0 81,196 43,919,165 11.5%

Before (by last revision): 3.0 243,773 / 4.0 136,754. The 243,737 3.0 rows still released stay 3.0. Of the 136,558 4.0 rows still released, 32,804 are now 3.0 (39,073,338 tokens), 22,558 both and 81,196 stay 4.0. Basis per row: the same stub dump as #135, plus 54,956 pre-cutoff revisions converted with the talk builders' own steps and compared word by word with the shipped text. 228 pages edited after the cutoff are no longer in the dump and are labelled both; 1 pre-cutoff text is hidden (both); 437 pages deleted after a last edit before the cutoff stay 3.0.

Cleanup (v2#116): clean_plwiki_talk.py retext changed 27,221 rows. With the dropped rows, 1,002,350 characters and 429,775 tokens went. 232 records fell under 500 characters and were dropped (too_little_text_after_residue_cleanup): 36 labelled 3.0 on main and 196 4.0, all 500–557 characters before. 171 of them hold little more than the pending-changes notice, which lost its 32px|. No cleaned row repeats another. 693 rows keep that notice as left32px|rightWprowadzone przez Ciebie zmiany oczekują na weryfikację.: left32px is not an option, so no rule removes it. It is listed in the findings, with no rule added.

Tests: with #135 applied, the talk and wiki_history tests pass (77). On main's code, two plwiki_user_talk contract tests fail, because they expect last-revision labels. A rerun of retext and relabel changes nothing. README, CHANGELOG and totals are left to v2#80.

🤖 Generated with Claude Code

ppuzio changed pull request status to open
ppuzio changed pull request status to merged
ppuzio deleted the refs/pr/136 ref

Sign up or log in to comment