Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utf-8 decoding of Google word2vec embeddings incorrect #39

Open
gargrohin opened this issue Jan 26, 2020 · 0 comments
Open

utf-8 decoding of Google word2vec embeddings incorrect #39

gargrohin opened this issue Jan 26, 2020 · 0 comments

Comments

@gargrohin
Copy link

In preprocess.py, function load_bin_vec : the line ch = f.read(1) is incorrect, atleast for Python3.
Need to add .decode("utf-8") for correctly decoding characters from GoogleNews-vectors-negative300.bin

Also, need to convert the code to Python3 for 2020 use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant