{"action":"created","comment":{"url":"https://api.github.com/repos/piskvorky/gensim/pulls/comments/65055806","id":65055806,"diff_hunk":"@@ -883,7 +883,7 @@ def top_topics(self, corpus, num_words=20):\n         top_topics = sorted(coherence_scores, key=lambda t: t[1], reverse=True)\n         return top_topics\n \n-    def get_document_topics(self, bow, minimum_probability=None):\n+    def get_document_topics(self, bow, minimum_probability=None, per_word_topics=False):","path":"gensim/models/ldamodel.py","position":5,"original_position":5,"commit_id":"775f8a779d924e7ae76306df1620c88173587bd2","original_commit_id":"3b45a3fee16b34886f8b9e970dd2e1b8bd4f7b04","user":{"login":"bhargavvader","id":8374816,"avatar_url":"https://avatars.githubusercontent.com/u/8374816?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavvader","html_url":"https://github.com/bhargavvader","followers_url":"https://api.github.com/users/bhargavvader/followers","following_url":"https://api.github.com/users/bhargavvader/following{/other_user}","gists_url":"https://api.github.com/users/bhargavvader/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavvader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavvader/subscriptions","organizations_url":"https://api.github.com/users/bhargavvader/orgs","repos_url":"https://api.github.com/users/bhargavvader/repos","events_url":"https://api.github.com/users/bhargavvader/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavvader/received_events","type":"User","site_admin":false},"body":"Added docs.","created_at":"2016-05-30T10:53:29Z","updated_at":"2016-05-30T10:53:29Z","html_url":"https://github.com/piskvorky/gensim/pull/704#discussion_r65055806","pull_request_url":"https://api.github.com/repos/piskvorky/gensim/pulls/704","_links":{"self":{"href":"https://api.github.com/repos/piskvorky/gensim/pulls/comments/65055806"},"html":{"href":"https://github.com/piskvorky/gensim/pull/704#discussion_r65055806"},"pull_request":{"href":"https://api.github.com/repos/piskvorky/gensim/pulls/704"}}},"pull_request":{"url":"https://api.github.com/repos/piskvorky/gensim/pulls/704","id":70971010,"html_url":"https://github.com/piskvorky/gensim/pull/704","diff_url":"https://github.com/piskvorky/gensim/pull/704.diff","patch_url":"https://github.com/piskvorky/gensim/pull/704.patch","issue_url":"https://api.github.com/repos/piskvorky/gensim/issues/704","number":704,"state":"open","locked":false,"title":"[MRG] Per Word Topic in a Document.","user":{"login":"bhargavvader","id":8374816,"avatar_url":"https://avatars.githubusercontent.com/u/8374816?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavvader","html_url":"https://github.com/bhargavvader","followers_url":"https://api.github.com/users/bhargavvader/followers","following_url":"https://api.github.com/users/bhargavvader/following{/other_user}","gists_url":"https://api.github.com/users/bhargavvader/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavvader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavvader/subscriptions","organizations_url":"https://api.github.com/users/bhargavvader/orgs","repos_url":"https://api.github.com/users/bhargavvader/repos","events_url":"https://api.github.com/users/bhargavvader/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavvader/received_events","type":"User","site_admin":false},"body":"With reference to #683 .\r\n@piskvorky , @tmylk , as you suggested, if `per_word_topics=True`, it returns a 2-tuple with `(per-topic-probability-for-this-document, per-wordtype-best-topic-for-this-document)`. \r\n\r\nIt runs fine for the test cases on my local machine, and if the logic and approach looks fine I can write tests for it.","created_at":"2016-05-22T08:15:25Z","updated_at":"2016-05-30T10:53:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9301c2bfbf12326e2986867bef3350f189d24297","assignee":{"login":"tmylk","id":1261528,"avatar_url":"https://avatars.githubusercontent.com/u/1261528?v=3","gravatar_id":"","url":"https://api.github.com/users/tmylk","html_url":"https://github.com/tmylk","followers_url":"https://api.github.com/users/tmylk/followers","following_url":"https://api.github.com/users/tmylk/following{/other_user}","gists_url":"https://api.github.com/users/tmylk/gists{/gist_id}","starred_url":"https://api.github.com/users/tmylk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmylk/subscriptions","organizations_url":"https://api.github.com/users/tmylk/orgs","repos_url":"https://api.github.com/users/tmylk/repos","events_url":"https://api.github.com/users/tmylk/events{/privacy}","received_events_url":"https://api.github.com/users/tmylk/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/piskvorky/gensim/pulls/704/commits","review_comments_url":"https://api.github.com/repos/piskvorky/gensim/pulls/704/comments","review_comment_url":"https://api.github.com/repos/piskvorky/gensim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/piskvorky/gensim/issues/704/comments","statuses_url":"https://api.github.com/repos/piskvorky/gensim/statuses/775f8a779d924e7ae76306df1620c88173587bd2","head":{"label":"bhargavvader:TopicWord","ref":"TopicWord","sha":"775f8a779d924e7ae76306df1620c88173587bd2","user":{"login":"bhargavvader","id":8374816,"avatar_url":"https://avatars.githubusercontent.com/u/8374816?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavvader","html_url":"https://github.com/bhargavvader","followers_url":"https://api.github.com/users/bhargavvader/followers","following_url":"https://api.github.com/users/bhargavvader/following{/other_user}","gists_url":"https://api.github.com/users/bhargavvader/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavvader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavvader/subscriptions","organizations_url":"https://api.github.com/users/bhargavvader/orgs","repos_url":"https://api.github.com/users/bhargavvader/repos","events_url":"https://api.github.com/users/bhargavvader/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavvader/received_events","type":"User","site_admin":false},"repo":{"id":54395982,"name":"gensim","full_name":"bhargavvader/gensim","owner":{"login":"bhargavvader","id":8374816,"avatar_url":"https://avatars.githubusercontent.com/u/8374816?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavvader","html_url":"https://github.com/bhargavvader","followers_url":"https://api.github.com/users/bhargavvader/followers","following_url":"https://api.github.com/users/bhargavvader/following{/other_user}","gists_url":"https://api.github.com/users/bhargavvader/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavvader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavvader/subscriptions","organizations_url":"https://api.github.com/users/bhargavvader/orgs","repos_url":"https://api.github.com/users/bhargavvader/repos","events_url":"https://api.github.com/users/bhargavvader/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavvader/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhargavvader/gensim","description":"Topic Modelling for Humans","fork":true,"url":"https://api.github.com/repos/bhargavvader/gensim","forks_url":"https://api.github.com/repos/bhargavvader/gensim/forks","keys_url":"https://api.github.com/repos/bhargavvader/gensim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhargavvader/gensim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhargavvader/gensim/teams","hooks_url":"https://api.github.com/repos/bhargavvader/gensim/hooks","issue_events_url":"https://api.github.com/repos/bhargavvader/gensim/issues/events{/number}","events_url":"https://api.github.com/repos/bhargavvader/gensim/events","assignees_url":"https://api.github.com/repos/bhargavvader/gensim/assignees{/user}","branches_url":"https://api.github.com/repos/bhargavvader/gensim/branches{/branch}","tags_url":"https://api.github.com/repos/bhargavvader/gensim/tags","blobs_url":"https://api.github.com/repos/bhargavvader/gensim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhargavvader/gensim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhargavvader/gensim/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhargavvader/gensim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhargavvader/gensim/statuses/{sha}","languages_url":"https://api.github.com/repos/bhargavvader/gensim/languages","stargazers_url":"https://api.github.com/repos/bhargavvader/gensim/stargazers","contributors_url":"https://api.github.com/repos/bhargavvader/gensim/contributors","subscribers_url":"https://api.github.com/repos/bhargavvader/gensim/subscribers","subscription_url":"https://api.github.com/repos/bhargavvader/gensim/subscription","commits_url":"https://api.github.com/repos/bhargavvader/gensim/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhargavvader/gensim/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhargavvader/gensim/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhargavvader/gensim/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhargavvader/gensim/contents/{+path}","compare_url":"https://api.github.com/repos/bhargavvader/gensim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhargavvader/gensim/merges","archive_url":"https://api.github.com/repos/bhargavvader/gensim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhargavvader/gensim/downloads","issues_url":"https://api.github.com/repos/bhargavvader/gensim/issues{/number}","pulls_url":"https://api.github.com/repos/bhargavvader/gensim/pulls{/number}","milestones_url":"https://api.github.com/repos/bhargavvader/gensim/milestones{/number}","notifications_url":"https://api.github.com/repos/bhargavvader/gensim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhargavvader/gensim/labels{/name}","releases_url":"https://api.github.com/repos/bhargavvader/gensim/releases{/id}","deployments_url":"https://api.github.com/repos/bhargavvader/gensim/deployments","created_at":"2016-03-21T14:33:07Z","updated_at":"2016-03-21T14:33:08Z","pushed_at":"2016-05-30T10:10:53Z","git_url":"git://github.com/bhargavvader/gensim.git","ssh_url":"git@github.com:bhargavvader/gensim.git","clone_url":"https://github.com/bhargavvader/gensim.git","svn_url":"https://github.com/bhargavvader/gensim","homepage":"http://radimrehurek.com/gensim/","size":15070,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"piskvorky:develop","ref":"develop","sha":"be1c47f0e3cbe9e950592bc72f24cbba2bba9f30","user":{"login":"piskvorky","id":610412,"avatar_url":"https://avatars.githubusercontent.com/u/610412?v=3","gravatar_id":"","url":"https://api.github.com/users/piskvorky","html_url":"https://github.com/piskvorky","followers_url":"https://api.github.com/users/piskvorky/followers","following_url":"https://api.github.com/users/piskvorky/following{/other_user}","gists_url":"https://api.github.com/users/piskvorky/gists{/gist_id}","starred_url":"https://api.github.com/users/piskvorky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piskvorky/subscriptions","organizations_url":"https://api.github.com/users/piskvorky/orgs","repos_url":"https://api.github.com/users/piskvorky/repos","events_url":"https://api.github.com/users/piskvorky/events{/privacy}","received_events_url":"https://api.github.com/users/piskvorky/received_events","type":"User","site_admin":false},"repo":{"id":1349775,"name":"gensim","full_name":"piskvorky/gensim","owner":{"login":"piskvorky","id":610412,"avatar_url":"https://avatars.githubusercontent.com/u/610412?v=3","gravatar_id":"","url":"https://api.github.com/users/piskvorky","html_url":"https://github.com/piskvorky","followers_url":"https://api.github.com/users/piskvorky/followers","following_url":"https://api.github.com/users/piskvorky/following{/other_user}","gists_url":"https://api.github.com/users/piskvorky/gists{/gist_id}","starred_url":"https://api.github.com/users/piskvorky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piskvorky/subscriptions","organizations_url":"https://api.github.com/users/piskvorky/orgs","repos_url":"https://api.github.com/users/piskvorky/repos","events_url":"https://api.github.com/users/piskvorky/events{/privacy}","received_events_url":"https://api.github.com/users/piskvorky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/piskvorky/gensim","description":"Topic Modelling for Humans","fork":false,"url":"https://api.github.com/repos/piskvorky/gensim","forks_url":"https://api.github.com/repos/piskvorky/gensim/forks","keys_url":"https://api.github.com/repos/piskvorky/gensim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/piskvorky/gensim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/piskvorky/gensim/teams","hooks_url":"https://api.github.com/repos/piskvorky/gensim/hooks","issue_events_url":"https://api.github.com/repos/piskvorky/gensim/issues/events{/number}","events_url":"https://api.github.com/repos/piskvorky/gensim/events","assignees_url":"https://api.github.com/repos/piskvorky/gensim/assignees{/user}","branches_url":"https://api.github.com/repos/piskvorky/gensim/branches{/branch}","tags_url":"https://api.github.com/repos/piskvorky/gensim/tags","blobs_url":"https://api.github.com/repos/piskvorky/gensim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/piskvorky/gensim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/piskvorky/gensim/git/refs{/sha}","trees_url":"https://api.github.com/repos/piskvorky/gensim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/piskvorky/gensim/statuses/{sha}","languages_url":"https://api.github.com/repos/piskvorky/gensim/languages","stargazers_url":"https://api.github.com/repos/piskvorky/gensim/stargazers","contributors_url":"https://api.github.com/repos/piskvorky/gensim/contributors","subscribers_url":"https://api.github.com/repos/piskvorky/gensim/subscribers","subscription_url":"https://api.github.com/repos/piskvorky/gensim/subscription","commits_url":"https://api.github.com/repos/piskvorky/gensim/commits{/sha}","git_commits_url":"https://api.github.com/repos/piskvorky/gensim/git/commits{/sha}","comments_url":"https://api.github.com/repos/piskvorky/gensim/comments{/number}","issue_comment_url":"https://api.github.com/repos/piskvorky/gensim/issues/comments{/number}","contents_url":"https://api.github.com/repos/piskvorky/gensim/contents/{+path}","compare_url":"https://api.github.com/repos/piskvorky/gensim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/piskvorky/gensim/merges","archive_url":"https://api.github.com/repos/piskvorky/gensim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/piskvorky/gensim/downloads","issues_url":"https://api.github.com/repos/piskvorky/gensim/issues{/number}","pulls_url":"https://api.github.com/repos/piskvorky/gensim/pulls{/number}","milestones_url":"https://api.github.com/repos/piskvorky/gensim/milestones{/number}","notifications_url":"https://api.github.com/repos/piskvorky/gensim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/piskvorky/gensim/labels{/name}","releases_url":"https://api.github.com/repos/piskvorky/gensim/releases{/id}","deployments_url":"https://api.github.com/repos/piskvorky/gensim/deployments","created_at":"2011-02-10T07:43:04Z","updated_at":"2016-05-29T23:14:53Z","pushed_at":"2016-05-30T10:10:54Z","git_url":"git://github.com/piskvorky/gensim.git","ssh_url":"git@github.com:piskvorky/gensim.git","clone_url":"https://github.com/piskvorky/gensim.git","svn_url":"https://github.com/piskvorky/gensim","homepage":"http://radimrehurek.com/gensim/","size":19565,"stargazers_count":2566,"watchers_count":2566,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":922,"mirror_url":null,"open_issues_count":138,"forks":922,"open_issues":138,"watchers":2566,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/piskvorky/gensim/pulls/704"},"html":{"href":"https://github.com/piskvorky/gensim/pull/704"},"issue":{"href":"https://api.github.com/repos/piskvorky/gensim/issues/704"},"comments":{"href":"https://api.github.com/repos/piskvorky/gensim/issues/704/comments"},"review_comments":{"href":"https://api.github.com/repos/piskvorky/gensim/pulls/704/comments"},"review_comment":{"href":"https://api.github.com/repos/piskvorky/gensim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/piskvorky/gensim/pulls/704/commits"},"statuses":{"href":"https://api.github.com/repos/piskvorky/gensim/statuses/775f8a779d924e7ae76306df1620c88173587bd2"}}}}
{"actor":{"display_login":"bhargavvader"}}