{"action":"created","issue":{"url":"https://api.github.com/repos/nltk/nltk/issues/892","labels_url":"https://api.github.com/repos/nltk/nltk/issues/892/labels{/name}","comments_url":"https://api.github.com/repos/nltk/nltk/issues/892/comments","events_url":"https://api.github.com/repos/nltk/nltk/issues/892/events","html_url":"https://github.com/nltk/nltk/pull/892","id":58363289,"number":892,"title":"Populating each DependencyGraph node(aka dictionary) with all the keys","user":{"login":"oplatek","id":229266,"avatar_url":"https://avatars.githubusercontent.com/u/229266?v=3","gravatar_id":"","url":"https://api.github.com/users/oplatek","html_url":"https://github.com/oplatek","followers_url":"https://api.github.com/users/oplatek/followers","following_url":"https://api.github.com/users/oplatek/following{/other_user}","gists_url":"https://api.github.com/users/oplatek/gists{/gist_id}","starred_url":"https://api.github.com/users/oplatek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oplatek/subscriptions","organizations_url":"https://api.github.com/users/oplatek/orgs","repos_url":"https://api.github.com/users/oplatek/repos","events_url":"https://api.github.com/users/oplatek/events{/privacy}","received_events_url":"https://api.github.com/users/oplatek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-20T14:55:19Z","updated_at":"2015-03-25T03:44:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nltk/nltk/pulls/892","html_url":"https://github.com/nltk/nltk/pull/892","diff_url":"https://github.com/nltk/nltk/pull/892.diff","patch_url":"https://github.com/nltk/nltk/pull/892.patch"},"body":"Hi @dimazest, and @stevenbird,\r\nSome functions in``nltk.parse.dependencygraph.DependencyGraph``\r\n e.g ``nltk.to_conll`` expects that all keys exists for each node.\r\n// I think that this is reasonable assumption\r\nHowever, most of the code does not specify all the keys.\r\nE.g. the dependency graphs generated by ``nltk.parse.dependencygraph.ProbabilisticNonprojectiveParser``\r\ncontain nodes with missing ``lemma`` key.\r\n\r\nAs a solution, I changed the default behaviour for initializing each node\r\nwith all the expected keys and corresponding default values.\r\nSee the ``DependencyGraph.defaultnode`` in the PR.\r\n\r\nThanks for your work!"},"comment":{"url":"https://api.github.com/repos/nltk/nltk/issues/comments/85816773","html_url":"https://github.com/nltk/nltk/pull/892#issuecomment-85816773","issue_url":"https://api.github.com/repos/nltk/nltk/issues/892","id":85816773,"user":{"login":"stevenbird","id":55406,"avatar_url":"https://avatars.githubusercontent.com/u/55406?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenbird","html_url":"https://github.com/stevenbird","followers_url":"https://api.github.com/users/stevenbird/followers","following_url":"https://api.github.com/users/stevenbird/following{/other_user}","gists_url":"https://api.github.com/users/stevenbird/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenbird/subscriptions","organizations_url":"https://api.github.com/users/stevenbird/orgs","repos_url":"https://api.github.com/users/stevenbird/repos","events_url":"https://api.github.com/users/stevenbird/events{/privacy}","received_events_url":"https://api.github.com/users/stevenbird/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T03:44:04Z","updated_at":"2015-03-25T03:44:04Z","body":"OK, thanks @dimazest "}}