{"action":"created","issue":{"url":"https://api.github.com/repos/explosion/spaCy/issues/2445","repository_url":"https://api.github.com/repos/explosion/spaCy","labels_url":"https://api.github.com/repos/explosion/spaCy/issues/2445/labels{/name}","comments_url":"https://api.github.com/repos/explosion/spaCy/issues/2445/comments","events_url":"https://api.github.com/repos/explosion/spaCy/issues/2445/events","html_url":"https://github.com/explosion/spaCy/issues/2445","id":331993605,"node_id":"MDU6SXNzdWUzMzE5OTM2MDU=","number":2445,"title":"index out of range while training spacy","user":{"login":"jacob7182","id":24564355,"node_id":"MDQ6VXNlcjI0NTY0MzU1","avatar_url":"https://avatars3.githubusercontent.com/u/24564355?v=4","gravatar_id":"","url":"https://api.github.com/users/jacob7182","html_url":"https://github.com/jacob7182","followers_url":"https://api.github.com/users/jacob7182/followers","following_url":"https://api.github.com/users/jacob7182/following{/other_user}","gists_url":"https://api.github.com/users/jacob7182/gists{/gist_id}","starred_url":"https://api.github.com/users/jacob7182/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacob7182/subscriptions","organizations_url":"https://api.github.com/users/jacob7182/orgs","repos_url":"https://api.github.com/users/jacob7182/repos","events_url":"https://api.github.com/users/jacob7182/events{/privacy}","received_events_url":"https://api.github.com/users/jacob7182/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-13T13:25:17Z","updated_at":"2018-07-13T14:08:59Z","closed_at":"2018-06-13T14:06:06Z","author_association":"NONE","body":"Hi, I am getting an error at the GoldParse\r\nnlp = spacy.load('en_core_web_sm')\r\ntrain_data = [('2 ABC DEF XYZ',['U-ORDINAL','O','O','O']),\r\n        ('DEF Two ABC XYZ',['O','U-ORDINAL','O','O'])]\r\n\r\n optimizer = nlp.begin_training()\r\n for itn in range(50):\r\n        random.shuffle(train_data)\r\n        for raw_text, entity_offsets in train_data:            \r\n            doc = nlp.make_doc(raw_text)              \r\n            nlp.tagger(doc)\r\n            gold = GoldParse(doc, entities=entity_offsets)                \r\n            nlp.entity.update([doc], [gold], drop=0.5, sgd=optimizer)\r\n\r\n\r\nGetting an error at the line GoldParse \"list index out of range\"\r\n\r\nMy actual training_data has around 180 items.\r\nIs there an issue with the structure of train_data? \r\nIf the issue is with the text and corresponding entity annotation, then is there a better way to catch it before the GoldParse statement to see which of the item is causing issue?\r\n\r\n\r\n* Operating System: Windows 64 bit\r\n* Python Version Used: 3.6\r\n* spaCy Version Used: 2.0.11\r\n* Environment Information: \r\n"},"comment":{"url":"https://api.github.com/repos/explosion/spaCy/issues/comments/404844358","html_url":"https://github.com/explosion/spaCy/issues/2445#issuecomment-404844358","issue_url":"https://api.github.com/repos/explosion/spaCy/issues/2445","id":404844358,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDg0NDM1OA==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-07-13T14:08:59Z","updated_at":"2018-07-13T14:08:59Z","author_association":"NONE","body":"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.\n"}}
{"actor":{"display_login":"lock"}}