{"action":"created","issue":{"url":"https://api.github.com/repos/stanfordnlp/GloVe/issues/33","repository_url":"https://api.github.com/repos/stanfordnlp/GloVe","labels_url":"https://api.github.com/repos/stanfordnlp/GloVe/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/stanfordnlp/GloVe/issues/33/comments","events_url":"https://api.github.com/repos/stanfordnlp/GloVe/issues/33/events","html_url":"https://github.com/stanfordnlp/GloVe/issues/33","id":158762285,"number":33,"title":"Fromat of the cooccur and shuffle output","user":{"login":"armintabari","id":795555,"avatar_url":"https://avatars.githubusercontent.com/u/795555?v=3","gravatar_id":"","url":"https://api.github.com/users/armintabari","html_url":"https://github.com/armintabari","followers_url":"https://api.github.com/users/armintabari/followers","following_url":"https://api.github.com/users/armintabari/following{/other_user}","gists_url":"https://api.github.com/users/armintabari/gists{/gist_id}","starred_url":"https://api.github.com/users/armintabari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armintabari/subscriptions","organizations_url":"https://api.github.com/users/armintabari/orgs","repos_url":"https://api.github.com/users/armintabari/repos","events_url":"https://api.github.com/users/armintabari/events{/privacy}","received_events_url":"https://api.github.com/users/armintabari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-06T20:03:59Z","updated_at":"2016-06-07T03:45:11Z","closed_at":null,"body":"I want to access the statistics before running the glove for dimension reduction to compare GloVe to other dimensionality reduction methods.\r\n\r\nThey are being saved in a binary file. How can I read the files and access the co-occurrence values?"},"comment":{"url":"https://api.github.com/repos/stanfordnlp/GloVe/issues/comments/224164681","html_url":"https://github.com/stanfordnlp/GloVe/issues/33#issuecomment-224164681","issue_url":"https://api.github.com/repos/stanfordnlp/GloVe/issues/33","id":224164681,"user":{"login":"Russell91","id":1069617,"avatar_url":"https://avatars.githubusercontent.com/u/1069617?v=3","gravatar_id":"","url":"https://api.github.com/users/Russell91","html_url":"https://github.com/Russell91","followers_url":"https://api.github.com/users/Russell91/followers","following_url":"https://api.github.com/users/Russell91/following{/other_user}","gists_url":"https://api.github.com/users/Russell91/gists{/gist_id}","starred_url":"https://api.github.com/users/Russell91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Russell91/subscriptions","organizations_url":"https://api.github.com/users/Russell91/orgs","repos_url":"https://api.github.com/users/Russell91/repos","events_url":"https://api.github.com/users/Russell91/events{/privacy}","received_events_url":"https://api.github.com/users/Russell91/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T03:45:11Z","updated_at":"2016-06-07T03:45:11Z","body":"The files are written in series with the raw 12 byte c structure:\r\n```\r\ntypedef struct cooccur_rec {\r\n    int word1;\r\n    int word2;\r\n    real val;\r\n} CREC;\r\n```\r\nin line 156 of https://github.com/stanfordnlp/GloVe/blob/master/src/cooccur.c. You'll either need to do some low level byte access or read them out in that format with a c program if you want to read them as is. Alternatively, you could modify the write_chunk file in coocur.c to write to an separate text file using printf, and analyze the contents directly."}}
{"actor":{"display_login":"Russell91"}}