{"action":"created","issue":{"url":"https://api.github.com/repos/explosion/spaCy/issues/450","repository_url":"https://api.github.com/repos/explosion/spaCy","labels_url":"https://api.github.com/repos/explosion/spaCy/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/explosion/spaCy/issues/450/comments","events_url":"https://api.github.com/repos/explosion/spaCy/issues/450/events","html_url":"https://github.com/explosion/spaCy/issues/450","id":164320564,"number":450,"title":"error token/spans (spacy/tokens/doc.cpp:4890)","user":{"login":"ahelaatabi","id":11751548,"avatar_url":"https://avatars.githubusercontent.com/u/11751548?v=3","gravatar_id":"","url":"https://api.github.com/users/ahelaatabi","html_url":"https://github.com/ahelaatabi","followers_url":"https://api.github.com/users/ahelaatabi/followers","following_url":"https://api.github.com/users/ahelaatabi/following{/other_user}","gists_url":"https://api.github.com/users/ahelaatabi/gists{/gist_id}","starred_url":"https://api.github.com/users/ahelaatabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahelaatabi/subscriptions","organizations_url":"https://api.github.com/users/ahelaatabi/orgs","repos_url":"https://api.github.com/users/ahelaatabi/repos","events_url":"https://api.github.com/users/ahelaatabi/events{/privacy}","received_events_url":"https://api.github.com/users/ahelaatabi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-07T14:20:00Z","updated_at":"2016-10-12T13:15:25Z","closed_at":null,"body":"Hey,\r\nI came across this error :\r\n`if token.nbor(i=1) :\r\n  File \"spacy/tokens/token.pyx\", line 94, in spacy.tokens.token.Token.nbor (spacy/tokens/token.cpp:4699)\r\n    return self.doc[self.i+i]\r\n  File \"spacy/tokens/doc.pyx\", line 100, in spacy.tokens.doc.Doc.__getitem__ (spacy/tokens/doc.cpp:4890)\r\n    if self._py_tokens[i] is not None:\r\nIndexError: list index out of range`\r\n\r\nWhat I was trying to do is run this small:\r\n`for sent in doc.sents:\r\n    for token in sent:\r\n        if token.nbor(i=1) :\r\n                print token,token.nbor(i=1)`\r\n\r\nThe purpose of this small code was to merge in the \"doc\" span the consecutive nouns <the ones with tag have 'NN'>. All this before passing it to a relation extraction algorithm.\r\n\r\nThanks in advance,\r\n"},"comment":{"url":"https://api.github.com/repos/explosion/spaCy/issues/comments/253210028","html_url":"https://github.com/explosion/spaCy/issues/450#issuecomment-253210028","issue_url":"https://api.github.com/repos/explosion/spaCy/issues/450","id":253210028,"user":{"login":"cyuxlif","id":5780053,"avatar_url":"https://avatars.githubusercontent.com/u/5780053?v=3","gravatar_id":"","url":"https://api.github.com/users/cyuxlif","html_url":"https://github.com/cyuxlif","followers_url":"https://api.github.com/users/cyuxlif/followers","following_url":"https://api.github.com/users/cyuxlif/following{/other_user}","gists_url":"https://api.github.com/users/cyuxlif/gists{/gist_id}","starred_url":"https://api.github.com/users/cyuxlif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyuxlif/subscriptions","organizations_url":"https://api.github.com/users/cyuxlif/orgs","repos_url":"https://api.github.com/users/cyuxlif/repos","events_url":"https://api.github.com/users/cyuxlif/events{/privacy}","received_events_url":"https://api.github.com/users/cyuxlif/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T13:15:25Z","updated_at":"2016-10-12T13:15:25Z","body":"same problem"}}
{"actor":{"display_login":"cyuxlif"}}