mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix offset calculation for other negative values
This commit is contained in:
parent
f00f821496
commit
83ffd16474
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user