-
-
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
Get word from vector #381
Comments
What model? |
Sorry... word2vec. Eg vectors = Word2Vec.load_word2vec_format(file)
vectors.word_from_vec(vectors['cat']) == 'cat' |
You can already more-or-less do this by passing a single positive example to
I suppose as a convenience, it could detect a single ndarray (like it detects a single string) and just assume this is what the caller wants... |
! Oh... that's not entirely obvious. The expectation was that |
Yes, the doc-comment should be more clear... and any future/revised tutorials should include a few examples of the multiple styles of arguments it takes. |
Thank you - also thank you for making this tool. |
Good point. We'll probably split this API into two distinct methods ( @sheavalentine can you do it, and open a pull request? I assume the |
I can do it, but it'll take me a few days to get the bandwidth. :) |
No problem. We plan to make a new release this weekend, so this change will be in the release after that, then. |
@sheavalentine Is this still a needed feature? Do you think we could include your Pull Request into the January release? |
Closing as abandoned |
It would be useful to have a method which returns the closest word when the model is given a vector.
The text was updated successfully, but these errors were encountered: