Repository navigation
feat(crossposting): swear feature for the channel model - #414
Open
sebastianwall wants to merge 4 commits into
Open
sebastianwall wants to merge 4 commits into
sebastianwall wants to merge 4 commits into
Conversation
… channel model Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…хую) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, тихую) Anchor ху-forms to a word start with an optional prefix; skip бляха/бляшки. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
swear(1.0 when the meme's OCR text has Russian мат or EN profanity, else 0.0; 0.0 with no text) to the crossposting ridge features.Why: channel-lab walk-forward (
lab/e8_swear.py, run 8, 2026-11-30) showed RU Δρ +0.006 vs the active 20-feature spec, better in 2/3 thirds. EN profanity did not help. The feature works on any channel; EN rows just won't list it.model.py:swearis added at the end ofFEATURES, plusSWEAR_RU/SWEAR_EN/has_swear. Registered rows list their own feature subset, so they still load.service.py:_MODEL_STATIC_QUERYalso selectsocr_result->>'text'.fetch_model_static_inputscomputesocr_swearin Python. That function feeds both decision-time scoring andmodel_loop.training_rows, so one change covers both paths.ocr_swearis logged per candidate, the same way Channel model: content features (description, language, format) #413 logs desc_len/format/lang.REFIT_FEATURES) is unchanged. A row withswearis registered by hand.features()producingswear.🤖 Generated with Claude Code