1be7ed32b7f84d4988d81b813446b4b359c277ba,qanta/buzzer/util.py,,read_data,#Any#Any#Any#Any#Any#Any#,151

Before Change



    df_groups = df.groupby("qanta_id")
    worker = partial(process_question, questions, vector_converter)
    dataset = pool.map(worker, df.items())
    return dataset

After Change


    worker = partial(process_question, questions, vector_converter)
    dataset = pool.map(worker, df_groups)

    with open(dataset_dir.format(fold), "wb") as f:
        return pickle.dump(dataset, f)

    return dataset


def convert_seq(batch, device=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: Pinafore/qb
Commit Name: 1be7ed32b7f84d4988d81b813446b4b359c277ba
Time: 2018-04-26
Author: sjtufs@gmail.com
File Name: qanta/buzzer/util.py
Class Name:
Method Name: read_data


Project Name: hanxiao/bert-as-service
Commit Name: 624f5b31d0572da62f8a61f51d49a157717c9a51
Time: 2019-01-21
Author: hanhxiao@tencent.com
File Name: benchmark.py
Class Name:
Method Name:


Project Name: Pinafore/qb
Commit Name: aa913fbeb5bd531981b6a01d2ea727c87db26e24
Time: 2018-04-18
Author: sjtufs@gmail.com
File Name: qanta/buzzer/util.py
Class Name:
Method Name: read_data


Project Name: pyinstaller/pyinstaller
Commit Name: a5505747ac8b1f3891a63363a9b86af480452f77
Time: 2018-05-29
Author: itsayellow+dev@gmail.com
File Name: PyInstaller/building/osx.py
Class Name: BUNDLE
Method Name: assemble