Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 1 : Design a BM 2 5 - based IR model ( BM 2 5 ) that ranks documents in each data collection using
Task : Design a BMbased IR model BM that ranks documents in each data collection
using the corresponding topic query for all data collections.
Inputs: long queries topics in theQueries.txt and the corresponding data collections
DataC DataC DataC
Output: ranked document files eg for Query R the output file name is
BMRRanking.dat for all data collections and save them in the folder
RankingOutputs
For each long query topic Q you need to use the following equation to calculate a score for
each document D in the corresponding data collection dataset:
sumi in Qlog leftfracriRriniriNniRrirightcdot frackfikficdot frackq fikq fi
where Q is the title of the long query, k k b K kb bdl avdl dl
is document Ds length and avdl is the average length of a document in the dataset, the base of
the log function is Note that BM values can be negative, and you may need to update the
above equation to produce nonnegative values but keep the resulting documents in the same
rank order.
Formally describe your design for BM in an algorithm to rank documents in each data
collection using corresponding query topic for all data collections. When you use the BM score to rank the documents of each data collection, you also need to answer what the
query feature function and document feature function are.
Use Python to implement: BM For each long query, your python programs will produce ranked resultsand save them into dat files. For example, for query R you can save the ranked results of
thee models into BMRRanking.dat by using the following format, where the firstcolumn is the document id the itemid in the corresponding XML document and the secondcolumn is the document score or probability
OUTPUT for BM Model
QueryDocID Weight:
QueryDocID Weight:
QueryDocID Weight:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started