mirror of https://github.com/explosion/spaCy.git
Improve textcat model slightly
This commit is contained in:
parent
f1b86dff8c
commit
f8a0614527
|
@ -622,7 +622,7 @@ def build_text_classifier(nr_class, width=64, **cfg):
|
|||
>> with_flatten(
|
||||
LN(Maxout(width, vectors_width))
|
||||
>> Residual(
|
||||
(ExtractWindow(nW=1) >> zero_init(Maxout(width, width*3)))
|
||||
(ExtractWindow(nW=1) >> LN(Maxout(width, width*3)))
|
||||
) ** 2, pad=2
|
||||
)
|
||||
>> flatten_add_lengths
|
||||
|
|
Loading…
Reference in New Issue