ba10671f4d99fbcf52550571ba787e6ca1b8ac00,deeppavlov/models/kbqa/wiki_parser.py,WikiParser,search,#WikiParser#Any#Any#,167

Before Change


            if obj:
                direction = "backw"
            subj = subj.split("/")[-1]
            triplets = self.document.get(subj, {}).get(direction, [])
            triplets = [[subj, triplet[0], obj] for triplet in triplets for obj in triplet[1:]]
            if rel:
                if rel == self.description_rel:
                    triplets = [triplet for triplet in triplets if triplet[1] == "descr_en"]

After Change


                triplets = [[subj, triplet[0], obj] for triplet in triplets for obj in triplet[1:]]
            if obj:
                obj, triplets = self.find_triplets(obj, "backw")
                triplets = [[subj, triplet[0], obj] for triplet in triplets for subj in triplet[1:]]
            if rel:
                if rel == self.description_rel:
                    triplets = [triplet for triplet in triplets if triplet[1] == "descr_en"]
                else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: ba10671f4d99fbcf52550571ba787e6ca1b8ac00
Time: 2020-12-24
Author: dmitrij.euseew@yandex.ru
File Name: deeppavlov/models/kbqa/wiki_parser.py
Class Name: WikiParser
Method Name: search


Project Name: uber/ludwig
Commit Name: 13eb6bf434f384c45ba1d92ad1dcda04fc6f0517
Time: 2020-08-22
Author: piero@uber.com
File Name: tests/integration_tests/test_collect.py
Class Name:
Method Name: _get_layers


Project Name: dmlc/gluon-nlp
Commit Name: 1e50a6606c5215e0dc28d016bb5f57bd668f47af
Time: 2019-06-06
Author: lausen@amazon.com
File Name: src/gluonnlp/vocab/bert.py
Class Name: BERTVocab
Method Name: from_json