{"action":"created","issue":{"url":"https://api.github.com/repos/piskvorky/gensim/issues/308","labels_url":"https://api.github.com/repos/piskvorky/gensim/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/piskvorky/gensim/issues/308/comments","events_url":"https://api.github.com/repos/piskvorky/gensim/issues/308/events","html_url":"https://github.com/piskvorky/gensim/issues/308","id":63369119,"number":308,"title":"WikiCorpus: Support random sample","user":{"login":"adammenges","id":817438,"avatar_url":"https://avatars.githubusercontent.com/u/817438?v=3","gravatar_id":"","url":"https://api.github.com/users/adammenges","html_url":"https://github.com/adammenges","followers_url":"https://api.github.com/users/adammenges/followers","following_url":"https://api.github.com/users/adammenges/following{/other_user}","gists_url":"https://api.github.com/users/adammenges/gists{/gist_id}","starred_url":"https://api.github.com/users/adammenges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammenges/subscriptions","organizations_url":"https://api.github.com/users/adammenges/orgs","repos_url":"https://api.github.com/users/adammenges/repos","events_url":"https://api.github.com/users/adammenges/events{/privacy}","received_events_url":"https://api.github.com/users/adammenges/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-21T06:31:31Z","updated_at":"2015-03-21T12:31:46Z","closed_at":null,"body":"Related to #307. \r\n\r\n`random.sample(wiki, n)` will get killed on a reasonably spec'd machine, regardless of the size of `n`, it'd be nice to get a decently sized random sample for creating models quickly."},"comment":{"url":"https://api.github.com/repos/piskvorky/gensim/issues/comments/84327842","html_url":"https://github.com/piskvorky/gensim/issues/308#issuecomment-84327842","issue_url":"https://api.github.com/repos/piskvorky/gensim/issues/308","id":84327842,"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":"2015-03-21T12:31:46Z","updated_at":"2015-03-21T12:31:46Z","body":"Sounds like useful functionality.\r\n\r\nThere actually exist algorithms that take provably random samples even from a stream (non-repeatable generator).\r\n\r\nI actually thought Python's `random.sample` implements such an algo -- why do you think it wouldn't work? Did you try?\r\n\r\n\r\n"}}