Update spacy/cli/apply.py

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
kadarakos 2022-11-23 10:50:13 +01:00 committed by GitHub
parent 506508ac1c
commit 7fdf30b313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,16 +14,16 @@ from ..vocab import Vocab
from ..util import ensure_path, load_model
path_help = ("Location of the documents to predict on."
"Can be a single file in .spacy format or "
".jsonl file and files with other extensions"
"are treated as single plain text documents."
path_help = ("Location of the documents to predict on. "
"Can be a single file in .spacy format or a "
".jsonl file. Files with other extensions "
"are treated as single plain text documents. "
"If a directory is provided "
"it is traversed recursively to grab all files to "
"be processed. The files can be a mixture of .spacy"
"be processed. The files can be a mixture of .spacy, "
".jsonl and text files. If .jsonl is provided the "
"specified field is going to be grabbed ('text') "
"by default.")
"specified field is going to be grabbed ('text' "
"by default).")
out_help = "Path where to save the result .spacy file"
code_help = ("Path to Python file with additional "
"code (registered functions) to be imported")