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

Function normalize_phrase_text

experiments/baselines/nl_profile/runner.py:126–127  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

124
125
126def normalize_phrase_text(value: Any) -> str:
127 return " ".join(re.sub(r"[^a-z0-9]+", " ", str(value or "").casefold()).split())
128
129
130def contains_phrase(text: str, phrase: str) -> bool:

Callers 4

contains_phraseFunction · 0.70
paper_identityFunction · 0.70
phrase_alignment_scoreFunction · 0.70
aspect_coverage_scoreFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected