(text: str)
| 1582 | |
| 1583 | |
| 1584 | def 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 | |
| 1592 | def clean_pdf_line(line: str) -> str: |
no outgoing calls
no test coverage detected