Show validation error during init

This commit is contained in:
Ines Montani 2020-09-29 22:29:09 +02:00
parent da30bae8a6
commit 0250bcf6a3

View File

@ -48,6 +48,7 @@ def train_cli(
with show_validation_error(config_path): with show_validation_error(config_path):
config = util.load_config(config_path, overrides=overrides, interpolate=False) config = util.load_config(config_path, overrides=overrides, interpolate=False)
msg.divider("Initializing pipeline") msg.divider("Initializing pipeline")
with show_validation_error(config_path, hint_fill=False):
nlp = init_pipeline(config, output_path, use_gpu=use_gpu) nlp = init_pipeline(config, output_path, use_gpu=use_gpu)
msg.divider("Training pipeline") msg.divider("Training pipeline")
train(nlp, output_path, use_gpu=use_gpu, silent=False) train(nlp, output_path, use_gpu=use_gpu, silent=False)