Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Introduction to Information Retrieval Sec. 6.4 tf-idf example: Inc.Ito Document: car insurance auto insurance Query: best car insurance Term Query Document Pro d e auto

image text in transcribed

Introduction to Information Retrieval Sec. 6.4 tf-idf example: Inc.Ito Document: car insurance auto insurance Query: best car insurance Term Query Document Pro d e auto best car insurance tf- tf-wt df idf wt n'liz tf-raw tf-wt wt n'liz raw e 0 0 5000 2.3 0 0 1 1 1 0.52 0 1 1 50000 1.3 1.3 0.34 0 0 0 0 0 1 1 10000 2.0 2.0 0.52 1 1 1 0.52 0.27 1 1 1000 3.0 3.0 0.78 2 1.3 1.3 0.68 0.53 Exercise: what is N, the number of docs? Doc length = 1 +02 +1 +1.32 -1.92 Score = 0+0+0.27+0.53 = 0.8 repeat the calculation for the following 2 documents ( leave query info the same) d1 ( already done) car insurance auto insurance d2 (new doc) car auto insurance auto d3 (new doc) car car auto insurance car Compare the scores between the three documents, then normalize the results 2) Repeat for all three docs for the Jacard coefficient, then normalize the results Introduction to Information Retrieval Sec. 6.4 tf-idf example: Inc.Ito Document: car insurance auto insurance Query: best car insurance Term Query Document Pro d e auto best car insurance tf- tf-wt df idf wt n'liz tf-raw tf-wt wt n'liz raw e 0 0 5000 2.3 0 0 1 1 1 0.52 0 1 1 50000 1.3 1.3 0.34 0 0 0 0 0 1 1 10000 2.0 2.0 0.52 1 1 1 0.52 0.27 1 1 1000 3.0 3.0 0.78 2 1.3 1.3 0.68 0.53 Exercise: what is N, the number of docs? Doc length = 1 +02 +1 +1.32 -1.92 Score = 0+0+0.27+0.53 = 0.8 repeat the calculation for the following 2 documents ( leave query info the same) d1 ( already done) car insurance auto insurance d2 (new doc) car auto insurance auto d3 (new doc) car car auto insurance car Compare the scores between the three documents, then normalize the results 2) Repeat for all three docs for the Jacard coefficient, then normalize the results

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

can you please help me with these accounting problems.

Answered: 1 week ago