How do I find the cosine similarity between vectors?
I need to find the similarity to measure the relatedness between two lines of text.
For example, I have two sentences like:
system for user interface
user interface machine
… and their respective vectors after tF-idf, followed by normalisation using LSI, for example
[1,0.5]
and [0.5,1]
.
How do I measure the smiliarity between these vectors?