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

Function split_sentences

experiments/baselines/discourse_aware/runner.py:227–232  ·  view source on GitHub ↗
(text: Any)

Source from the content-addressed store, hash-verified

225
226
227def split_sentences(text: Any) -> List[str]:
228 sentences = [part.strip() for part in SENTENCE_SPLIT_RE.split(str(text or "")) if part.strip()]
229 if sentences:
230 return sentences
231 text_value = str(text or "").strip()
232 return [text_value] if text_value else []
233
234
235def sentence_facets(sentence: str) -> List[str]:

Callers 1

extract_discourse_facetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected