From c334a7d45f5a895950a139f40ac7fb6ff24af5a0 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 29 Sep 2020 22:38:39 +0200 Subject: [PATCH] Remove --- spacy/cli/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/train.py b/spacy/cli/train.py index e8a422926..0b3e2580e 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -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)