cfd79e79c3b3f540b393abb2708b7ef8c7fabf28,parlai/tasks/multinli/agents.py,DefaultTeacher,setup_data,#DefaultTeacher#Any#,58
Before Change
print("loading: " + path)
with open(path, "r") as data_file:
for pair_line in data_file:
pair = json.loads(pair_line)
premise = MULTINLI_PREMISE_PREFIX + pair[MULTINLI_PREMISE_KEY]
hypo = MULTINLI_HYPO_PREFIX + pair[MULTINLI_HYPO_KEY]
answer = [pair[MULTINLI_ANSWER_KEY]]
if answer == "-":
continue
question = premise + "\n" + hypo
yield (question, answer, None, MULTINLI_LABELS), True
After Change
super().__init__(opt, shared)
def setup_data(self, path):
return setup_data(path)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 7
Instances
Project Name: facebookresearch/ParlAI
Commit Name: cfd79e79c3b3f540b393abb2708b7ef8c7fabf28
Time: 2018-01-08
Author: apsdehal@gmail.com
File Name: parlai/tasks/multinli/agents.py
Class Name: DefaultTeacher
Method Name: setup_data
Project Name: tensorflow/datasets
Commit Name: 89faf0590139840fcbfd5e58140d86dfdb7b419e
Time: 2019-10-02
Author: adarob@google.com
File Name: tensorflow_datasets/core/download/checksums.py
Class Name:
Method Name: _get_sizes_checksums
Project Name: snipsco/snips-nlu
Commit Name: f83dd115acb0d119fa466fad51b473a30749f684
Time: 2017-05-11
Author: clement.doumouro@snips.ai
File Name: snips_nlu/intent_parser/regex_intent_parser.py
Class Name: RegexIntentParser
Method Name: get_slots
Project Name: polyaxon/polyaxon
Commit Name: af1e7c1e32e46586dda424cb3a7d38234587c93b
Time: 2019-04-11
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/managers/ignore.py
Class Name: IgnoreManager
Method Name: get_config
Project Name: facebookresearch/Horizon
Commit Name: 9cf8f6cdf6a2008843cb37da6e34b8d10353b0bf
Time: 2019-12-12
Author: kittipat@fb.com
File Name: ml/rl/preprocessing/sparse_to_dense.py
Class Name: PythonSparseToDenseProcessor
Method Name: process