From 08d3c36c204a59fb294d1b8a286c764da6f992cb Mon Sep 17 00:00:00 2001 From: svlandeg Date: Fri, 31 Jul 2020 14:18:27 +0200 Subject: [PATCH] bugfix in train CLI --- spacy/cli/train.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spacy/cli/train.py b/spacy/cli/train.py index b0bc145ff..9cc36f77b 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -51,7 +51,7 @@ def train_cli( referenced in the config. """ util.set_env_log(verbose) - verify_cli_args(train_path, dev_path, config_path) + verify_cli_args(train_path, dev_path, config_path, output_path) overrides = parse_config_overrides(ctx.args) import_code(code_path) train( @@ -173,7 +173,6 @@ def train( progress = tqdm.tqdm(total=training["eval_frequency"], leave=False) except Exception as e: if output_path is not None: - raise e msg.warn( f"Aborting and saving the final best model. " f"Encountered exception: {str(e)}",