{"action":"created","issue":{"url":"https://api.github.com/repos/piskvorky/gensim/issues/657","repository_url":"https://api.github.com/repos/piskvorky/gensim","labels_url":"https://api.github.com/repos/piskvorky/gensim/issues/657/labels{/name}","comments_url":"https://api.github.com/repos/piskvorky/gensim/issues/657/comments","events_url":"https://api.github.com/repos/piskvorky/gensim/issues/657/events","html_url":"https://github.com/piskvorky/gensim/pull/657","id":145888452,"number":657,"title":"add similar by word and vector","user":{"login":"isohyt","id":6284510,"avatar_url":"https://avatars.githubusercontent.com/u/6284510?v=3","gravatar_id":"","url":"https://api.github.com/users/isohyt","html_url":"https://github.com/isohyt","followers_url":"https://api.github.com/users/isohyt/followers","following_url":"https://api.github.com/users/isohyt/following{/other_user}","gists_url":"https://api.github.com/users/isohyt/gists{/gist_id}","starred_url":"https://api.github.com/users/isohyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isohyt/subscriptions","organizations_url":"https://api.github.com/users/isohyt/orgs","repos_url":"https://api.github.com/users/isohyt/repos","events_url":"https://api.github.com/users/isohyt/events{/privacy}","received_events_url":"https://api.github.com/users/isohyt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-05T05:08:11Z","updated_at":"2016-04-05T06:16:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/piskvorky/gensim/pulls/657","html_url":"https://github.com/piskvorky/gensim/pull/657","diff_url":"https://github.com/piskvorky/gensim/pull/657.diff","patch_url":"https://github.com/piskvorky/gensim/pull/657.patch"},"body":"Related to Issue #381 \r\nI added `similar_by_word()` and `similar_by_vector()`\r\nWe can use these functions as follows.\r\n\r\ntrained_model.similar_by_word('graph')\r\n      [('user', 0.9999163150787354), ...]\r\n\r\ntrained_model.similar_by_vector([1,2])\r\n      [('survey', 0.9942699074745178), ...]"},"comment":{"url":"https://api.github.com/repos/piskvorky/gensim/issues/comments/205668900","html_url":"https://github.com/piskvorky/gensim/pull/657#issuecomment-205668900","issue_url":"https://api.github.com/repos/piskvorky/gensim/issues/657","id":205668900,"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},"created_at":"2016-04-05T06:16:10Z","updated_at":"2016-04-05T06:16:10Z","body":"-1, too much code duplication. These would be better served as simple wrappers, calling `most_similar` internally."}}