* Improve accuracy reporting during training

This commit is contained in:
Matthew Honnibal 2015-01-30 18:05:06 +11:00
parent b68f563c2f
commit 0f95712189

View File

@ -128,7 +128,7 @@ cdef class GreedyParser:
cdef int n_corr = 0
for i in range(tokens.length):
if gold_heads[i] != -1:
n_corr += (i + state.sent[i].head) == gold_heads[i]
n_corr += (i + state.sent[i].head) == gold_heads[i]
if force_gold and n_corr != tokens.length:
print py_words
print gold_heads