mirror of https://github.com/explosion/spaCy.git
Prohibit Break when sent_start < 0
This commit is contained in:
parent
5a67efeccc
commit
4cc84b0234
|
@ -250,6 +250,8 @@ cdef class Break:
|
||||||
return False
|
return False
|
||||||
elif st.B_(0).l_edge < 0:
|
elif st.B_(0).l_edge < 0:
|
||||||
return False
|
return False
|
||||||
|
elif st._sent[st.B_(0).l_edge].sent_start < 0:
|
||||||
|
return False
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue