Fix stray link_vectors_to_models call

This commit is contained in:
Matthew Honnibal 2020-07-29 13:38:13 +02:00
parent c7d1ece3eb
commit 97d3651574
1 changed files with 0 additions and 2 deletions

View File

@ -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