Closed
Description
I guess it was unexpected to get this error:
[s for s in nlp(u'').sents] -> IndexError: list index out of range
I.e. calling sents on an empty string errors out - I wonder if this is the right behavior, or if sents should return an empty array?
Activity
syllog1sm commentedon Sep 7, 2016
Thanks.
This should either return an empty list or yield out of an empty generator (off the top of my head, I don't remember whether
.sents
is a generator...Which is probably a bad sign. =/)Test and fix Issue #411: IndexError when .sents property is used on e…
lock commentedon May 9, 2018
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.