Bert, NLP.
-2.5577, -1.3094, 0.6797, 1.6633]) river bank tensor([ 1.5266, -0.8895, -0.5152, -0.9298, 2.8334]) We can see that the values differ, but let’s calculate the cosine similarity between the vectors to make a more precise comparison. from scipy.spatial.distance import cosine # Calculate the cosine