* Fix edge navigation in Token objects

This commit is contained in:
Matthew Honnibal 2015-06-23 16:07:34 +02:00
parent 35c290bee4
commit 8d4bbacfc5

View File

@ -548,13 +548,13 @@ cdef class Token:
property left_edge:
def __get__(self):
return Token.cinit(self.vocab, self._string,
self.c + self.c.l_edge, self.i + self.c.l_edge,
(self.c - self.i) + self.c.l_edge, self.c.l_edge,
self.array_len, self._seq)
property right_edge:
def __get__(self):
return Token.cinit(self.vocab, self._string,
self.c + self.c.r_edge, self.i + self.c.r_edge,
(self.c - self.i) + self.c.r_edge, self.c.r_edge,
self.array_len, self._seq)
property head: