4087c4610d89b74ba85d63c05be9e7d45e822f63,translate.py,,main,#,64

Before Change


                    tgtSent = " ".join(tgtBatch[b])
                    if translator.tgt_dict.lower:
                        tgtSent = tgtSent.lower()
                    print("GOLD %d: %s " % (count, tgtSent))
                    print("GOLD SCORE: %.4f" % goldScore[b])

                if opt.n_best > 1:
                    print("\nBEST HYP:")

After Change



    count = 0

    tgtF = codecs.open(opt.tgt, "r", "utf-8") if opt.tgt else None

    if opt.dump_beam != "":
        import json
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: 4087c4610d89b74ba85d63c05be9e7d45e822f63
Time: 2017-06-23
Author: shuoyangd@users.noreply.github.com
File Name: translate.py
Class Name:
Method Name: main


Project Name: NTMC-Community/MatchZoo
Commit Name: 2f211a064e25d52bbbe58cceaa5a0e1239bbddd2
Time: 2017-11-05
Author: yangliuyx@gmail.com
File Name: matchzoo/inputs/preprocess.py
Class Name:
Method Name:


Project Name: hanxiao/bert-as-service
Commit Name: 5a50af91cec0fa12b8259abb44606b7b336ed620
Time: 2018-11-08
Author: hanhxiao@tencent.com
File Name: client_example.py
Class Name:
Method Name:


Project Name: keras-team/autokeras
Commit Name: 648cbac25d366ec943947673e65fac0004755f65
Time: 2018-01-09
Author: jhfjhfj1@gmail.com
File Name: mkdocs/autogen.py
Class Name:
Method Name: extract_comments