in model_code/process_data_to_source_target.py [0:0]
def read_data(json_input):
with open(json_input) as f:
data = json.load(f)
questions = []
answers = []
supports = []
for d in data:
questions.append(d["question"].strip())
answers.append(d["answer"].strip())
supports.append(d["document"].strip())
assert(len(questions) == len(answers) == len(supports))
return questions, answers, supports