From 0cb090e52671eb05a31f5944df7dd8dc1cc209df Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 14 Jan 2018 15:02:15 +0100 Subject: [PATCH] Fix infinite recursion in token.sent_start. Closes #1640 --- spacy/tokens/token.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/token.pyx b/spacy/tokens/token.pyx index 2e1aa81b4..281c0a4be 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -354,7 +354,7 @@ cdef class Token: if self.i == 0: return False else: - return self.sent_start + return self.c.sent_start def __set__(self, value): self.is_sent_start = value