diff --git a/spacy/pipeline.pyx b/spacy/pipeline.pyx index 7eb75953a..d319c05f2 100644 --- a/spacy/pipeline.pyx +++ b/spacy/pipeline.pyx @@ -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