From 40837b275d9ed028bbdbe10ecaeb7af5d395f8eb Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 18 Sep 2017 18:05:38 -0500 Subject: [PATCH] Fix tensorizer with pretrained vectors --- spacy/pipeline.pyx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spacy/pipeline.pyx b/spacy/pipeline.pyx index 4643b759a..824b6932d 100644 --- a/spacy/pipeline.pyx +++ b/spacy/pipeline.pyx @@ -285,7 +285,9 @@ class TokenVectorEncoder(BaseThincComponent): pipeline (list): The pipeline the model is part of. """ if self.model is True: - self.model = self.Model(**self.cfg) + self.model = self.Model( + pretrained_dims=self.vocab.vectors_length, + **self.cfg) class NeuralTagger(BaseThincComponent):