mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
* Fix shifted bit vector in stateclass --- should reflect whether the word has been *unshifted*.
This commit is contained in:
parent
aa9625f688
commit
bb09b5d91a
|
@ -134,7 +134,6 @@ cdef class StateClass:
|
|||
|
||||
cdef void push(self) nogil:
|
||||
self._stack[self._s_i] = self.B(0)
|
||||
self.shifted[self.B(0)] = True
|
||||
self._s_i += 1
|
||||
self._b_i += 1
|
||||
|
||||
|
@ -145,6 +144,7 @@ cdef class StateClass:
|
|||
self._b_i -= 1
|
||||
self._buffer[self._b_i] = self.S(0)
|
||||
self._s_i -= 1
|
||||
self.shifted[self.B(0)] = True
|
||||
|
||||
cdef void add_arc(self, int head, int child, int label) nogil:
|
||||
if self.has_head(child):
|
||||
|
|
Loading…
Reference in New Issue
Block a user