83e3c6a5607103193850086933b2c0e63f698366,prove.py,,main,#Any#,34

Before Change


          "The assignment of semantics to CCG tree may have failed. Tree: {0}"\
          .format(etree.tostring(ccg_tree, pretty_print=True, encoding = "utf-8")\
                  .decode("utf-8"))
        lambda_expression = ccg_tree.get("sem")
        logical_interpretations.append(lambda_expression)
        ccg_tokens = ccg_xml.find("tokens")
        ccg_tokens_list.append(ccg_tokens)
    if arbi_types_requested:

After Change


    print(inference_result, file=sys.stdout)
    // TODO: make convert_trees_to_mathml work with general trees.
    // html_str = convert_trees_to_mathml(ccg_tree_list, ccg_tokens_list, coq_scripts)
    ccg_trees = [build_ccg_tree(c) for c in doc.xpath("//ccg")]
    // from pudb import set_trace; set_trace()
    html_str = convert_trees_to_mathml(
        ccg_trees, doc.xpath("//tokens"), coq_scripts)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: mynlp/ccg2lambda
Commit Name: 83e3c6a5607103193850086933b2c0e63f698366
Time: 2016-04-01
Author: pascual@nii.ac.jp
File Name: prove.py
Class Name:
Method Name: main


Project Name: mynlp/ccg2lambda
Commit Name: 83e3c6a5607103193850086933b2c0e63f698366
Time: 2016-04-01
Author: pascual@nii.ac.jp
File Name: knowledge.py
Class Name:
Method Name: get_tokens_from_ccg_tree


Project Name: mynlp/ccg2lambda
Commit Name: 83e3c6a5607103193850086933b2c0e63f698366
Time: 2016-04-01
Author: pascual@nii.ac.jp
File Name: semantic_types.py
Class Name:
Method Name: merge_dynamic_libraries