mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Merge branch 'master' of ssh://github.com/spacy-io/spaCy
This commit is contained in:
commit
41342ca79b
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user