mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-03 19:08:06 +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.'''
|
'''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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user