8000 calling sents() on empty string · Issue #411 · explosion/spaCy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
calling sents() on empty string #411
Closed
@nartz

Description

@nartz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugs and behaviour differing from documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0