信息检索导论-第一章-布尔检索(英文).ppt
《信息检索导论-第一章-布尔检索(英文).ppt》由会员分享,可在线阅读,更多相关《信息检索导论-第一章-布尔检索(英文).ppt(57页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Introduction toInformation RetrievalIntroducing Information Retrieval and Web SearchInformation RetrievalInformation Retrieval(IR)is finding material(usually documents)of an unstructured nature(usually text)that satisfies an information need from within large collections(usually stored on computers)
2、.These days we frequently think first of web search,but there are many other cases:E-mail searchSearching your laptopCorporate knowledge basesLegal information retrieval2Unstructured(text)vs.structured(database)data in the mid-nineties3Unstructured(text)vs.structured(database)data today4Basic assump
3、tions of Information RetrievalCollection:A set of documentsAssume it is a static collection for the momentGoal:Retrieve documents with information that is relevant to the users information need and helps the user complete a task5Sec.1.1how trap mice aliveThe classic search modelCollectionUser task I
4、nfo needQueryResultsSearchengineQueryrefinement Get rid of mice in a politically correct wayInfo about removing micewithout killing them Misconception?Misformulation?SearchHow good are the retrieved docs?Precision:Fraction of retrieved docs that are relevant to the users information needRecall:Fract
5、ion of relevant docs in collection that are retrievedMore precise definitions and measurements to follow later7Sec.1.1Introduction toInformation RetrievalTerm-document incidence matricesUnstructured data in 1620Which plays of Shakespeare contain the words Brutus AND Caesar but NOT Calpurnia?One coul
6、d grep all of Shakespeares plays for Brutus and Caesar,then strip out lines containing Calpurnia?Why is that not the answer?Slow(for large corpora)NOT Calpurnia is non-trivialOther operations(e.g.,find the word Romans near countrymen)not feasibleRanked retrieval(best documents to return)Later lectur
7、es9Sec.1.1Term-document incidence matrices1 if play contains word,0 otherwiseBrutus AND Caesar BUT NOT CalpurniaSec.1.1Incidence vectorsSo we have a 0/1 vector for each term.To answer query:take the vectors for Brutus,Caesar and Calpurnia(complemented)bitwise AND.110100 AND110111 AND101111=10010011S
8、ec.1.1Answers to queryAntony and Cleopatra,Act III,Scene iiAgrippa Aside to DOMITIUS ENOBARBUS:Why,Enobarbus,When Antony found Julius Caesar dead,He cried almost to roaring;and he wept When at Philippi he found Brutus slain.Hamlet,Act III,Scene iiLord Polonius:I did enact Julius Caesar I was killed
9、i the Capitol;Brutus killed me.12Sec.1.1Bigger collectionsConsider N=1 million documents,each with about 1000 words.Avg 6 bytes/word including spaces/punctuation 6GB of data in the documents.Say there are M=500K distinct terms among these.13Sec.1.1Cant build the matrix500K x 1M matrix has half-a-tri
10、llion 0s and 1s.But it has no more than one billion 1s.matrix is extremely sparse.Whats a better representation?We only record the 1 positions.14Why?Sec.1.1Introduction toInformation RetrievalThe Inverted IndexThe key data structure underlying modern IRInverted indexFor each term t,we must store a l
11、ist of all documents that contain t.Identify each doc by a docID,a document serial numberCan we used fixed-size arrays for this?16What happens if the word Caesar is added to document 14?Sec.1.2BrutusCalpurniaCaesar1245616 57 1321241131 4517323117454101Inverted indexWe need variable-size postings lis
12、tsOn disk,a continuous run of postings is normal and bestIn memory,can use linked lists or variable length arraysSome tradeoffs in size/ease of insertion17DictionaryPostingsSorted by docID(more later on why).PostingSec.1.2BrutusCalpurniaCaesar1245616 57 1321241131 4517323117454101TokenizerToken stre
13、amFriendsRomansCountrymenInverted index constructionLinguistic modulesModified tokensfriendromancountrymanIndexerInverted indexfriendromancountryman24213161Documents tobe indexedFriends,Romans,countrymen.Sec.1.2Initial stages of text processingTokenizationCut character sequence into word tokensDeal
14、with“Johns”,a state-of-the-art solutionNormalizationMap text and query term to same formYou want U.S.A.and USA to matchStemmingWe may wish different forms of a root to matchauthorize,authorizationStop wordsWe may omit very common words(or not)the,a,to,ofIndexer steps:Token sequenceSequence of(Modifi
15、ed token,Document ID)pairs.I did enact JuliusCaesar I was killed i the Capitol;Brutus killed me.Doc 1So let it be withCaesar.The nobleBrutus hath told youCaesar was ambitiousDoc 2Sec.1.2Indexer steps:SortSort by termsAnd then docID Core indexing stepSec.1.2Indexer steps:Dictionary&PostingsMultiple t
16、erm entries in a single document are merged.Split into Dictionary and PostingsDoc.frequency information is added.Why frequency?Will discuss later.Sec.1.2Where do we pay in storage?23PointersTerms and countsIR system implementationHow do we index efficiently?How much storage do we need?Sec.1.2Lists o
17、f docIDsIntroduction toInformation RetrievalQuery processing with an inverted indexThe index we just builtHow do we process a query?Later-what kinds of queries can we process?25Our focusSec.1.3Query processing:ANDConsider processing the query:Brutus AND CaesarLocate Brutus in the Dictionary;Retrieve
18、 its postings.Locate Caesar in the Dictionary;Retrieve its postings.“Merge”the two postings(intersect the document sets):2612834248163264123581321BrutusBrutusCaesarCaesarSec.1.3The mergeWalk through the two postings simultaneously,in time linear in the total number of postings entries273412824816326
19、4123581321BrutusBrutusCaesarCaesarIf the list lengths are x and y,the merge takes O(x+y)operations.Crucial:postings sorted by docID.Sec.1.3Intersecting two postings lists(a“merge”algorithm)28Introduction toInformation RetrievalThe Boolean Retrieval Model&Extended Boolean ModelsBoolean queries:Exact
20、matchThe Boolean retrieval model is being able to ask a query that is a Boolean expression:Boolean Queries are queries using AND,OR and NOT to join query termsViews each document as a set of wordsIs precise:document matches condition or not.Perhaps the simplest model to build an IR system onPrimary
21、commercial retrieval tool for 3 decades.Many search systems you still use are Boolean:Email,library catalog,Mac OS X Spotlight30Sec.1.3Example:WestLaw http:/ commercial(paying subscribers)legal search service(started 1975;ranking added 1992;new federated search added 2010)Tens of terabytes of data;7
22、00,000 usersMajority of users still use boolean queriesExample query:What is the statute of limitations in cases involving the federal tort claims act?LIMIT!/3 STATUTE ACTION/S FEDERAL/2 TORT/3 CLAIM/3=within 3 words,/S=in same sentence31Sec.1.4Example:WestLaw http:/ example query:Requirements for d
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 信息 检索 导论 第一章 布尔 英文
限制150内