N-iX interview question

How to generate a vector using word2vec?