d04134375b6fafc03efec776728e2334a927e37f,run_tgen.py,,rerank_cl_eval,#Any#,542

Before Change


        elif opt == "-s":
            selector = arg

    if len(files) != 3:
        sys.exit("Invalid arguments.\n" + __doc__)
    fname_cl_model, fname_test_da, fname_test_sent = files

    log_info("Loading reranking classifier...")
    rerank_cl = RerankingClassifier.load_from_file(fname_cl_model)

After Change




def rerank_cl_eval(args):
    ap = ArgumentParser(prog=" ".join(sys.argv[0:2]))
    ap.add_argument("-l", "--language", type=str,
                    help="Override classifier language (for t-tree input files)")
    ap.add_argument("-s", "--selector", type=str,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: UFAL-DSG/tgen
Commit Name: d04134375b6fafc03efec776728e2334a927e37f
Time: 2017-03-30
Author: odusek@ufal.mff.cuni.cz
File Name: run_tgen.py
Class Name:
Method Name: rerank_cl_eval


Project Name: cve-search/cve-search
Commit Name: 01dcf599c63d22f2f7882164774f52f3776fa897
Time: 2015-01-26
Author: pieterjan.moreels@gmail.com
File Name: db_mgmt_admin.py
Class Name:
Method Name:


Project Name: UFAL-DSG/tgen
Commit Name: d04134375b6fafc03efec776728e2334a927e37f
Time: 2017-03-30
Author: odusek@ufal.mff.cuni.cz
File Name: run_tgen.py
Class Name:
Method Name: rerank_cl_train