{"action":"opened","issue":{"url":"https://api.github.com/repos/honnibal/spaCy/issues/19","labels_url":"https://api.github.com/repos/honnibal/spaCy/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/honnibal/spaCy/issues/19/comments","events_url":"https://api.github.com/repos/honnibal/spaCy/issues/19/events","html_url":"https://github.com/honnibal/spaCy/issues/19","id":56755260,"number":19,"title":"AssertionError when parsing empty string","user":{"login":"leofidus","id":4348296,"avatar_url":"https://avatars.githubusercontent.com/u/4348296?v=3","gravatar_id":"","url":"https://api.github.com/users/leofidus","html_url":"https://github.com/leofidus","followers_url":"https://api.github.com/users/leofidus/followers","following_url":"https://api.github.com/users/leofidus/following{/other_user}","gists_url":"https://api.github.com/users/leofidus/gists{/gist_id}","starred_url":"https://api.github.com/users/leofidus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leofidus/subscriptions","organizations_url":"https://api.github.com/users/leofidus/orgs","repos_url":"https://api.github.com/users/leofidus/repos","events_url":"https://api.github.com/users/leofidus/events{/privacy}","received_events_url":"https://api.github.com/users/leofidus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-06T01:03:42Z","updated_at":"2015-02-06T01:03:42Z","closed_at":null,"body":"I happened to stumble over this while parsing a large dataset: spaCy throws an AssertionError when trying to parse an empty string.\r\n\r\nMinimal Example:\r\n\r\n```python\r\nfrom spacy.en import English\r\nnlp = English()\r\nnlp(u\"\")\r\n```\r\n\r\nresults in\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"test.py\", line 3, in <module>\r\n    nlp(u\"\")\r\n  File \"/usr/local/lib/python2.7/dist-packages/spacy/en/__init__.py\", line 149, in __call__\r\n    self.parser(tokens)\r\n  File \"spacy/syntax/parser.pyx\", line 77, in spacy.syntax.parser.GreedyParser.__call__ (spacy/syntax/parser.cpp:4122)\r\n  File \"spacy/syntax/_state.pyx\", line 128, in spacy.syntax._state.init_state (spacy/syntax/_state.cpp:2715)\r\n  File \"spacy/syntax/_state.pyx\", line 33, in spacy.syntax._state.push_stack (spacy/syntax/_state.cpp:1855)\r\nAssertionError\r\n```"}}