mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-25 00:34:20 +03:00
Remove
This commit is contained in:
parent
1aeef3bfbb
commit
c334a7d45f
|
@ -66,7 +66,7 @@ def init_pipeline(
|
|||
nlp.to_disk(init_path)
|
||||
msg.good(f"Saved initialized pipeline to {init_path}")
|
||||
else:
|
||||
nlp = util.load_model(init_path).from_config(config)
|
||||
nlp = util.load_model(init_path)
|
||||
if must_reinitialize(config, nlp.config):
|
||||
msg.warn("Config has changed: need to re-initialize pipeline")
|
||||
nlp = init_nlp(config, **init_kwargs)
|
||||
|
|
Loading…
Reference in New Issue
Block a user