* Upd stateclass.print_state

This commit is contained in:
Matthew Honnibal 2015-06-14 17:44:29 +02:00
parent bdd07bf000
commit 763cbd23d5

View File

@ -228,7 +228,7 @@ cdef class StateClass:
third = words[self.S(2)] + '_%d' % self.S_(2).head
n0 = words[self.B(0)]
n1 = words[self.B(1)]
return ' '.join((str(self.buffer_length()), str(self.B_(0).sent_end), str(self._b_i), str(self._break), str(self.length), str(self.stack_depth()), third, second, top, '|', n0, n1))
return ' '.join((third, second, top, '|', n0, n1))
# From https://en.wikipedia.org/wiki/Hamming_weight