mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Fix edge navigation in Token objects
This commit is contained in:
parent
35c290bee4
commit
8d4bbacfc5
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user