We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4efab6 commit 2e755adCopy full SHA for 2e755ad
python/dnlp/utils/evaluation.py
@@ -77,7 +77,7 @@ def evaluate_cws(model, data_path: str):
77
c_count = 0
78
p_count = 0
79
r_count = 0
80
- for sentence, label in enumerate(characters, labels_true):
+ for sentence, label in zip(characters, labels_true):
81
words, labels_predict = model.predict(sentence, return_labels=True)
82
c, p, r = get_cws_statistics(label, labels_predict)
83
c_count += c
0 commit comments