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: diff --git a/spacy/syntax/arc_eager.pyx b/spacy/syntax/arc_eager.pyx index bb4738a30..4e2590734 100644 --- a/spacy/syntax/arc_eager.pyx +++ b/spacy/syntax/arc_eager.pyx @@ -387,7 +387,7 @@ cdef class ArcEager(TransitionSystem): def finalize_doc(self, doc): doc.is_parsed = True if doc.vocab.lang == 'de': - PseudoProjectivity.projectivize(doc) + PseudoProjectivity.deprojectivize(doc) cdef int set_valid(self, int* output, const StateC* st) nogil: cdef bint[N_MOVES] is_valid