Example #1
0
 def calc_generative_metrics(self, preds, target) -> Dict:
     return calculate_exact_match(preds, target)
Example #2
0
 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