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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…