Skip to content

Commit

Permalink
concise map func (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxiangzhuang authored May 5, 2024
1 parent 16208a9 commit 97da600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bleu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 97da600

Please sign in to comment.