mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +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:
|
property left_edge:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
return Token.cinit(self.vocab, self._string,
|
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)
|
self.array_len, self._seq)
|
||||||
|
|
||||||
property right_edge:
|
property right_edge:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
return Token.cinit(self.vocab, self._string,
|
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)
|
self.array_len, self._seq)
|
||||||
|
|
||||||
property head:
|
property head:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user