From 97da6002173eb3d2893560115060efaaa7840f36 Mon Sep 17 00:00:00 2001 From: Mathew Shen Date: Sun, 5 May 2024 17:31:47 +0800 Subject: [PATCH] concise map func (#43) --- src/bleu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bleu.rs b/src/bleu.rs index c76e7ed..75591a9 100644 --- a/src/bleu.rs +++ b/src/bleu.rs @@ -88,7 +88,7 @@ pub fn compute_score( matches_by_order, ) }) - .reduce_with(|s1, s2| agg_stat(s1, s2)); + .reduce_with(agg_stat); let Stat(translation_length, reference_length, possible_matches_by_order, matches_by_order) = match stat_result {