MCPcopy Create free account
hub / github.com/Qinbf/groundmap / _norm_title

Function _norm_title

scripts/postprocess.py:141–143  ·  view source on GitHub ↗

归一化标题文本:压空白 + 转小写,用于跨 re-convert 的 title 级匹配。

(t: str)

Source from the content-addressed store, hash-verified

139
140
141def _norm_title(t: str) -> str:
142 """归一化标题文本:压空白 + 转小写,用于跨 re-convert 的 title 级匹配。"""
143 return re.sub(r"\s+", " ", (t or "")).strip().lower()
144
145
146def _collect_summaries(sections: list[dict]) -> list[dict]:

Callers 1

walkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected