def postprocess_data(raw_data, decoded):
    """
    Remove generation artifacts and postprocess outputs

    :param raw_data: loaded data
    :param decoded: model outputs
    """
    raw_data['target'] = [x.replace('\n', ' ') for x in raw_data['target']]
    raw_data['decoded'] = [x.replace('<n>', ' ') for x in decoded]

    return [dict(zip(raw_data, t)) for t in zip(*raw_data.values())]