MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / parse_plaintext

Function parse_plaintext

worked/example/raw/parser.py:56–59  ·  view source on GitHub ↗

Split plaintext into paragraphs.

(text: str)

Source from the content-addressed store, hash-verified

54
55
56def parse_plaintext(text: str) -> dict:
57 """Split plaintext into paragraphs."""
58 paragraphs = [p.strip() for p in text.split("\n\n") if p.strip()]
59 return {"paragraphs": paragraphs, "format": "plaintext"}
60
61
62def parse_and_save(path: str) -> str:

Callers 1

parse_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected