Merge branch 'master' of ssh://github.com/spacy-io/spaCy

This commit is contained in:
Matthew Honnibal 2016-05-06 00:17:58 +02:00
commit 41342ca79b
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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