write_text_document

function of dascore.utils.documents source

write_text_document(
    text: str ,
    path: str | pathlib._local.Path[str, Path] ,
)-> ‘Path’

Write a document’s text to a file and return the path.

For a caller which already has the text – because it hands the same string back – and would otherwise write it and read it again.