* Fix error in span.sent

This commit is contained in:
Matthew Honnibal 2016-05-06 00:28:05 +02:00
parent bb94022975
commit 8c0888d6cb

View File

@ -103,7 +103,7 @@ cdef class Span:
'''Get the sentence span that this span is a part of.''' '''Get the sentence span that this span is a part of.'''
def __get__(self): def __get__(self):
# This should raise if we're not parsed. # This should raise if we're not parsed.
doc.sents self.doc.sents
cdef int n = 0 cdef int n = 0
root = &self.doc.c[self.start] root = &self.doc.c[self.start]
while root.head != 0: while root.head != 0: