mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-27 20:33:42 +03:00
Try to fix root-outside-sentence bug
This commit is contained in:
parent
acebd01033
commit
8cd06cc763
|
@ -314,8 +314,8 @@ cdef cppclass StateC:
|
||||||
this._stack[this._s_i] = this.B(0)
|
this._stack[this._s_i] = this.B(0)
|
||||||
this._s_i += 1
|
this._s_i += 1
|
||||||
this._b_i += 1
|
this._b_i += 1
|
||||||
if this.B_(0).sent_start == 1:
|
if this.safe_get(this.B_(0).l_edge).sent_start == 1:
|
||||||
this.set_break(this.B(0))
|
this.set_break(this.B_(0).l_edge)
|
||||||
if this._b_i > this._break:
|
if this._b_i > this._break:
|
||||||
this._break = -1
|
this._break = -1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user