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

Function contains_phrase

experiments/baselines/scholar_inbox/runner.py:146–150  ·  view source on GitHub ↗
(text: str, phrase: str)

Source from the content-addressed store, hash-verified

144
145
146def contains_phrase(text: str, phrase: str) -> bool:
147 normalized_phrase = normalize_phrase_text(phrase)
148 if not normalized_phrase:
149 return False
150 return f" {normalized_phrase} " in f" {text} "
151
152
153def tokenize(text: Any) -> List[str]:

Callers 2

institution_match_scoreFunction · 0.70
keyword_match_scoreFunction · 0.70

Calls 1

normalize_phrase_textFunction · 0.70

Tested by

no test coverage detected