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

Gensim version #1

Closed
IslamMohamedMosaad opened this issue Apr 1, 2018 · 5 comments
Closed

Gensim version #1

IslamMohamedMosaad opened this issue Apr 1, 2018 · 5 comments

Comments

@IslamMohamedMosaad
Copy link

Could you please state the version of Gensim as every time i run the code i get the following error:

AttributeError: 'module' object has no attribute 'call_on_class_only'

@bakrianoo
Copy link
Owner

bakrianoo commented Apr 1, 2018 via email

@IslamMohamedMosaad
Copy link
Author

get this error when use 3.2 version

AttributeError: 'module' object has no attribute 'Word2VecKeyedVectors'

``# -- coding: utf8 --
import gensim
import re
model = gensim.models.Word2Vec.load('tweets_cbow_300')

@bakrianoo
Copy link
Owner

Hi Eslam

It seems that gensim recommends all to update to 3.4 version. I just noticed that now.

piskvorky/gensim#1882

I will attach a screenshot of my code using 3.4 version.
w2v

@IslamMohamedMosaad
Copy link
Author

IslamMohamedMosaad commented Apr 2, 2018

Thanks for ur great efforts .

@waadth
Copy link

waadth commented Jul 3, 2019

I have the error "ValueError: cannot reshape array of size 191907498 into shape (1259756,300)"
Only when I use this word embedding "full_uni_sg_300_twitter.mdl"
where other n-gram version work good

‏لقطة الشاشة ٢٠١٩-٠٧-٠٣ في ٣ ٣٥ ٤١ ص

‏لقطة الشاشة ٢٠١٩-٠٧-٠٣ في ٣ ٣٦ ٠٣ ص

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

3 participants