From 8d4bbacfc57382f319d7616270762ba4285cb69f Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 23 Jun 2015 16:07:34 +0200 Subject: [PATCH] * Fix edge navigation in Token objects --- spacy/tokens.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/tokens.pyx b/spacy/tokens.pyx index 55389cdde..7efdc6913 100644 --- a/spacy/tokens.pyx +++ b/spacy/tokens.pyx @@ -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: