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

Using run_embed.py on new model #2

Open
sashavor opened this issue Apr 4, 2018 · 3 comments
Open

Using run_embed.py on new model #2

sashavor opened this issue Apr 4, 2018 · 3 comments

Comments

@sashavor
Copy link

sashavor commented Apr 4, 2018

Hi,
I would like to apply the accuracy method from run_embed.py on a word2vec model that I load using Word2VecKeyedVectors.load_word2vec_format(), but it gives me an AttributeError: 'KeyedVectors' object has no attribute 'dictionary'.

What is the correct way to load a model to apply the script?

Thank you

@piskvorky
Copy link
Owner

Sorry, I don't think this repo has been updated in 3 years.

It shouldn't be too difficult to update the accuracy method here to work with the newer gensim models -- a PR will be welcome!

@sashavor
Copy link
Author

sashavor commented Apr 4, 2018 via email

@piskvorky
Copy link
Owner

I don't think the core logic changed at all. It's probably just some attributes/classes/module changing place.

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

2 participants