mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Whitespace
This commit is contained in:
parent
6ef72864fa
commit
3b91097321
|
@ -241,9 +241,11 @@ def Tok2Vec(width, embed_size, **kwargs):
|
||||||
|
|
||||||
tok2vec = (
|
tok2vec = (
|
||||||
FeatureExtracter(cols)
|
FeatureExtracter(cols)
|
||||||
>> with_flatten(embed >> (convolution ** 4), pad=4)
|
>> with_flatten(
|
||||||
|
embed
|
||||||
|
>> convolution ** 4, pad=4
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Work around thinc API limitations :(. TODO: Revise in Thinc 7
|
# Work around thinc API limitations :(. TODO: Revise in Thinc 7
|
||||||
tok2vec.nO = width
|
tok2vec.nO = width
|
||||||
tok2vec.embed = embed
|
tok2vec.embed = embed
|
||||||
|
|
Loading…
Reference in New Issue
Block a user