-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
gensim.scripts.word2vec2tensor TypeError: write() argument must be str, not bytes #1958
Comments
hello @ttpro1995, thanks for the report, can you try to run |
On python 2.7, it worked without need any fix.
On python 3.6, it need some fix.
Then, it work on python 3.6. However, this fix does not work on python 2.7.
|
@ttpro1995 aha, as awaited, big thanks, that's really a bug. |
@vsocrates yes, you need to add new test class to https://github.com/RaRe-Technologies/gensim/blob/develop/gensim/test/test_scripts.py and write several tests for function https://github.com/RaRe-Technologies/gensim/blob/9c6db73919d032ab2f6ea35b3a9043e3b0d2aed5/gensim/scripts/word2vec2tensor.py#L51 feel free to post PR 👍 |
Hi, sorry I deleted my comment as I saw that @AakaashRao had made a PR as well, but I will finish it up. Will submit PR when it's done! |
@vsocrates right now nobody works on this fix, again, feel free to submit an PR |
@menshikh-iv submitted. A quick note: I had to force the data type to be |
Python environment
How I make article_body_w2v_300.txt
Command I use to run gensim.scripts.word2vec2tensor
Console output
The text was updated successfully, but these errors were encountered: