From fa261d09e89f351bc2f367653cf4d94e1814f6aa Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Mon, 6 Jul 2020 15:57:38 +0200 Subject: [PATCH] Add alternative CLI option --- spacy/cli/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/train.py b/spacy/cli/train.py index 9e12eb0f4..3b71cdb9a 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -124,7 +124,7 @@ def train_cli( train_path: Path = Arg(..., help="Location of JSON-formatted training data", exists=True), dev_path: Path = Arg(..., help="Location of JSON-formatted development data", exists=True), config_path: Path = Arg(..., help="Path to config file", exists=True), - output_path: Optional[Path] = Opt(None, "--output-path", "-o", help="Output directory to store model in"), + output_path: Optional[Path] = Opt(None, "--output", "--output-path", "-o", help="Output directory to store model in"), code_path: Optional[Path] = Opt(None, "--code-path", "-c", help="Path to Python file with additional code (registered functions) to be imported"), init_tok2vec: Optional[Path] = Opt(None, "--init-tok2vec", "-t2v", help="Path to pretrained weights for the tok2vec components. See 'spacy pretrain'. Experimental."), raw_text: Optional[Path] = Opt(None, "--raw-text", "-rt", help="Path to jsonl file with unlabelled text documents."),