From b54b3071eff7e930f29af185231a45a2e9b5aca5 Mon Sep 17 00:00:00 2001 From: kadarakos Date: Mon, 7 Nov 2022 17:00:55 +0100 Subject: [PATCH 1/3] Update spacy/tests/test_cli.py Co-authored-by: Adriane Boyd --- spacy/tests/test_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/test_cli.py b/spacy/tests/test_cli.py index 65e84af12..e9ff9fd20 100644 --- a/spacy/tests/test_cli.py +++ b/spacy/tests/test_cli.py @@ -860,7 +860,7 @@ def test_span_length_freq_dist_output_must_be_correct(): def test_applycli_empty_dir(): with make_tempdir() as data_path: - output = os.path.join(data_path / "test.spacy") + output = data_path / "test.spacy" apply(data_path, output, "blank:en", 1, 1) From 23e4b6ffc75c46866ac7cfd4e3f1ca86f67982d5 Mon Sep 17 00:00:00 2001 From: kadarakos Date: Fri, 18 Nov 2022 18:09:43 +0100 Subject: [PATCH 2/3] Update spacy/cli/apply.py Co-authored-by: Sofie Van Landeghem --- spacy/cli/apply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/apply.py b/spacy/cli/apply.py index b60c0e6f0..51c7cacfb 100644 --- a/spacy/cli/apply.py +++ b/spacy/cli/apply.py @@ -75,7 +75,7 @@ def apply_cli( """ Apply a trained pipeline to documents to get predictions. Expects a loadable spaCy pipeline and some data as input. - The data can be provided multiple formats. It can be a single + The data can be provided in multiple formats. It can be a single .spacy file or a single text file with one document per line. A directory can also be provided in which case the 'suffix' argument is required. All paths pointing to files with the From 2064fc1bfc9fb0811f8877f39188a1cbed2dc960 Mon Sep 17 00:00:00 2001 From: kadarakos Date: Fri, 18 Nov 2022 18:15:18 +0100 Subject: [PATCH 3/3] Update spacy/cli/apply.py Co-authored-by: Sofie Van Landeghem --- spacy/cli/apply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/apply.py b/spacy/cli/apply.py index 51c7cacfb..637629e8f 100644 --- a/spacy/cli/apply.py +++ b/spacy/cli/apply.py @@ -20,7 +20,7 @@ path_help = ("Location of the documents to predict on." "If a directory is provided each " "text file in the directory will be treated " "as a single document.") -out_help = "Path where to save the result .spacy file" +out_help = "Path where to save the resulting .spacy file" code_help = ("Path to Python file with additional " "code (registered functions) to be imported") gold_help = "Use gold preprocessing provided in the .spacy files"