现代信息检索导论作业讲评.pptx
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《现代信息检索导论作业讲评.pptx》由会员分享,可在线阅读,更多相关《现代信息检索导论作业讲评.pptx(20页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、会计学1现代信息检索导论作业讲评现代信息检索导论作业讲评n n不要抄袭n n有两位同学一次作业都没交,请认识他们的同学转告一下。作业说明第1页/共20页第一次作业第一次作业n nEstimate the time and space complexity of the SPIM indexing Estimate the time and space complexity of the SPIM indexing algorithmalgorithmn n把空间复杂度与实际内存使用情况混淆把空间复杂度与实际内存使用情况混淆第2页/共20页第一次作业第一次作业n nDesign a MapRed
2、uce algorithm for counting the Design a MapReduce algorithm for counting the occurrence no.of occurrence no.of a a“phrasephrase”of n of n orderedordered words words WW1 1WWn nn n直接使用直接使用(tid,did,pos)(tid,did,pos)三元组三元组第3页/共20页第二次作业 编程题1.1.Write two C functions to encode and decode variable-byte Writ
3、e two C functions to encode and decode variable-byte integers.integers.2.2.Write two C functions to encode and decode Write two C functions to encode and decode integers.integers.3.3.(*)Write two C functions to encode and decode(*)Write two C functions to encode and decode integers integers Exercise
4、 5.9.Exercise 5.9.基本上都做的很好基本上都做的很好编码理解有误编码理解有误精简代码精简代码第4页/共20页第三次作业 第一题n nCompute the vector space similarity between the query Compute the vector space similarity between the query“digital cameras”and the document“digital cameras and“digital cameras”and the document“digital cameras and video camera
5、s”by filling out the empty columns in Table 6.1 video cameras”by filling out the empty columns in Table 6.1(p132).Assume N=10,000,000,logarithmic term weighting(p132).Assume N=10,000,000,logarithmic term weighting(wf columns)for query and document,idf weighting for the(wf columns)for query and docum
6、ent,idf weighting for the query only and cosine normalization for the document only.query only and cosine normalization for the document only.Treat and as a stop word.Enter term counts in the tf Treat and as a stop word.Enter term counts in the tf columns.Give the final similarity score.columns.Give
7、 the final similarity score.第5页/共20页第三次作业 第一题n nquery“digital cameras”query“digital cameras”n ndocument“digital cameras and video cameras”document“digital cameras and video cameras”n nN=10,000,000N=10,000,000查询查询文档文档dtfwfdfidfqtfwfdq*dlog(N/DF)wf*idf1+log(tf)normalize(wf)digital1110,000log(1000)=331
8、1+log(1)=10.521.56video00100,000log(100)=2011+log(1)=10.520cameras1150,000log(200)=2.32.321+log(2)=1.30.681.564第6页/共20页第三次作业 第二题n nWe suggested that the postings for static quality ordering be in We suggested that the postings for static quality ordering be in decreasing order of decreasing order of
9、 g g(d d).Why do we use the decreasing rather).Why do we use the decreasing rather than the increasing order?How to do linear merge of postings than the increasing order?How to do linear merge of postings with with g g(d d)?Write a C function to present your idea.)?Write a C function to present your
10、 idea.第7页/共20页n n忽略了didn n未保持g(d)的顺序第三次作业 第二题第8页/共20页第四次作业 第二题在10000篇文档构成的文档集中,某个查询的相关文档总数为8,下面给出了某系统针对前20个有序结果的相关(R)和不相关(N)情况:RRNNN NNNRN RNNNR NNNNRA.前20篇文档的正确率:P=6/20=30%B.前20篇文档的F1值:F1=2PR/(R+P)其中R=6/8,故F1=0.4286第9页/共20页第四次作业 第二题n nRRNNN NNNRN RNNNR NNNNRn nC.在25%召回率水平上的插值正确率:100%n nD.在33%召回率水平上
11、的插值正确率:36.4%0.1250.250.3750.50.6250000000000.750000000000100806040200第10页/共20页第四次作业 第二题n nRRNNN NNNRN RNNNR NNNNRn nE.假定该系统所有返回结果的数目就是20,则MAP=(1+2/2+3/9+4/11+5/15+6/20+0+0)/8 =0.4163第11页/共20页第四次作业 第二题RRNNN NNNRN RNNNR NNNNRRRNNN NNNRN RNNNR NNNNRF.F.该系统可能的最大该系统可能的最大MAP:MAP:当第当第2121和和2222篇文档都是相关文档时,篇
12、文档都是相关文档时,MAPMAP达到最大值。达到最大值。MAP=(1+2/2+3/9+4/11+5/15+6/20+7/21+8/22)/8 MAP=(1+2/2+3/9+4/11+5/15+6/20+7/21+8/22)/8 =0.5034 =0.5034G.G.该系统可能的最小该系统可能的最小MAP:MAP:当第当第99999999和和1000010000篇文档是相关文档时,篇文档是相关文档时,MAPMAP达到最小值。达到最小值。MAP=(1+2/2+3/9+4/11+5/15+6/20+7/9999+8/10000)/8 MAP=(1+2/2+3/9+4/11+5/15+6/20+7/9
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 现代 信息 检索 导论 作业 讲评
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内