Skip to content

Commit

Permalink
fix evaluation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
supercoderhawk committed Nov 29, 2017
1 parent d4efab6 commit 2e755ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dnlp/utils/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def evaluate_cws(model, data_path: str):
c_count = 0
p_count = 0
r_count = 0
for sentence, label in enumerate(characters, labels_true):
for sentence, label in zip(characters, labels_true):
words, labels_predict = model.predict(sentence, return_labels=True)
c, p, r = get_cws_statistics(label, labels_predict)
c_count += c
Expand Down

0 comments on commit 2e755ad

Please sign in to comment.