Introduction to Information Retrieval
Introduction to Information Retrieval Introduction to Information Retrieval
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
- Page 1 and 2: Introduction to Information Retriev
- Page 3 and 4: Introduction to Information Retriev
- Page 5 and 6: Introduction to Information Retriev
- Page 7 and 8: Introduction to Information Retriev
- Page 9 and 10: Introduction to Information Retriev
- Page 11 and 12: Introduction to Information Retriev
- Page 13 and 14: Introduction to Information Retriev
- Page 15 and 16: Introduction to Information Retriev
- Page 17 and 18: Introduction to Information Retriev
- Page 19 and 20: Introduction to Information Retriev
- Page 21 and 22: Introduction to Information Retriev
- Page 23 and 24: Introduction to Information Retriev
- Page 25 and 26: Introduction to Information Retriev
- Page 27 and 28: Introduction to Information Retriev
- Page 29 and 30: Introduction to Information Retriev
- Page 31 and 32: Introduction to Information Retriev
- Page 33 and 34: Introduction to Information Retriev
- Page 35 and 36: Introduction to Information Retriev
- Page 37 and 38: Introduction to Information Retriev
- Page 39 and 40: Introduction to Information Retriev
- Page 41: Introduction to Information Retriev
- Page 45 and 46: Introduction to Information Retriev
- Page 47 and 48: Introduction to Information Retriev
- Page 49 and 50: Introduction to Information Retriev
- Page 51 and 52: Introduction to Information Retriev
- Page 53: Introduction to Information Retriev
<strong>Introduction</strong> <strong>to</strong> <strong>Information</strong> <strong>Retrieval</strong><br />
Cosine similarity between query and<br />
document<br />
• q i is the tf-idf weight of term i in the query.<br />
• d i is the tf-idf weight of term i in the document.<br />
• | | and | | are the lengths of<br />
and<br />
• This is the cosine similarity of and . . . . . . or,<br />
equivalently, the cosine of the angle between and<br />
42