This commit is contained in:
Matthew Honnibal 2020-09-29 16:48:07 +02:00
parent e70a00fa76
commit 10847c7f4e

View File

@ -34,7 +34,7 @@ def init_labels_cli(
with show_validation_error(config_path):
config = util.load_config(config_path, overrides=overrides)
with show_validation_error(hint_fill=False):
nlp = init_nlp(config, use_gpu=use_gpu, silent=False)
nlp = init_nlp(config, use_gpu=use_gpu)
for name, component in nlp.pipeline:
if getattr(component, "label_data", None) is not None:
srsly.write_json(output_path / f"{name}.json", component.label_data)