{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/11536","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/11536/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/11536/comments","events_url":"https://api.github.com/repos/apache/spark/issues/11536/events","html_url":"https://github.com/apache/spark/pull/11536","id":138663488,"number":11536,"title":"[SPARK-13629] [ML] Add binary toggle Param to CountVectorizer","user":{"login":"hhbyyh","id":7981698,"avatar_url":"https://avatars.githubusercontent.com/u/7981698?v=3","gravatar_id":"","url":"https://api.github.com/users/hhbyyh","html_url":"https://github.com/hhbyyh","followers_url":"https://api.github.com/users/hhbyyh/followers","following_url":"https://api.github.com/users/hhbyyh/following{/other_user}","gists_url":"https://api.github.com/users/hhbyyh/gists{/gist_id}","starred_url":"https://api.github.com/users/hhbyyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhbyyh/subscriptions","organizations_url":"https://api.github.com/users/hhbyyh/orgs","repos_url":"https://api.github.com/users/hhbyyh/repos","events_url":"https://api.github.com/users/hhbyyh/events{/privacy}","received_events_url":"https://api.github.com/users/hhbyyh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-05T09:21:13Z","updated_at":"2016-03-18T19:21:19Z","closed_at":"2016-03-17T09:24:04Z","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/11536","html_url":"https://github.com/apache/spark/pull/11536","diff_url":"https://github.com/apache/spark/pull/11536.diff","patch_url":"https://github.com/apache/spark/pull/11536.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nIt would be handy to add a binary toggle Param to CountVectorizer, as in the scikit-learn one: http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html\r\nIf set, then all non-zero counts will be set to 1.\r\n\r\n\r\n## How was this patch tested?\r\n\r\nunit tests\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/198505962","html_url":"https://github.com/apache/spark/pull/11536#issuecomment-198505962","issue_url":"https://api.github.com/repos/apache/spark/issues/11536","id":198505962,"user":{"login":"jkbradley","id":5084283,"avatar_url":"https://avatars.githubusercontent.com/u/5084283?v=3","gravatar_id":"","url":"https://api.github.com/users/jkbradley","html_url":"https://github.com/jkbradley","followers_url":"https://api.github.com/users/jkbradley/followers","following_url":"https://api.github.com/users/jkbradley/following{/other_user}","gists_url":"https://api.github.com/users/jkbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/jkbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkbradley/subscriptions","organizations_url":"https://api.github.com/users/jkbradley/orgs","repos_url":"https://api.github.com/users/jkbradley/repos","events_url":"https://api.github.com/users/jkbradley/events{/privacy}","received_events_url":"https://api.github.com/users/jkbradley/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T19:21:19Z","updated_at":"2016-03-18T19:21:19Z","body":"@hhbyyh Thanks for the PR!  LGTM, I agree with the use of minTF"}}