curlypie99
curlypie99

Reputation: 27

How to normalize word embeddings (word2vec)

I have a pre trained Word2Vec model with embeddings. I need to normalize some embeddings to do analyses with the words. Is there a simple line (or block) of code to do this? I've been searching online but can't find a simple answer.

Upvotes: 1

Views: 4202

Answers (1)

MHK
MHK

Reputation: 146

This will work fine with embeddings

model.init_sims(replace=True)

Upvotes: 1

Related Questions