mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Dont use iterated convolutions
This commit is contained in:
parent
c013e5996f
commit
2148ae605b
|
@ -252,11 +252,8 @@ def Tok2Vec(width, embed_size, pretrained_dims=0):
|
|||
embed
|
||||
>> with_flatten(
|
||||
Affine(width, width+pretrained_dims)
|
||||
>> convolution
|
||||
>> convolution
|
||||
>> convolution
|
||||
>> convolution,
|
||||
pad=1)
|
||||
>> convolution ** 4,
|
||||
pad=4)
|
||||
)
|
||||
# Work around thinc API limitations :(. TODO: Revise in Thinc 7
|
||||
tok2vec.nO = width
|
||||
|
|
Loading…
Reference in New Issue
Block a user