I have various keywords and phrases. For ex : Keywords - happy, sad, angry and phrase- happy to read, angry on him etc
I have these keywords and phrases in the form of word2vec . I need to check the distance between these keyword and phrase in order to check which keyword matches to which phrase.
I am using function cosine_similarity(v1,v2) from sklearn.metrics.pairwise. This function is returning a vector. I want to have distance in a digit or number form. so that I can keep threshold to conclude that these 2 vectors are similar. How to do that? How to convert that result vector into digit value