{"action":"opened","number":570,"pull_request":{"url":"https://api.github.com/repos/explosion/spaCy/pulls/570","id":90554456,"html_url":"https://github.com/explosion/spaCy/pull/570","diff_url":"https://github.com/explosion/spaCy/pull/570.diff","patch_url":"https://github.com/explosion/spaCy/pull/570.patch","issue_url":"https://api.github.com/repos/explosion/spaCy/issues/570","number":570,"state":"open","locked":false,"title":"Fixed training examples","user":{"login":"kendricktan","id":9071748,"avatar_url":"https://avatars.githubusercontent.com/u/9071748?v=3","gravatar_id":"","url":"https://api.github.com/users/kendricktan","html_url":"https://github.com/kendricktan","followers_url":"https://api.github.com/users/kendricktan/followers","following_url":"https://api.github.com/users/kendricktan/following{/other_user}","gists_url":"https://api.github.com/users/kendricktan/gists{/gist_id}","starred_url":"https://api.github.com/users/kendricktan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kendricktan/subscriptions","organizations_url":"https://api.github.com/users/kendricktan/orgs","repos_url":"https://api.github.com/users/kendricktan/repos","events_url":"https://api.github.com/users/kendricktan/events{/privacy}","received_events_url":"https://api.github.com/users/kendricktan/received_events","type":"User","site_admin":false},"body":"## Changes:\r\n\r\n#### 1. train_ner won't crash if no data directory is not found\r\nSince v1.1.2, `nlp.tagger` will return `NoneType` if the data directory is not found. This breaks the example file and I've made a change so that `nlp.tagger` will contain the feature_templates from `Tagger` if data directory is not found, should be helpful for people who are just starting out.\r\n\r\n#### 2. Fixed train_tagger expected `spacy.gold.GoldParse, got list`\r\nI finally for to play around with `train_tagger.py` but was greeted with the following message:\r\n\r\n```python\r\n  File \"train_tagger.py\", line 74, in <module>\r\n    plac.call(main)\r\n  File \"/home/kendricktan/.virtualenvs/laice/lib/python3.5/site-packages/plac_core.py\", line 328, in call\r\n    cmd, result = parser.consume(arglist)\r\n  File \"/home/kendricktan/.virtualenvs/laice/lib/python3.5/site-packages/plac_core.py\", line 207, in consume\r\n    return cmd, self.func(*(args + varargs + extraopts), **kwargs)\r\n  File \"train_tagger.py\", line 60, in main\r\n    tagger.update(doc, tags)\r\nTypeError: Argument 'gold' has incorrect type (expected spacy.gold.GoldParse, got list)\r\n```\r\n\r\nFixed it by adding a `GoldParse` to `tag`. File now runs.","created_at":"2016-10-24T06:14:31Z","updated_at":"2016-10-24T06:14:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/explosion/spaCy/pulls/570/commits","review_comments_url":"https://api.github.com/repos/explosion/spaCy/pulls/570/comments","review_comment_url":"https://api.github.com/repos/explosion/spaCy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/explosion/spaCy/issues/570/comments","statuses_url":"https://api.github.com/repos/explosion/spaCy/statuses/ba8841234ad250274065c4c40308d566a42bef11","head":{"label":"kendricktan:master","ref":"master","sha":"ba8841234ad250274065c4c40308d566a42bef11","user":{"login":"kendricktan","id":9071748,"avatar_url":"https://avatars.githubusercontent.com/u/9071748?v=3","gravatar_id":"","url":"https://api.github.com/users/kendricktan","html_url":"https://github.com/kendricktan","followers_url":"https://api.github.com/users/kendricktan/followers","following_url":"https://api.github.com/users/kendricktan/following{/other_user}","gists_url":"https://api.github.com/users/kendricktan/gists{/gist_id}","starred_url":"https://api.github.com/users/kendricktan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kendricktan/subscriptions","organizations_url":"https://api.github.com/users/kendricktan/orgs","repos_url":"https://api.github.com/users/kendricktan/repos","events_url":"https://api.github.com/users/kendricktan/events{/privacy}","received_events_url":"https://api.github.com/users/kendricktan/received_events","type":"User","site_admin":false},"repo":{"id":71454651,"name":"spaCy","full_name":"kendricktan/spaCy","owner":{"login":"kendricktan","id":9071748,"avatar_url":"https://avatars.githubusercontent.com/u/9071748?v=3","gravatar_id":"","url":"https://api.github.com/users/kendricktan","html_url":"https://github.com/kendricktan","followers_url":"https://api.github.com/users/kendricktan/followers","following_url":"https://api.github.com/users/kendricktan/following{/other_user}","gists_url":"https://api.github.com/users/kendricktan/gists{/gist_id}","starred_url":"https://api.github.com/users/kendricktan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kendricktan/subscriptions","organizations_url":"https://api.github.com/users/kendricktan/orgs","repos_url":"https://api.github.com/users/kendricktan/repos","events_url":"https://api.github.com/users/kendricktan/events{/privacy}","received_events_url":"https://api.github.com/users/kendricktan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kendricktan/spaCy","description":"💫 Industrial-strength Natural Language Processing (NLP) with Python and Cython","fork":true,"url":"https://api.github.com/repos/kendricktan/spaCy","forks_url":"https://api.github.com/repos/kendricktan/spaCy/forks","keys_url":"https://api.github.com/repos/kendricktan/spaCy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kendricktan/spaCy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kendricktan/spaCy/teams","hooks_url":"https://api.github.com/repos/kendricktan/spaCy/hooks","issue_events_url":"https://api.github.com/repos/kendricktan/spaCy/issues/events{/number}","events_url":"https://api.github.com/repos/kendricktan/spaCy/events","assignees_url":"https://api.github.com/repos/kendricktan/spaCy/assignees{/user}","branches_url":"https://api.github.com/repos/kendricktan/spaCy/branches{/branch}","tags_url":"https://api.github.com/repos/kendricktan/spaCy/tags","blobs_url":"https://api.github.com/repos/kendricktan/spaCy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kendricktan/spaCy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kendricktan/spaCy/git/refs{/sha}","trees_url":"https://api.github.com/repos/kendricktan/spaCy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kendricktan/spaCy/statuses/{sha}","languages_url":"https://api.github.com/repos/kendricktan/spaCy/languages","stargazers_url":"https://api.github.com/repos/kendricktan/spaCy/stargazers","contributors_url":"https://api.github.com/repos/kendricktan/spaCy/contributors","subscribers_url":"https://api.github.com/repos/kendricktan/spaCy/subscribers","subscription_url":"https://api.github.com/repos/kendricktan/spaCy/subscription","commits_url":"https://api.github.com/repos/kendricktan/spaCy/commits{/sha}","git_commits_url":"https://api.github.com/repos/kendricktan/spaCy/git/commits{/sha}","comments_url":"https://api.github.com/repos/kendricktan/spaCy/comments{/number}","issue_comment_url":"https://api.github.com/repos/kendricktan/spaCy/issues/comments{/number}","contents_url":"https://api.github.com/repos/kendricktan/spaCy/contents/{+path}","compare_url":"https://api.github.com/repos/kendricktan/spaCy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kendricktan/spaCy/merges","archive_url":"https://api.github.com/repos/kendricktan/spaCy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kendricktan/spaCy/downloads","issues_url":"https://api.github.com/repos/kendricktan/spaCy/issues{/number}","pulls_url":"https://api.github.com/repos/kendricktan/spaCy/pulls{/number}","milestones_url":"https://api.github.com/repos/kendricktan/spaCy/milestones{/number}","notifications_url":"https://api.github.com/repos/kendricktan/spaCy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kendricktan/spaCy/labels{/name}","releases_url":"https://api.github.com/repos/kendricktan/spaCy/releases{/id}","deployments_url":"https://api.github.com/repos/kendricktan/spaCy/deployments","created_at":"2016-10-20T11:04:05Z","updated_at":"2016-10-22T08:15:56Z","pushed_at":"2016-10-24T06:09:51Z","git_url":"git://github.com/kendricktan/spaCy.git","ssh_url":"git@github.com:kendricktan/spaCy.git","clone_url":"https://github.com/kendricktan/spaCy.git","svn_url":"https://github.com/kendricktan/spaCy","homepage":"https://spacy.io","size":55505,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"explosion:master","ref":"master","sha":"a9289f6261a0b0df4c2dc68d1c88fcc9a5db477a","user":{"login":"explosion","id":20011530,"avatar_url":"https://avatars.githubusercontent.com/u/20011530?v=3","gravatar_id":"","url":"https://api.github.com/users/explosion","html_url":"https://github.com/explosion","followers_url":"https://api.github.com/users/explosion/followers","following_url":"https://api.github.com/users/explosion/following{/other_user}","gists_url":"https://api.github.com/users/explosion/gists{/gist_id}","starred_url":"https://api.github.com/users/explosion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/explosion/subscriptions","organizations_url":"https://api.github.com/users/explosion/orgs","repos_url":"https://api.github.com/users/explosion/repos","events_url":"https://api.github.com/users/explosion/events{/privacy}","received_events_url":"https://api.github.com/users/explosion/received_events","type":"Organization","site_admin":false},"repo":{"id":21467110,"name":"spaCy","full_name":"explosion/spaCy","owner":{"login":"explosion","id":20011530,"avatar_url":"https://avatars.githubusercontent.com/u/20011530?v=3","gravatar_id":"","url":"https://api.github.com/users/explosion","html_url":"https://github.com/explosion","followers_url":"https://api.github.com/users/explosion/followers","following_url":"https://api.github.com/users/explosion/following{/other_user}","gists_url":"https://api.github.com/users/explosion/gists{/gist_id}","starred_url":"https://api.github.com/users/explosion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/explosion/subscriptions","organizations_url":"https://api.github.com/users/explosion/orgs","repos_url":"https://api.github.com/users/explosion/repos","events_url":"https://api.github.com/users/explosion/events{/privacy}","received_events_url":"https://api.github.com/users/explosion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/explosion/spaCy","description":"💫 Industrial-strength Natural Language Processing (NLP) with Python and Cython","fork":false,"url":"https://api.github.com/repos/explosion/spaCy","forks_url":"https://api.github.com/repos/explosion/spaCy/forks","keys_url":"https://api.github.com/repos/explosion/spaCy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/explosion/spaCy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/explosion/spaCy/teams","hooks_url":"https://api.github.com/repos/explosion/spaCy/hooks","issue_events_url":"https://api.github.com/repos/explosion/spaCy/issues/events{/number}","events_url":"https://api.github.com/repos/explosion/spaCy/events","assignees_url":"https://api.github.com/repos/explosion/spaCy/assignees{/user}","branches_url":"https://api.github.com/repos/explosion/spaCy/branches{/branch}","tags_url":"https://api.github.com/repos/explosion/spaCy/tags","blobs_url":"https://api.github.com/repos/explosion/spaCy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/explosion/spaCy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/explosion/spaCy/git/refs{/sha}","trees_url":"https://api.github.com/repos/explosion/spaCy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/explosion/spaCy/statuses/{sha}","languages_url":"https://api.github.com/repos/explosion/spaCy/languages","stargazers_url":"https://api.github.com/repos/explosion/spaCy/stargazers","contributors_url":"https://api.github.com/repos/explosion/spaCy/contributors","subscribers_url":"https://api.github.com/repos/explosion/spaCy/subscribers","subscription_url":"https://api.github.com/repos/explosion/spaCy/subscription","commits_url":"https://api.github.com/repos/explosion/spaCy/commits{/sha}","git_commits_url":"https://api.github.com/repos/explosion/spaCy/git/commits{/sha}","comments_url":"https://api.github.com/repos/explosion/spaCy/comments{/number}","issue_comment_url":"https://api.github.com/repos/explosion/spaCy/issues/comments{/number}","contents_url":"https://api.github.com/repos/explosion/spaCy/contents/{+path}","compare_url":"https://api.github.com/repos/explosion/spaCy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/explosion/spaCy/merges","archive_url":"https://api.github.com/repos/explosion/spaCy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/explosion/spaCy/downloads","issues_url":"https://api.github.com/repos/explosion/spaCy/issues{/number}","pulls_url":"https://api.github.com/repos/explosion/spaCy/pulls{/number}","milestones_url":"https://api.github.com/repos/explosion/spaCy/milestones{/number}","notifications_url":"https://api.github.com/repos/explosion/spaCy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/explosion/spaCy/labels{/name}","releases_url":"https://api.github.com/repos/explosion/spaCy/releases{/id}","deployments_url":"https://api.github.com/repos/explosion/spaCy/deployments","created_at":"2014-07-03T15:15:40Z","updated_at":"2016-10-24T03:41:18Z","pushed_at":"2016-10-24T06:14:31Z","git_url":"git://github.com/explosion/spaCy.git","ssh_url":"git@github.com:explosion/spaCy.git","clone_url":"https://github.com/explosion/spaCy.git","svn_url":"https://github.com/explosion/spaCy","homepage":"https://spacy.io","size":65921,"stargazers_count":2629,"watchers_count":2629,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":308,"mirror_url":null,"open_issues_count":48,"forks":308,"open_issues":48,"watchers":2629,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/explosion/spaCy/pulls/570"},"html":{"href":"https://github.com/explosion/spaCy/pull/570"},"issue":{"href":"https://api.github.com/repos/explosion/spaCy/issues/570"},"comments":{"href":"https://api.github.com/repos/explosion/spaCy/issues/570/comments"},"review_comments":{"href":"https://api.github.com/repos/explosion/spaCy/pulls/570/comments"},"review_comment":{"href":"https://api.github.com/repos/explosion/spaCy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/explosion/spaCy/pulls/570/commits"},"statuses":{"href":"https://api.github.com/repos/explosion/spaCy/statuses/ba8841234ad250274065c4c40308d566a42bef11"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":25,"deletions":12,"changed_files":2}}
{"actor":{"display_login":"kendricktan"}}