mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 17:24:41 +03:00
* Improve accuracy reporting during training
This commit is contained in:
parent
b68f563c2f
commit
0f95712189
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user