{"action":"created","issue":{"url":"https://api.github.com/repos/wiki-ai/revscoring/issues/391","repository_url":"https://api.github.com/repos/wiki-ai/revscoring","labels_url":"https://api.github.com/repos/wiki-ai/revscoring/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/wiki-ai/revscoring/issues/391/comments","events_url":"https://api.github.com/repos/wiki-ai/revscoring/issues/391/events","html_url":"https://github.com/wiki-ai/revscoring/pull/391","id":298349274,"number":391,"title":"Add word2vec features","user":{"login":"codez266","id":7484906,"avatar_url":"https://avatars3.githubusercontent.com/u/7484906?v=4","gravatar_id":"","url":"https://api.github.com/users/codez266","html_url":"https://github.com/codez266","followers_url":"https://api.github.com/users/codez266/followers","following_url":"https://api.github.com/users/codez266/following{/other_user}","gists_url":"https://api.github.com/users/codez266/gists{/gist_id}","starred_url":"https://api.github.com/users/codez266/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codez266/subscriptions","organizations_url":"https://api.github.com/users/codez266/orgs","repos_url":"https://api.github.com/users/codez266/repos","events_url":"https://api.github.com/users/codez266/events{/privacy}","received_events_url":"https://api.github.com/users/codez266/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-19T17:14:57Z","updated_at":"2018-02-23T14:52:45Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/wiki-ai/revscoring/pulls/391","html_url":"https://github.com/wiki-ai/revscoring/pull/391","diff_url":"https://github.com/wiki-ai/revscoring/pull/391.diff","patch_url":"https://github.com/wiki-ai/revscoring/pull/391.patch"},"body":"- Adds a new feature for wordvectors subclassing from FeatureVector. The feature accepts word2vec parameters like name, dimesions, word limit, etc. and additionally a list of tokens datasource. \r\n- It returns a feature equal to the dimensions of the original vectors averaged over the tokens supplied.\r\n- Uses a word2vec helper to load the binary file. Currently the only defined helper is the `gensim_helper` to load the vectors using the gensim library.\r\n- This allows us to write features like:\r\n```\r\nfrom word_vectorizers import word_vectors\r\neng_vectors = word_vectors(english.stopwords.revision.datasources.non_stopwords, \r\nw2v='GoogleNews-negative300.bin', limit=150000)\r\n\r\nfr_vectors = word_vectors(french.stopwords.revision.datasources.non_stopwords,\r\nw2v='GoogleNews-negative300-fr.bin', limit=150000)\r\n```"},"comment":{"url":"https://api.github.com/repos/wiki-ai/revscoring/issues/comments/368030666","html_url":"https://github.com/wiki-ai/revscoring/pull/391#issuecomment-368030666","issue_url":"https://api.github.com/repos/wiki-ai/revscoring/issues/391","id":368030666,"user":{"login":"codecov[bot]","id":22429695,"avatar_url":"https://avatars2.githubusercontent.com/in/254?v=4","gravatar_id":"","url":"https://api.github.com/users/codecov%5Bbot%5D","html_url":"https://github.com/apps/codecov","followers_url":"https://api.github.com/users/codecov%5Bbot%5D/followers","following_url":"https://api.github.com/users/codecov%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codecov%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codecov%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codecov%5Bbot%5D/repos","events_url":"https://api.github.com/users/codecov%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codecov%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-02-23T14:52:45Z","updated_at":"2018-02-23T14:52:45Z","author_association":"NONE","body":"# [Codecov](https://codecov.io/gh/wiki-ai/revscoring/pull/391?src=pr&el=h1) Report\n> Merging [#391](https://codecov.io/gh/wiki-ai/revscoring/pull/391?src=pr&el=desc) into [master](https://codecov.io/gh/wiki-ai/revscoring/commit/322619b2861b2502e41ac079cb9733b9cde9441b?src=pr&el=desc) will **increase** coverage by `86%`.\n> The diff coverage is `93.54%`.\n\n[![Impacted file tree graph](https://codecov.io/gh/wiki-ai/revscoring/pull/391/graphs/tree.svg?token=aLNJobD8cQ&src=pr&height=150&width=650)](https://codecov.io/gh/wiki-ai/revscoring/pull/391?src=pr&el=tree)\n\n```diff\n@@            Coverage Diff            @@\n##           master     #391     +/-   ##\n=========================================\n+ Coverage    0.68%   86.69%    +86%     \n=========================================\n  Files         257      260      +3     \n  Lines        8278     8325     +47     \n=========================================\n+ Hits           57     7217   +7160     \n+ Misses       8221     1108   -7113\n```\n\n\n| [Impacted Files](https://codecov.io/gh/wiki-ai/revscoring/pull/391?src=pr&el=tree) | Coverage Δ | |\n|---|---|---|\n| [.../features/wordvectors/tests/test\\_word\\_vectorize.py](https://codecov.io/gh/wiki-ai/revscoring/pull/391/diff?src=pr&el=tree#diff-cmV2c2NvcmluZy9mZWF0dXJlcy93b3JkdmVjdG9ycy90ZXN0cy90ZXN0X3dvcmRfdmVjdG9yaXplLnB5) | `100% <100%> (ø)` | |\n| [revscoring/features/wordvectors/word2vec\\_helper.py](https://codecov.io/gh/wiki-ai/revscoring/pull/391/diff?src=pr&el=tree#diff-cmV2c2NvcmluZy9mZWF0dXJlcy93b3JkdmVjdG9ycy93b3JkMnZlY19oZWxwZXIucHk=) | `66.66% <66.66%> (ø)` | |\n| [...evscoring/features/wordvectors/word\\_vectorizers.py](https://codecov.io/gh/wiki-ai/revscoring/pull/391/diff?src=pr&el=tree#diff-cmV2c2NvcmluZy9mZWF0dXJlcy93b3JkdmVjdG9ycy93b3JkX3ZlY3Rvcml6ZXJzLnB5) | `93.33% <93.33%> (ø)` | |\n| [revscoring/extractors/api/extractor.py](https://codecov.io/gh/wiki-ai/revscoring/pull/391/diff?src=pr&el=tree#diff-cmV2c2NvcmluZy9leHRyYWN0b3JzL2FwaS9leHRyYWN0b3IucHk=) | `25.44% <0%> (+25.44%)` | :arrow_up: |\n| [revscoring/languages/bosnian.py](https://codecov.io/gh/wiki-ai/revscoring/pull/391/diff?src=pr&el=tree#diff-cmV2c2NvcmluZy9sYW5ndWFnZXMvYm9zbmlhbi5weQ==) | `46.66% <0%> (+46.66%)` | :arrow_up: |\n| [revscoring/extractors/api/datasources.py](https://codecov.io/gh/wiki-ai/revscoring/pull/391/diff?src=pr&el=tree#diff-cmV2c2NvcmluZy9leHRyYWN0b3JzL2FwaS9kYXRhc291cmNlcy5weQ==) | `50.94% <0%> (+50.94%)` | :arrow_up: |\n| [revscoring/languages/hindi.py](https://codecov.io/gh/wiki-ai/revscoring/pull/391/diff?src=pr&el=tree#diff-cmV2c2NvcmluZy9sYW5ndWFnZXMvaGluZGkucHk=) | `53.84% <0%> (+53.84%)` | :arrow_up: |\n| ... and [241 more](https://codecov.io/gh/wiki-ai/revscoring/pull/391/diff?src=pr&el=tree-more) | |\n\n------\n\n[Continue to review full report at Codecov](https://codecov.io/gh/wiki-ai/revscoring/pull/391?src=pr&el=continue).\n> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)\n> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`\n> Powered by [Codecov](https://codecov.io/gh/wiki-ai/revscoring/pull/391?src=pr&el=footer). Last update [322619b...ef1bc8f](https://codecov.io/gh/wiki-ai/revscoring/pull/391?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).\n"}}
{"actor":{"display_login":"codecov"}}