mirror of https://github.com/explosion/spaCy.git
Fix arg
This commit is contained in:
parent
e70a00fa76
commit
10847c7f4e
|
@ -34,7 +34,7 @@ def init_labels_cli(
|
||||||
with show_validation_error(config_path):
|
with show_validation_error(config_path):
|
||||||
config = util.load_config(config_path, overrides=overrides)
|
config = util.load_config(config_path, overrides=overrides)
|
||||||
with show_validation_error(hint_fill=False):
|
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:
|
for name, component in nlp.pipeline:
|
||||||
if getattr(component, "label_data", None) is not None:
|
if getattr(component, "label_data", None) is not None:
|
||||||
srsly.write_json(output_path / f"{name}.json", component.label_data)
|
srsly.write_json(output_path / f"{name}.json", component.label_data)
|
||||||
|
|
Loading…
Reference in New Issue