Data Science, Machine Learning, NLP, Transformers, Word Embeddings.
doc[1].similarity(doc[9]) Find similarity between King and carpet. doc[1].similarity(doc[5]) Check if king — man + woman = queen. We will multiply vectors for ‘man’ and ‘woman’ by two, because subtracting one vector for ‘man’ and adding the vector for ‘woman’ will do little to the original vector