mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix tensorizer with pretrained vectors
This commit is contained in:
parent
a0c4b33d03
commit
40837b275d
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user