mirror of https://github.com/explosion/spaCy.git
fix bug in StateC.set_break()
This commit is contained in:
parent
3c44b5dc1a
commit
dbf8f5f3ec
|
@ -281,8 +281,8 @@ cdef cppclass StateC:
|
||||||
this._sent[i].ent_type = ent_type
|
this._sent[i].ent_type = ent_type
|
||||||
|
|
||||||
void set_break(int i) nogil:
|
void set_break(int i) nogil:
|
||||||
if 0 <= this.B(0) < this.length:
|
if 0 <= i < this.length:
|
||||||
this._sent[this.B(0)].sent_start = True
|
this._sent[i].sent_start = True
|
||||||
this._break = this._b_i
|
this._break = this._b_i
|
||||||
|
|
||||||
void clone(const StateC* src) nogil:
|
void clone(const StateC* src) nogil:
|
||||||
|
|
Loading…
Reference in New Issue