From dbf8f5f3ec345cfbd12b9d425c54d85e17549076 Mon Sep 17 00:00:00 2001 From: Wolfgang Seeker Date: Thu, 5 May 2016 15:15:34 +0200 Subject: [PATCH] fix bug in StateC.set_break() --- spacy/syntax/_state.pxd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/syntax/_state.pxd b/spacy/syntax/_state.pxd index d7a24dbd1..bf1dbf90f 100644 --- a/spacy/syntax/_state.pxd +++ b/spacy/syntax/_state.pxd @@ -281,8 +281,8 @@ cdef cppclass StateC: this._sent[i].ent_type = ent_type void set_break(int i) nogil: - if 0 <= this.B(0) < this.length: - this._sent[this.B(0)].sent_start = True + if 0 <= i < this.length: + this._sent[i].sent_start = True this._break = this._b_i void clone(const StateC* src) nogil: