mirror of https://github.com/explosion/spaCy.git
call deprojectivization after parsing
This commit is contained in:
parent
472f576b82
commit
3c44b5dc1a
|
@ -387,7 +387,7 @@ cdef class ArcEager(TransitionSystem):
|
||||||
def finalize_doc(self, doc):
|
def finalize_doc(self, doc):
|
||||||
doc.is_parsed = True
|
doc.is_parsed = True
|
||||||
if doc.vocab.lang == 'de':
|
if doc.vocab.lang == 'de':
|
||||||
PseudoProjectivity.projectivize(doc)
|
PseudoProjectivity.deprojectivize(doc)
|
||||||
|
|
||||||
cdef int set_valid(self, int* output, const StateC* st) nogil:
|
cdef int set_valid(self, int* output, const StateC* st) nogil:
|
||||||
cdef bint[N_MOVES] is_valid
|
cdef bint[N_MOVES] is_valid
|
||||||
|
|
Loading…
Reference in New Issue