()
| 951 | |
| 952 | |
| 953 | def 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 | |
| 967 | def test_applycli_jsonl(): |