MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / normalize_title

Function normalize_title

scripts/common.py:103–104  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

101
102
103def normalize_title(text: str) -> str:
104 return re.sub(r"[^a-z0-9\s]", "", normalize_whitespace(text).lower()).strip()
105
106
107LOCAL_PDF_PREFIX_PATTERN = re.compile(r"^(?:[^-]{1,120})\s+-\s+(?:19|20)\d{2}\s+-\s+")

Callers 8

title_similarityFunction · 0.85
paper_id_for_recordFunction · 0.85
merge_metadata_recordsFunction · 0.85
extract_appendix_indexFunction · 0.85
extract_metric_claimsFunction · 0.85
extract_negative_claimsFunction · 0.85

Calls 1

normalize_whitespaceFunction · 0.85

Tested by

no test coverage detected