mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-03 10:55:52 +03:00
* Fix error in span.sent
This commit is contained in:
parent
bb94022975
commit
8c0888d6cb
|
@ -103,7 +103,7 @@ cdef class Span:
|
|||
'''Get the sentence span that this span is a part of.'''
|
||||
def __get__(self):
|
||||
# This should raise if we're not parsed.
|
||||
doc.sents
|
||||
self.doc.sents
|
||||
cdef int n = 0
|
||||
root = &self.doc.c[self.start]
|
||||
while root.head != 0:
|
||||
|
|
Loading…
Reference in New Issue
Block a user