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

Function _clean_abstract_text

agents/reading-agent/main.py:635–638  ·  view source on GitHub ↗
(text: Any)

Source from the content-addressed store, hash-verified

633
634def _clean_abstract_text(text: Any) -> str:
635 normalized = _strip_html_markup(text)
636 normalized = FEED_METADATA_PREFIX_RE.sub("", normalized).strip(" \n\t;,:-")
637 return _clean_text(normalized)
638
639
640def _clean_pdf_evidence_text(text: Any) -> str:
641 """Remove common PDF extraction noise before retrieval/report synthesis."""

Callers 6

_normalize_paperFunction · 0.70
_merge_paper_detailsFunction · 0.70
generate_reading_reportFunction · 0.70

Calls 2

_strip_html_markupFunction · 0.85
_clean_textFunction · 0.70

Tested by

no test coverage detected