Skip to content

Commit 2e755ad

Browse files
fix evaluation bug
1 parent d4efab6 commit 2e755ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/dnlp/utils/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def evaluate_cws(model, data_path: str):
7777
c_count = 0
7878
p_count = 0
7979
r_count = 0
80-
for sentence, label in enumerate(characters, labels_true):
80+
for sentence, label in zip(characters, labels_true):
8181
words, labels_predict = model.predict(sentence, return_labels=True)
8282
c, p, r = get_cws_statistics(label, labels_predict)
8383
c_count += c

0 commit comments

Comments
 (0)