2
$\begingroup$

I am trying to create a Word2Vec model of the the Pub Med Central corpus using the Gensim library and want to limit the total number of word embeddings to around 1 billion.

I have searched high and low and am unable to find out a) How to count the total number of word-embeddings in a saved model, and b) how to limit the total number of embeddings when training the model (once I hit 1 billion, then stop).

Please forgive my simpleton questions.

$\endgroup$

1 Answer 1

1
$\begingroup$

Alright, after digging around in methods available to my loaded Word2Vec model I believe the answer is len(model.wv.vectors)...

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.