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

Function split_sentences

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

Source from the content-addressed store, hash-verified

1582
1583
1584def split_sentences(text: str) -> list[str]:
1585 text = re.sub(r"\s+", " ", text or "").strip()
1586 if not text:
1587 return []
1588 parts = re.split(r"(?<=[.!?。!?])\s+", text)
1589 return [part.strip() for part in parts if part.strip()]
1590
1591
1592def clean_pdf_line(line: str) -> str:

Callers 8

build_appendix_evidenceFunction · 0.90
text_chunksFunction · 0.90
mainFunction · 0.90
extract_metric_claimsFunction · 0.85
extract_negative_claimsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected