def calc_generative_metrics(self, preds, target) -> Dict: return calculate_exact_match(preds, target)
def calc_generative_metrics(self, preds, target) -> Dict: d_metrics = calculate_exact_match(preds, target) d_metrics.update(calculate_bleu(preds, target)) return d_metrics