MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / _remove_repeated_headers

Function _remove_repeated_headers

scripts/clean_fda_fulltext.py:140–144  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

138
139
140def _remove_repeated_headers(text: str) -> str:
141 for header in REPEATED_HEADERS:
142 text = text.replace(header + "\n", "")
143 text = text.replace(header, "")
144 return text
145
146
147def _remove_stray_page_numbers(text: str) -> str:

Callers 1

clean_fulltextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected