feat(classify): tighten scoring with reaction co-occurrence and date negatives
强正向 reaction 需标题同时含 require_title;移除听/看等宽泛词,新增弱正向组;charge 命中>=2 记+3、==1 记+1;负向补充录播/录像并新增标题带日期强负向;时长仅在已命中 reaction/charge 时加权;discover 关键词改为单个咻咻满、pages=3、window_days=7,notify.min_score=4;同步示例配置、project.md/README 与相关测试。
This commit is contained in:
1 parent
e04908ccad
commit
742c67a1c3
9 files changed
+210
-107
No files matched your search
@@ -54,9 +54,11 @@ def test_dual_accounts_and_env_override():
|
||||
assert (cfg.bilibili.write.mid, cfg.bilibili.write.csrf, cfg.bilibili.write.cookie) == (202, "env-write", "env-write-cookie")
|
||||
assert cfg.storage.database_path == Path(tmp) / "custom.db"
|
||||
assert cfg.up_blacklist_seed == (1, 2)
|
||||
assert cfg.discover.keywords == ("咻咻满 reaction", "咻咻满 充电")
|
||||
assert cfg.discover.pages == 2
|
||||
assert cfg.discover.keywords == ("咻咻满",)
|
||||
assert cfg.discover.pages == 3
|
||||
assert cfg.classify["self_mid"] == 37754047
|
||||
assert cfg.classify["reaction"] == ["reaction", "反应"]
|
||||
assert cfg.classify["date_negative"] is True
|
||||
|
||||
|
||||
def test_flat_and_missing_account_rejected():
|
||||
|
||||
Reference in new issue
Block a user