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

Before Change


                direction = "forw"
            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: 4

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: dmlc/gluon-nlp
Commit Name: 4db89675ad761bd14eaf219644f526bc4dde7b70
Time: 2018-06-13
Author: szhengac@users.noreply.github.com
File Name: scripts/nmt/bleu.py
Class Name:
Method Name: _split_compound_word


Project Name: dmlc/gluon-cv
Commit Name: 960a107ad419d2690e352972950e76495deb1ad6
Time: 2019-03-18
Author: xinyu1.chen@intel.com
File Name: scripts/detection/ssd/eval_ssd.py
Class Name:
Method Name:


Project Name: deepmipt/DeepPavlov
Commit Name: 1971fe48ebbc3415ab9bff92609de79002975d4e
Time: 2017-12-29
Author: ol.gure@gmail.com
File Name: deeppavlov/models/embedders/dict_embedder.py
Class Name: DictEmbedder
Method Name: infer