83e3c6a5607103193850086933b2c0e63f698366,semantic_types.py,,merge_dynamic_libraries,#Any#Any#Any#Any#,257

Before Change


    reserved_predicates = get_reserved_preds_from_coq_static_lib(coq_static_lib_path)
    required_predicates = []
    for ccg_xml_tree in ccg_xml_trees:
        tokens_node = ccg_xml_tree.find(".//tokens")
        tokens = [token.get("base") for token in tokens_node]
        required_predicates.extend(tokens)
    required_predicates = list(set(required_predicates))
    // Library entries are of the form:

After Change



def merge_dynamic_libraries(coq_lib, nltk_lib, coq_static_lib_path, doc):
    reserved_predicates = get_reserved_preds_from_coq_static_lib(coq_static_lib_path)
    required_predicates = set(normalize_token(t) for t in doc.xpath("//token/@base"))
    coq_lib_index = {coq_lib_entry.split()[1] : coq_lib_entry \
                       for coq_lib_entry in coq_lib}
    nltk_lib_index = {nltk_lib_entry.split()[1] : nltk_lib_entry \
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


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: prove.py
Class Name:
Method Name: main