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

ValueError: invalid literal for int() with base 10 #33

Closed
lorizisback opened this issue Sep 18, 2017 · 1 comment
Closed

ValueError: invalid literal for int() with base 10 #33

lorizisback opened this issue Sep 18, 2017 · 1 comment

Comments

@lorizisback
Copy link

Hi there,
given links for Word2Vec are not working (get_word2vec.sh fails downloading) so I built a copy from this repo which is the only resource available at the moment (the Google repo seems to be down).

As a standalone program, word2vec appears to be working correctly, but when combined to the preprocess.py in this project, I cant manage to make it work.
It generates the .txt file, but the process crashes before outputting the hdf5 one with a:
ValueError: invalid literal for int() with base 10: '\x7fELF\x02\x01\x01'
when trying to preprocess any of the given datasets (i.e. MR).

I've tried with various word2vec build but the result is always the same.

@lorizisback
Copy link
Author

After some tests (and more reading), I finally understood that the .bin file the readme refers to is not the word2vec executable binary file, it's a "Pre-trained word and phrase vectors" as the official word2vec project page states.

Still, I think it would be nice to modify the readme stating explicitly this common misconception.

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