From 69e69b509925ba8018168e8a97f4e5d4ccc766fd Mon Sep 17 00:00:00 2001 From: webSue Date: Thu, 19 Oct 2023 21:56:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E5=88=86=E8=AF=8D=E8=AF=84=E6=B5=8B=E5=B7=A5=E5=85=B7=E6=AF=94?= =?UTF-8?q?=E8=BE=83=E6=97=B6=E7=9A=84=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/hankcs/hanlp/seg/common/CWSEvaluator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/hankcs/hanlp/seg/common/CWSEvaluator.java b/src/main/java/com/hankcs/hanlp/seg/common/CWSEvaluator.java index 171bd3009..096efe53b 100644 --- a/src/main/java/com/hankcs/hanlp/seg/common/CWSEvaluator.java +++ b/src/main/java/com/hankcs/hanlp/seg/common/CWSEvaluator.java @@ -130,7 +130,7 @@ public void compare(String gold, String pred) } A_cap_B_size++; goldLen += wordArray[goldIndex].length(); - predLen += wordArray[goldIndex].length(); + predLen += predArray[predIndex].length(); goldIndex++; predIndex++; }