in model_code/compute_rouge.py [0:0]
def open_data(hypotheses, references):
with open(hypotheses) as f:
hypoth_data = f.readlines()
with open(references) as f:
ref_data = f.readlines()
assert(len(ref_data) == len(hypoth_data))
return hypoth_data, ref_data