From 89e3c2bab13211e5cc161a6f37e70ab8b4f6fcc9 Mon Sep 17 00:00:00 2001 From: HuengchI <37769009+HuengchI@users.noreply.github.com> Date: Thu, 27 Jun 2024 20:54:03 +0800 Subject: [PATCH] Update rouge_score.py Fix the error of the F1 formula in the doc-string --- rouge_chinese/rouge_score.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rouge_chinese/rouge_score.py b/rouge_chinese/rouge_score.py index 1afd16c..dcda668 100644 --- a/rouge_chinese/rouge_score.py +++ b/rouge_chinese/rouge_score.py @@ -347,7 +347,7 @@ def rouge_l_summary_level( Calculated according to: R_lcs = SUM(1, u)[LCS(r_i,C)]/m P_lcs = SUM(1, u)[LCS(r_i,C)]/n - F_lcs = (2*R_lcs*P_lcs) / (R_lcs * P_lcs) + F_lcs = (2*R_lcs*P_lcs) / (R_lcs + P_lcs) where: SUM(i,u) = SUM from i through u