mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Show validation error during init
This commit is contained in:
parent
da30bae8a6
commit
0250bcf6a3
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user