



下載本文檔
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
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 “l(fā)eopard ” 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. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 財(cái)務(wù)人員的責(zé)任與義務(wù)計(jì)劃
- 制定清晰的財(cái)務(wù)目標(biāo)計(jì)劃
- 幼兒藝術(shù)表現(xiàn)的多樣性研究計(jì)劃
- 萬(wàn)源市竹源煤業(yè)有限公司長(zhǎng)石二煤礦礦山地質(zhì)環(huán)境保護(hù)與土地復(fù)墾方案情況
- 2025年經(jīng)典大班蒙氏數(shù)學(xué)標(biāo)準(zhǔn)教案
- 空乘禮儀知識(shí)培訓(xùn)班課件
- 2025年四川貨運(yùn)從業(yè)資格證考試模擬考試答案
- 胃癌治療手段
- 2025年洛陽(yáng)貨運(yùn)從業(yè)資格證考試技巧
- 3D打印技術(shù)知到課后答案智慧樹(shù)章節(jié)測(cè)試答案2025年春上海電子信息職業(yè)技術(shù)學(xué)院
- 中國(guó)的地理實(shí)踐教學(xué)
- 《跟上兔子》繪本五年級(jí)第1季A-Magic-Card
- 建筑擋煙垂壁設(shè)計(jì)圖集
- 2024年天津市西青區(qū)中考英語(yǔ)一模試卷
- 人工智能科普教育活動(dòng)方案設(shè)計(jì)
- 第3課中古時(shí)期的西歐(教學(xué)課件)-【中職專(zhuān)用】《世界歷史》同步課堂(同課異構(gòu))(高教版2023?基礎(chǔ)模塊)
- 建筑工程夜間施工方案
- 國(guó)家中長(zhǎng)期科技發(fā)展規(guī)劃(2021-2035)
- 水利工程施工驗(yàn)收規(guī)范對(duì)工程監(jiān)理單位的要求
- 生豬行業(yè)pest分析
- 2024內(nèi)蒙古烏審旗圖克鎮(zhèn)圖克工業(yè)園區(qū)中天合創(chuàng)化工分公司招聘20人高頻考題難、易錯(cuò)點(diǎn)模擬試題(共500題)附帶答案詳解
評(píng)論
0/150
提交評(píng)論