From 0250bcf6a397130bd8d772a42c5b45d4463a461d Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 29 Sep 2020 22:29:09 +0200 Subject: [PATCH] Show validation error during init --- spacy/cli/train.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/cli/train.py b/spacy/cli/train.py index 7bbfe9315..0b3e2580e 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -48,7 +48,8 @@ def train_cli( with show_validation_error(config_path): config = util.load_config(config_path, overrides=overrides, interpolate=False) msg.divider("Initializing pipeline") - nlp = init_pipeline(config, output_path, use_gpu=use_gpu) + with show_validation_error(config_path, hint_fill=False): + nlp = init_pipeline(config, output_path, use_gpu=use_gpu) msg.divider("Training pipeline") train(nlp, output_path, use_gpu=use_gpu, silent=False)