Data Science, Machine Learning, NLP, Transformers, Word Embeddings.
embeddings for the first sentence. Firstly we need to get ids of tokens we need to compare. for i, token_str in enumerate(tokenized_texts[0]): print (i, token_str) We can see that word ‘king’ is placed at indexes 1 and 17. We will check distance between embeddings 1 and 17. Also, we will check if