Normalising embeddings

#24
by wenhao89 - opened

Hi,

In the example of how to encode text using HuggingFace Transformers, it is shown that the encoded embeddings are normalised. Is normalisation necessary?

Thanks!

Regards,
Wen Hao

It is done just to remove the effect of magnitude of the vectors, since we only want the cosine angle between them.

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment