Adjust textcat model

This commit is contained in:
Matthew Honnibal 2020-07-29 14:38:15 +02:00
parent 9e1b11dd81
commit c99a653070
1 changed files with 0 additions and 1 deletions

View File

@ -158,7 +158,6 @@ def build_text_classifier_lowdata(width, pretrained_vectors, dropout, nO=None):
model = ( model = (
StaticVectors(width) StaticVectors(width)
>> list2ragged() >> list2ragged()
>> with_ragged(0, Linear(width, vector_dim))
>> ParametricAttention(width) >> ParametricAttention(width)
>> reduce_sum() >> reduce_sum()
>> residual(Relu(width, width)) ** 2 >> residual(Relu(width, width)) ** 2