d771d58a66c57aa77b8ef61501bf879de25c0c8c,deeppavlov/dataset_readers/insurance_reader.py,InsuranceReader,preprocess_data_train,#InsuranceReader#Any#,29

Before Change


            q, pa = eli.split("\t")
            pa_list = [int(el) - 1 for el in pa.split(" ")]
            for elj in pa_list:
                contexts.append([int(el.split("_")[1]) for el in q.split(" ")])
                responses.append(elj)
                positive_responses_pool.append(pa_list)
        train_data = [{"context": el[0], "response": el[1],
                       "pos_pool": el[2], "neg_pool": None}

After Change


            q, pa = eli.split("\t")
            pa_list = [int(el) - 1 for el in pa.split(" ")]
            for elj in pa_list:
                contexts.append(self.idxs2cont_vocab[q])
                responses.append(elj)
                positive_responses_pool.append(pa_list)
        train_data = [{"context": el[0], "response": el[1],
                       "pos_pool": el[2], "neg_pool": None}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: d771d58a66c57aa77b8ef61501bf879de25c0c8c
Time: 2018-05-24
Author: puleon@mail.ru
File Name: deeppavlov/dataset_readers/insurance_reader.py
Class Name: InsuranceReader
Method Name: preprocess_data_train


Project Name: dPys/PyNets
Commit Name: 6197bc8b6617d51576e81e23c632cfd40535f2e6
Time: 2018-05-22
Author: dpisner@utexas.edu
File Name: pynets/utils.py
Class Name:
Method Name: compile_iterfields


Project Name: quiltdata/quilt
Commit Name: 9087a7f9301e17510bc903b9beb532bc7ae641fd
Time: 2020-07-16
Author: dima@quiltdata.io
File Name: lambdas/access_counts/index.py
Class Name:
Method Name: handler


Project Name: deepmipt/DeepPavlov
Commit Name: d771d58a66c57aa77b8ef61501bf879de25c0c8c
Time: 2018-05-24
Author: puleon@mail.ru
File Name: deeppavlov/dataset_readers/insurance_reader.py
Class Name: InsuranceReader
Method Name: preprocess_data_valid_test