* Fix shifted bit vector in stateclass --- should reflect whether the word has been *unshifted*.

This commit is contained in:
Matthew Honnibal 2015-06-10 11:33:09 +02:00
parent aa9625f688
commit bb09b5d91a

View File

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