K
K
kuzdman2018-05-31 23:12:59
Python
kuzdman, 2018-05-31 23:12:59

Word2Vec or how to get vector by word?

Hello! Your help is very much needed.
I want to get by the word its vector in python.
For example:

  • queen 0.856020450592041
  • burgundy 0.8100876212120056
  • regent 0.8040660619735718
  • clementia 0.7984248995780945
  • king 0.7981560826301575

Rummaged almost everything that was possible. Killed about five hours. I found the word2vec library, but there are problems with it too.
Here are the most useful articles: 1 , 2 , 3 .
These are the most useful. But I still get errors (for example, there is no module , etc.)
Maybe someone knows what's wrong? Please write code for python 3.6.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ivodopyanov, 2018-06-01
@kuzdman

Here are the finished fastText vectors: https://github.com/facebookresearch/fastText/blob/...

D
Danil, 2018-05-31
@DanilBaibak

Applied word2vec to Harry Potter book collection https://github.com/DanilBaibak/Harry_Potter_vs_Word2Vec
The repository has both an ipython notebook and steps to install locally.
have fun ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question