From 53a3824334551120bc30f4fa909524a4bb15f1f3 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 31 May 2017 03:01:02 +0200 Subject: [PATCH] Fix mistake in ner feature --- spacy/syntax/_state.pxd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/_state.pxd b/spacy/syntax/_state.pxd index 12ec19c16..c06851978 100644 --- a/spacy/syntax/_state.pxd +++ b/spacy/syntax/_state.pxd @@ -100,7 +100,7 @@ cdef cppclass StateC: ids[4] = this.E(0)-1 else: ids[4] = -1 - if ids[3] < (this.length+1): + if (ids[3]+1) < this.length: ids[5] = this.E(0)+1 else: ids[5] = -1