Fix offset calculation for other negative values

This commit is contained in:
Matthew Honnibal 2017-05-22 08:00:53 -05:00
parent f00f821496
commit 83ffd16474

View File

@ -354,7 +354,7 @@ cdef class NeuralEntityRecognizer(NeuralParser):
for j in range(6):
if ids[i, j] >= state.c.length:
ids[i, j] = -1
if ids[i, j] != -1:
if ids[i, j] >= 0:
ids[i, j] += state.c.offset
return ids