{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/306","labels_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/306/comments","events_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/306/events","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/306","id":84251806,"number":306,"title":"Google's word2vec returns Infinity as similarity values","user":{"login":"amouhoub","id":1918419,"avatar_url":"https://avatars.githubusercontent.com/u/1918419?v=3","gravatar_id":"","url":"https://api.github.com/users/amouhoub","html_url":"https://github.com/amouhoub","followers_url":"https://api.github.com/users/amouhoub/followers","following_url":"https://api.github.com/users/amouhoub/following{/other_user}","gists_url":"https://api.github.com/users/amouhoub/gists{/gist_id}","starred_url":"https://api.github.com/users/amouhoub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amouhoub/subscriptions","organizations_url":"https://api.github.com/users/amouhoub/orgs","repos_url":"https://api.github.com/users/amouhoub/repos","events_url":"https://api.github.com/users/amouhoub/events{/privacy}","received_events_url":"https://api.github.com/users/amouhoub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-02T23:00:38Z","updated_at":"2015-06-13T13:43:07Z","closed_at":null,"body":"The new versions of dl4j returns an Infinity value for the similarity between words no matter what the words are (in the vocab or not).\r\n\r\n<h3>EDIT</h3>\r\nThe file doesn't seem to be totally loaded, some words in the vocab are skipped somewhere\r\nFor the unit test in:\r\nhttps://github.com/deeplearning4j/deeplearning4j/blob/master/deeplearning4j-scaleout/deeplearning4j-nlp/src/test/java/org/deeplearning4j/models/word2vec/WordVectorSerializerTest.java#L69\r\nThe total number of words in the vocab loaded from\r\n>GoogleNews-vectors-negative300.bin.gz\r\n\r\nis equal to 2997292 and not 3000000"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/comments/111710972","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/306#issuecomment-111710972","issue_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/306","id":111710972,"user":{"login":"agibsonccc","id":1144306,"avatar_url":"https://avatars.githubusercontent.com/u/1144306?v=3","gravatar_id":"","url":"https://api.github.com/users/agibsonccc","html_url":"https://github.com/agibsonccc","followers_url":"https://api.github.com/users/agibsonccc/followers","following_url":"https://api.github.com/users/agibsonccc/following{/other_user}","gists_url":"https://api.github.com/users/agibsonccc/gists{/gist_id}","starred_url":"https://api.github.com/users/agibsonccc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agibsonccc/subscriptions","organizations_url":"https://api.github.com/users/agibsonccc/orgs","repos_url":"https://api.github.com/users/agibsonccc/repos","events_url":"https://api.github.com/users/agibsonccc/events{/privacy}","received_events_url":"https://api.github.com/users/agibsonccc/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T13:43:07Z","updated_at":"2015-06-13T13:43:07Z","body":"We've had some discussions on gitter about this and it could have been an nd4j issue if at all. I kept this open because I thought it could have been the loader but it hasn't been that either."}}