MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _title_has_any_token

Function _title_has_any_token

deployments/feishu/daily-push-agent/main.py:1033–1036  ·  view source on GitHub ↗

Match short topic tokens as words, so RL does not match world/early/Carlo.

(title: str, tokens: tuple)

Source from the content-addressed store, hash-verified

1031 return any(f" {str(token).lower()} " in normalized_title for token in tokens if str(token).strip())
1032
1033
1034def _normalize_arxiv_key(value: Any) -> str:
1035 text = str(value or "").strip().lower()
1036 if not text:
1037 return ""
1038 text = text.replace("https://arxiv.org/abs/", "")
1039 text = text.replace("http://arxiv.org/abs/", "")

Callers 1

extract_topics_from_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected