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

Function test_applycli_docbin

spacy/tests/test_cli.py:953–964  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

951
952
953def test_applycli_docbin():
954 with make_tempdir() as data_path:
955 output = data_path / "testout.spacy"
956 nlp = spacy.blank("en")
957 doc = nlp("testing apply cli.")
958 # test empty DocBin case
959 docbin = DocBin()
960 docbin.to_disk(data_path / "testin.spacy")
961 apply(data_path, output, "blank:en", "text", 1, 1)
962 docbin.add(doc)
963 docbin.to_disk(data_path / "testin.spacy")
964 apply(data_path, output, "blank:en", "text", 1, 1)
965
966
967def test_applycli_jsonl():

Callers

nothing calls this directly

Calls 6

to_diskMethod · 0.95
addMethod · 0.95
DocBinClass · 0.90
applyFunction · 0.90
make_tempdirFunction · 0.85
nlpFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…