Hi everybody,
I'm interesting if anybody of you could help me with suggestions about how to
use cosine similarity (http://en.wikipedia.org/wiki/Cosine_similarity) to get
the page relevance for some term. I suppose that some of you have already used
it.
Here is the short description of what I have done:
I analize (annotate) a set of web pages to get an instances of design patterns
described in my ontology. I got a term frequency inverse document frequency
(http://en.wikipedia.org/wiki/Tf-idf) for each design pattern I found on the
page. Now I want to sort all pages by the relevance for some specific pattern
(i.e. Abstract Factory), but I'm not sure how to use cosine similarity formula
here. What should be A vector, and what should be B vector? Should I compare
the one page with the instance of pattern I want to check, and how can I do it?
Thanks
Zoran
_______________________________________________
NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this
mailing list.
KIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com