Python: What is the "size" parameter in Gensim Word2vec model class

Viewed 15928

I have been struggling to understand the use of size parameter in the gensim.models.Word2Vec

From the Gensim documentation, size is the dimensionality of the vector. Now, as far as my knowledge goes, word2vec creates a vector of the probability of closeness with the other words in the sentence for each word. So, suppose if my vocab size is 30 then how does it create a vector with the dimension greater than 30? Can anyone please brief me on the optimal value of Word2Vec size?

Thank you.

2 Answers

It's equal to vector_size. To make it easy, it's a uniform size of dimension of the output vectors for each word that you trained with word2vec.

Related