



下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、C H A P T E R 21Information RetrievalPractice Exercises21.1Compute the relevance (usingappropriate denitionsof term fre-quency and inverse document frequency of each of the Practice Ex-ercises in this chapter to the query “SQL relation ”. Answer:We do not consider the questions containing neither of
2、 the keywords as their relevance to the keywords is zero. The number of words in a question include stop words. We use the equations given in Section 21.2to compute relevance; the log term in the equation is assumed to be to the base 2. 21.2Suppose you want to nddocuments that contain at least k of
3、a givenset of n keywords. Suppose also you have a keyword index that gives you a (sortedlist of identiersof documents that contain a speciedkeyword. Give an efcientalgorithm to ndthe desired set of docu-ments. Answer:Let S be a set of n keywords. An algorithm to ndall docu-ments that contain at leas
4、t k of these keywords is given below :12Chapter 21Information RetrievalThis algorithm calculates a reference count for each document identi-er.A reference count of i for a document identierd means that at least i of the keywords in S occur in the document identiedby d . The algorithm maintains a lis
5、t of records, each having two eldsa document identier,and the reference count for this identier.This list is maintained sorted on the document identiereld.initialize the list L to the empty list; for (eachkeyword c in S dobeginD :=the list of documents identierscorresponding to c ;for (eachdocument
6、identierd in D doif (arecord R with document identieras d is on list L thenR . re f erence :=R . re f erence count +1;else beginmake a new record R ; R . document :=d ;R . re f erence :=1;add R to L ; end ;end ;for (eachrecord R in L doif (R . re f erence >=k thenoutput R ;Note that execution of
7、the second for statement causes the list D to “merge ”with the list L . Since the lists L and D are sorted, the time taken for this merge is proportional to the sum of the lengths of the two lists. Thus the algorithm runs in time (atmost proportional to n times the sum total of the number of documen
8、t identierscorresponding to each keyword in S .21.3Suggest how to implement the iterative technique for computing Page-Rank given that the T matrix (evenin adjacency list representation does not tin memory. Answer:No answer21.4Suggest how a document containing a word (suchas “leopard ” canbe indexed
9、 such that it is efcientlyretrieved by queries using a more general concept (suchas “carnivore ”or “mammal ”. You can assume that the concept hierarchy is not very deep, so each concept has only a few generalizations (aconcept can, however, have a large number of specializations. You can also assume
10、 that you are provided with a func-tion that returns the concept for each word in a document. Also suggest how a query using a specialized concept can retrieve documents using a more general concept. Answer:Add doc to index lists for more general concepts also.Practice Exercises 321.5Suppose inverte
11、d lists are maintained in blocks, with each block not-ing the largest popularity rank and TF-IDF scores of documents in the remaining blocks in the list. Suggest how merging of inverted lists can stop early if the user wants only the top K answers. Answer:For all documents whose scores are not complete use u
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025专业深圳合同范本
- 2025解析山东省商品供销合同范本
- 2025解除劳动合同证明书格式详解
- 2025标准代理商合同示范文本
- 2025木材买卖合同协议书
- 2025办公设备租赁合同范本
- 《腰椎间盘突出与腰痛》课件
- 《仓储管理策略》课件
- 2025年山东临沂临港招商服务集团有限公司招聘笔试参考题库附带答案详解
- 2025年福建泉州晋江晋文坊商业管理有限公司招聘笔试参考题库含答案解析
- 第一轮复习八年级上第二单元 遵守社会规则 教学案
- 代理授权书模板
- 论语子路篇-论语子路篇讲解课件
- 咯血-护理查房课件
- 公路工程施工现场安全检查手册
- 黄河上游历史大洪水市公开课金奖市赛课一等奖课件
- 激光跟踪仪使用手册
- 货物采购服务方案
- 图纸答疑格式
- DB11-T 1322.64-2019 安全生产等级评定技术规范 第64部分:城镇供水厂
- 《普通生物学教案》word版
评论
0/150
提交评论