From 97d36515747640b11e8447a6177ab867353b0915 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 29 Jul 2020 13:38:13 +0200 Subject: [PATCH] Fix stray link_vectors_to_models call --- spacy/language.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index 4b7651d65..0ec29f3b1 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -1615,8 +1615,6 @@ def _fix_pretrained_vectors_name(nlp: Language) -> None: nlp.vocab.vectors.name = vectors_name else: raise ValueError(Errors.E092) - if nlp.vocab.vectors.size != 0: - link_vectors_to_models(nlp.vocab) for name, proc in nlp.pipeline: if not hasattr(proc, "cfg"): continue