0b6031eafd5d4312166bba0f3874f4198e95623a,examples/text-pair/glove_mwe_multipool_siamese.py,,main,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,96

Before Change


                                 "+": add}):
        mwe_encode = ExtractWindow(nW=1) >> BN(Maxout(width, drop_factor=0.0, pieces=pieces))

        sent2vec = ( // List[spacy.token.Doc]{B}
            flatten_add_lengths  // : (ids{T}, lengths{B})
            >> with_getitem(0,
                //(StaticVectors("en", width)
                HashEmbed(width, 3000)
                //+ HashEmbed(width, 3000))
                //>> Residual(mwe_encode ** 2)
                ) // : word_ids{T}
            >> Pooling(mean_pool, max_pool)
            //>> Residual(BN(Maxout(width*2, pieces=pieces), nO=width*2)**2)
            >> Maxout(width*2, pieces=pieces, drop_factor=0.0)
            >> logistic
        )
        model = Siamese(sent2vec, CauchySimilarity(width*2))

    print("Read and parse data: %s" % dataset)
    if dataset == "quora":

After Change


            >> LN(Maxout(width, drop_factor=0.0, pieces=pieces))
        )

        sent2vec = (
            flatten_add_lengths
            >> with_getitem(0,
                (HashEmbed(width, 3000) | StaticVectors("en", width))
                >> LN(Maxout(width, width*2))
                >> Residual(mwe_encode) ** depth
            ) // : word_ids{T}
            >> Pooling(mean_pool, max_pool)
            >> Residual(LN(Maxout(width*2, pieces=pieces), nO=width*2)) **2
            >> logistic
        )
        model = Siamese(sent2vec, CauchySimilarity(width*2))

    print("Read and parse data: %s" % dataset)
    if dataset == "quora":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: explosion/thinc
Commit Name: 0b6031eafd5d4312166bba0f3874f4198e95623a
Time: 2018-03-15
Author: honnibal+gh@gmail.com
File Name: examples/text-pair/glove_mwe_multipool_siamese.py
Class Name:
Method Name: main


Project Name: explosion/thinc
Commit Name: 31885895520ea5342ebac859a824bae4df9146dc
Time: 2017-11-24
Author: honnibal+gh@gmail.com
File Name: examples/imdb_cnn.py
Class Name:
Method Name: build_model


Project Name: explosion/thinc
Commit Name: 110b7d1b68991740920625680be5dae9c73c7629
Time: 2018-03-15
Author: honnibal+gh@gmail.com
File Name: examples/text-pair/glove_mwe_multipool_siamese.py
Class Name:
Method Name: main


Project Name: explosion/thinc
Commit Name: 1db0116d8dcbac302353d0e7c5f14d5ada11a9b5
Time: 2017-11-24
Author: honnibal+gh@gmail.com
File Name: examples/imdb_cnn.py
Class Name:
Method Name: build_model