about cosine similarity

Posted by jaskirat on Stack Overflow See other posts from Stack Overflow or by jaskirat
Published on 2010-05-18T18:33:36Z Indexed on 2010/05/18 18:40 UTC
Read the original article Hit count: 380

Filed under:
|
|

hi i m finding cosine similarity between documents ..i did like dis

D1=(8,0,0,1) where 8,0,0,1 are the tf-idf scores of the terms t1, t2, t3 , t4

D2=(7,0,0,1)

cos(theta) = (56 + 0 + 0 + 1) / sqrt(64 + 49) sqrt(1 +1 )

which comes out to be

cos(theta)= 5

now what do i evaluate from this value...i dont get it wat does cos(theta)=5 signify about the similarity between them...pls reply ..Am i doing things right ??????????..pls do reply guys.. will be thank ful to you..

© Stack Overflow or respective owner

Related posts about cosine

Related posts about similarity