MCPcopy
hub / github.com/explosion/spaCy / _stream_texts

Function _stream_texts

spacy/cli/apply.py:58–65  ·  view source on GitHub ↗

Yields strings from text files in paths.

(paths: Iterable[Path])

Source from the content-addressed store, hash-verified

56
57
58def _stream_texts(paths: Iterable[Path]) -> Iterable[str]:
59 """
60 Yields strings from text files in paths.
61 """
62 for path in paths:
63 with open(path, "r") as fin:
64 text = fin.read()
65 yield text
66
67
68@app.command("apply")

Callers 1

applyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…