From b764ec745b92f02705ebc42b2073d03244193257 Mon Sep 17 00:00:00 2001 From: Xiangzhuang Shen Date: Sun, 5 May 2024 17:27:29 +0800 Subject: [PATCH] concise map func --- 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 {