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++; }