Introduction to Information Retrieval

Introduction to Information Retrieval Introduction to Information Retrieval

informatics.buu.ac.th
from informatics.buu.ac.th More from this publisher
23.06.2015 Views

Introduction to Information Retrieval Cosine similarity between query and document • q i is the tf-idf weight of term i in the query. • d i is the tf-idf weight of term i in the document. • | | and | | are the lengths of and • This is the cosine similarity of and . . . . . . or, equivalently, the cosine of the angle between and 42

Introduction to Information Retrieval Cosine for normalized vectors • For normalized vectors, the cosine is equivalent to the dot product or scalar product. • (if and are length-normalized). 43

<strong>Introduction</strong> <strong>to</strong> <strong>Information</strong> <strong>Retrieval</strong><br />

Cosine for normalized vec<strong>to</strong>rs<br />

• For normalized vec<strong>to</strong>rs, the cosine is equivalent <strong>to</strong> the dot<br />

product or scalar product.<br />

• (if and are length-normalized).<br />

43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!