Ges$one Avanzata dell Informazione Part A Full- Text Informa$on Management. Full- Text Indexing

Size: px
Start display at page:

Download "Ges$one Avanzata dell Informazione Part A Full- Text Informa$on Management. Full- Text Indexing"

Transcription

1 Ges$one Avanzata dell Informazione Part A Full- Text Informa$on Management Full- Text Indexing

2 Contents } Introduction } Inverted Indices } Construction } Searching 2 GAvI - Full- Text Informa$on Management: Full- Text Indexing

3 Sequen$al or online searching } Involves finding the occurrences of a pafern in a text when the text is not preprocessed } Is appropriate when the text is small } Is the only choice if the text collec$on is very vola$le (i.e. undergoes modifica$ons very frequently), or the index space overhead cannot be afforded 3 GAvI - Full- Text Informa$on Management: Full- Text Indexing

4 Indexed searching Index } data structure over the text to speed up the search } is appropriate when the text collec$on is large and semi- sta$c } Semi- sta$c collec$on: is updated at reasonably regular intervals but is not deemed to support thousands of inser$on of single words per second. Indexing techniques } inverted indices, suffix arrays, and signature files } consider } search cost } space overhead } cost of building and upda$ng indexing structures 4 GAvI - Full- Text Informa$on Management: Full- Text Indexing

5 Indexing techniques Inverted indices } Word oriented mechanism for indexing a text collec$on } Composed of vocabulary and occurrences } are currently the best choice for most applica$ons Suffix arrays } are faster for phrase searches and other less common queries } are harder to build and maintain Signature files } Word oriented index structures based on hashing } were popular in the 980s 5 GAvI - Full- Text Informa$on Management: Full- Text Indexing

6 Nota$ons and Background } Nota$ons n: the size of the text database m: pafern length M: amount of main memory available } Background } sorted arrays } binary search tree } B- tree } hash table } trie 6 GAvI - Full- Text Informa$on Management: Full- Text Indexing

7 Trie } TRIE or PREFIX TREE } An in- memory mul$way tree storing a set of strings } } } Strings are stored in the leaves Every edge of the trie is labelled with a lefer All the descendants of a node have a common prefix } the sequence of lefers from root to the node This is a text. A text has many words. Words are made from lefers. Strings to be stored and the l lefers:60 corresponding star$ng posi$ons: d made:50 lefers: 60 m a made:50 t n many: 28 text:,9 many:28 w text:, 9 words:33,40 words: 33,40 7 GAvI - Full- Text Informa$on Management: Full- Text Indexing

8 Trie (cont.) Construc<on } The root of the trie uses the first character } The children of the root uses the second character, and so on } If the remaining subtrie contains only one string, that string s iden$ty is stored in a leaf node Access } Start from the root } Follow the path given by the character sequence of the pafern } Stop when a leaf is found or no character matches with the current one } the access cost is O(m) 8 GAvI - Full- Text Informa$on Management: Full- Text Indexing

9 Contents } Introduction } Inverted Indices } Construction } Searching 9 GAvI - Full- Text Informa$on Management: Full- Text Indexing

10 Sec.. Unstructured data in 680 } Which plays of Shakespeare contain the words Brutus AND Caesar but NOT Calpurnia? } One could grep all of Shakespeare s 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- trivial } Other opera$ons (e.g., find the word Romans near countrymen) not feasible 0

11 Sec.. Term- document incidence Antony and Cleopatra Julius Caesar The Tempest Hamlet Othello Macbeth Antony Brutus Caesar 0 Calpurnia Cleopatra mercy 0 worser 0 0 Brutus AND Caesar BUT NOT Calpurnia if play contains word, 0 otherwise

12 Sec.. Incidence vectors } So we have a 0/ vector for each term. } To answer query: } take the vectors for } Brutus: 000 } Caesar: 0 } Calpurnia (complemented):0 } bitwise AND } 000 AND 0 AND 0 = 0000 } Select the documents corresponding to 2

13 Sec.. Answers to query } Antony and Cleopatra, Act III, Scene ii Agrippa [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 ii Lord Polonius: I did enact Julius Caesar I was killed i' the Capitol; Brutus killed me. 3

14 Bigger collec$on } Consider N = 0 6 documents, each with about 000 tokens total of 0 9 tokens } On average 6 bytes per token, including spaces and punctua$on size of document collec$on is about = 6 GB } Assume there are M = 500,000 dis$nct terms in the collec$on (Note that we are making a term/token dis$nc$on.) 4 GAvI - Full- Text Informa$on Management: Full- Text Indexing

15 Can t build the incidence matrix } M = 500, = half a trillion 0s and s. } But the matrix has no more than one billion s. } Matrix is extremely sparse. } What is a befer representa$ons? } We only record the s. 5 GAvI - Full- Text Informa$on Management: Full- Text Indexing

16 Sec..2 Inverted index } For each term t, we must store a list of all documents that contain t. } Iden$fy each by a docid, a document serial number } Can we use fixed- size arrays for this? Brutus Caesar Calpurnia What happens if the word Caesar is added to document 4? 6

17 Defini$on of Inverted index } A word- oriented mechanism for indexing a text collec$on in order to speed up the searching task } Two elements } Vocabulary } The set of all different words in the text } Occurrences (Pos<ng lists) } For each word a list of loca$ons where term occurs Document- based: A list of documents with the corresponding term frequency Word- based: A list of documents with the corresponding word posi$ons 7 GAvI - Full- Text Informa$on Management: Full- Text Indexing

18 Document- based inverted index Index terms computer database df 3 2 D j, tf j D 7, 4 D, 3 science 4 D 2, 4 system D 5, 2 Vocabulary Pos<ng lists 8 GAvI - Full- Text Informa$on Management: Full- Text Indexing

19 Word- based inverted index Index terms computer database df 3 2 D j, wp,, wp n D 7, 50, 90, 50, 800 D,,00,634 science system 4 D 2, D 5, Vocabulary Pos<ng lists } The posi$on of the term in the document, wp i, facilitates proximity searching 9 GAvI - Full- Text Informa$on Management: Full- Text Indexing

20 Space requirements } The space required for the vocabulary is rather small } HEAPS LAW: the vocabulary grows as O(n b ) where b [0,] (usually [0.4,0.6]) } The occurrences demand much more space Occurrence space (in rela$on to original collec$on size) Small collec$on ( Mb) No Stop words All text Medium collec$on (200 Mb) No Stop words All text Large collec$on (2 Gb) No Stop words All text Addressing words 45% 73% 36% 64% 35% 63% Addressing documents 9% 26% 8% 32% 26% 47% 20 GAvI - Full- Text Informa$on Management: Full- Text Indexing

21 Contents } Introduction } Inverted Indices } Construction } Searching 2 GAvI - Full- Text Informa$on Management: Full- Text Indexing

22 Sec..2 Inverted index construc$on Documents to be indexed Friends, Romans, countrymen. Tokenizer Friends Romans Countrymen Linguis$c modules Modified tokens Inverted index Indexer friend roman countryman friend roman countryman

23 Construc$on based on a trie } All the vocabulary known up to now is kept in a trie structure Steps. Read each word of the text 2. Search the word in the trie 3. If word is not found in the trie, it is added to the trie with an empty list of occurrences 4. If word is in the trie, the new posi$on is added to the end of its list of occurrences } Once the text is exhausted, the trie is wrifen to disk together with the list of occurences Complexity O() opera$ons per text character (step 2) O() inser$on of the posi$on in the list of occurrences (steps 3 & 4) O(n) for the overall process 23 GAvI - Full- Text Informa$on Management: Full- Text Indexing

24 Splipng the index into two files } Splipng the index into two files allows the vocabulary to be kept in memory at search $me in many cases } Pos$ng file } The lists of occurrences are stored con$guously } Vocabulary file } The vocabulary is stored and, for each word, the number of documents associated with it and a pointer to its list in the pos$ng file is also included 24 GAvI - Full- Text Informa$on Management: Full- Text Indexing

25 An example Vocabulary file implemented through a sorted array Term Start n boundary case computer database deliver document fan play position science System Pos$ng file The pos<ng list of document starts at posi<on 7 and contains 3 entries document is contained in documents with frequency 25 GAvI - Full- Text Informa$on Management: Full- Text Indexing

26 Structures for vocabulary file To accelerate vocabulary searches: } Sorted array } The vocabulary is stored in lexicographical order } Searched using a standard binary search } Complexity O(log 2 vocabulary ) } Disadvantage: upda$ng is expensive } B + - tree } The vocabulary is stored in a B + - tree } Disadvantage: B + - tree uses more space than sorted array } Trie } Hash 26 GAvI - Full- Text Informa$on Management: Full- Text Indexing

27 Construc$on using PARTIAL INDICES } For large texts where the index does not fit in main memory Construc<on step. The algorithm already described is used un$l the main memory is exhausted. 2. When no more memory is available, the par$al index obtained up to now is wrifen to disk. 3. Erase from main memory. 4. Con$nue with the rest of the text. 5. A number of par$al indices on disk are merged in a hierarchical fashion. 27 GAvI - Full- Text Informa$on Management: Full- Text Indexing

28 Merging par$al indices Merging step } Given two par$al indexes I and I 2. Merge the sorted vocabularies Complexity O( I + I 2 )) 2. Whenever the same word appears in both indices, merge both lists of occurrences } } By construc$on, the occurrences of the smaller- numbered index are before those of the larger- numbered index We can perform list concatena$on 28 GAvI - Full- Text Informa$on Management: Full- Text Indexing

29 Merging par$al indices I computer database system D, 20,50,90 D, 30 D, 00 I 2 CAD D 2, 20 database D 2, 0 system 2 D, 20 D 2, 50 I 2 CAD D 2, 20 computer D, 20,50,90 database system 2 2 D, 30 D 2, 0 D, 00 D, 20 D 2, GAvI - Full- Text Informa$on Management: Full- Text Indexing

30 Merging par$al indices Binary fashion } More than two indices can be merged } Complexity: } } } n/m: Number of par$al indexes O(n) merging cost at each level O(n log(n/m)) the overall cost } To reduce build- $me space requirements } It is possible to perform the merging in- place I I I-5..8 I-..2 I-3..4 I-5..6 I I- I-2 I-3 I-4 I-5 I-6 I-7 I-8 Level (initial dumps) 6 Level 4 (final index) Level 3 Level 2 30 GAvI - Full- Text Informa$on Management: Full- Text Indexing

31 Popular indexing systems Informa$on platorm for enterprise Open seman$c search Enterprise search platorm Web crawler Indexing and search technology 3 GAvI - Full- Text Informa$on Management: Full- Text Indexing

32 Addi$onal material } Inside google data center hfps:// } Inverted index compression } Stanford IR book chapter hfp://nlp.stanford.edu/ir- book/html/htmledi$on/index- compression-.html } MaFeo Catena, Craig Macdonald Iadh Ounis On Inverted Index Compression for Search Engine ECIR 204 (available online) } Inverted index distribu$on } Apache SolrCloud hfps://cwiki.apache.org/confluence/display/solr/how +SolrCloud+Works 32 GAvI - Full- Text Informa$on Management: Full- Text Indexing

33 Contents } Introduction } Inverted Indices } Construction } Searching 33 GAvI - Full- Text Informa$on Management: Full- Text Indexing

34 Three General steps. Vocabulary search } } The paferns and words present in the query are isolated and searched in the vocabulary } Phrases and proximity queries are split into single words The cost depends on the used structure } Trie or Hash: O(m) thus independent on the text size } B- tree or Sorted Array: O(log n) 2. Retrieval of occurrences } The lists of the occurrences of all the words found are retrieved 3. Manipula$on of occurrences } The occurrences are processed to solve basic queries, phrases, proximity, or Boolean opera$ons 34 GAvI - Full- Text Informa$on Management: Full- Text Indexing

35 Single- word Retrieval } Single- word queries } Can be searched using any suitable data structure to speed up the search in the vocabulary file } Prefix and range queries } Can be solved with binary search, tries, or B- trees, but not with hashing. 35 GAvI - Full- Text Informa$on Management: Full- Text Indexing

36 Boolean Retrieval } Given a boolean query } Parse the query into its syntax tree } Leaves: basic queries database AND } Internal nodes: operators Q: database OR science AND case? } Solve the leaves of the query syntax tree using science the appropriate algorithm } Work the relevant documents by composi$on operators } OR: Recursively retrieve e and e 2 and take union of results } AND: Recursively retrieve e and e 2 and take intersec$on of results } BUT: Recursively retrieve e and e 2 and take set difference of results } Op$miza$on } } Algebraic op$miza$on } E.g. a OR (a AND b) = a Keep the set sorted in order to proceed sequen$ally on both lists when intersec$on, union, etc. are required OR case 36 GAvI - Full- Text Informa$on Management: Full- Text Indexing

37 Intersec$ng two pos$ngs lists (a merge algorithm) 37

38 Boolean Retrieval Term Start n boundary case computer database deliver document fan play position science System Q: database OR science AND case? database OR science AND case database OR ( {003,004} {00,004} ) {002} {004} {002,004} 38 GAvI - Full- Text Informa$on Management: Full- Text Indexing

39 Phrasal Retrieval } BeFer a word- based inverted file Retrieve documents and posi$ons for each individual word 2 intersect documents 3 check for ordered con$guity of keyword posi$ons } Best to start con$guity check with the least common word in the phrase } Simple and effec$ve op$miza$on: Process in order of increasing frequency 39 GAvI - Full- Text Informa$on Management: Full- Text Indexing

40 Searching: Phrasal Retrieval. Find set of documents D in which all keywords (k k m ) in phrase occur (using AND query processing) 2. Ini$alize empty set, R, of retrieved documents 3. For each document, d, in D:. Get array, P i,of posi$ons of occurrences for each k i in d 2. Find shortest array P s of the P i s 3. For each posi$on p of keyword k s in P s For each keyword k i except k s. Use binary search to find a posi$on (p + i s) in the array P i 4. If correct posi$on for every keyword found, add d to R 4. Return R 40 GAvI - Full- Text Informa$on Management: Full- Text Indexing

41 Searching: Phrasal Retrieval This is a text. A text has many words. Words are made from lefers. letters made 6 3 many text words Step 3.3: take 3 7, 2 4, 5 Q: many words? 2 P (many) 3 P P 2 P 2 (words) 4, 5 Step 3.3.: Use binary search to find the posi$on (p + i s) = ( ) in the array P 2 Step 4: add the document to R 4 GAvI - Full- Text Informa$on Management: Full- Text Indexing

42 Searching: Proximity Retrieval } Use approach similar to phrasal search to find documents in which all keywords are found in a context that sa$sfies the proximity constraints } During binary search for posi$ons of remaining keywords, find closest posi$on of k i to p and check that it is within maximum allowed distance 42 GAvI - Full- Text Informa$on Management: Full- Text Indexing

Information Retrieval

Information Retrieval Introduction to Information Retrieval CS276 Information Retrieval and Web Search Christopher Manning and Prabhakar Raghavan Lecture 1: Boolean retrieval Information Retrieval Information Retrieval (IR)

More information

Information Retrieval

Information Retrieval Introduction to Information Retrieval CS276 Information Retrieval and Web Search Pandu Nayak and Prabhakar Raghavan Lecture 1: Boolean retrieval Information Retrieval Information Retrieval (IR) is finding

More information

Unstructured Data Management. Advanced Topics in Database Management (INFSCI 2711)

Unstructured Data Management. Advanced Topics in Database Management (INFSCI 2711) Unstructured Data Management Advanced Topics in Database Management (INFSCI 2711) Textbooks: Database System Concepts - 2010 Introduction to Information Retrieval - 2008 Vladimir Zadorozhny, DINS, SCI,

More information

Introduction to Information Retrieval

Introduction to Information Retrieval Introduction to Information Retrieval http://informationretrieval.org IIR 1: Boolean Retrieval Hinrich Schütze Institute for Natural Language Processing, University of Stuttgart 2011-05-03 1/ 36 Take-away

More information

Introduction to Information Retrieval and Boolean model. Reference: Introduction to Information Retrieval by C. Manning, P. Raghavan, H.

Introduction to Information Retrieval and Boolean model. Reference: Introduction to Information Retrieval by C. Manning, P. Raghavan, H. Introduction to Information Retrieval and Boolean model Reference: Introduction to Information Retrieval by C. Manning, P. Raghavan, H. Schutze 1 Unstructured (text) vs. structured (database) data in late

More information

CSE 7/5337: Information Retrieval and Web Search Introduction and Boolean Retrieval (IIR 1)

CSE 7/5337: Information Retrieval and Web Search Introduction and Boolean Retrieval (IIR 1) CSE 7/5337: Information Retrieval and Web Search Introduction and Boolean Retrieval (IIR 1) Michael Hahsler Southern Methodist University These slides are largely based on the slides by Hinrich Schütze

More information

Informa(on Retrieval

Informa(on Retrieval Introduc)on to Informa(on Retrieval cs160 Introduction David Kauchak adapted from: h6p://www.stanford.edu/class/cs276/handouts/lecture1 intro.ppt Introduc)ons Name/nickname Dept., college and year One

More information

Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology

Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology M. Soleymani Fall 2013 Most slides have been adapted from: Profs. Manning, Nayak & Raghavan (CS-276,

More information

Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology

Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology M. Soleymani Fall 2016 Most slides have been adapted from: Profs. Manning, Nayak & Raghavan lectures

More information

Information Retrieval

Information Retrieval Introduction to Information Retrieval Information Retrieval and Web Search Lecture 1: Introduction and Boolean retrieval Outline ❶ Course details ❷ Information retrieval ❸ Boolean retrieval 2 Course details

More information

CS105 Introduction to Information Retrieval

CS105 Introduction to Information Retrieval CS105 Introduction to Information Retrieval Lecture: Yang Mu UMass Boston Slides are modified from: http://www.stanford.edu/class/cs276/ Information Retrieval Information Retrieval (IR) is finding material

More information

Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology

Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology M. Soleymani Fall 2015 Most slides have been adapted from: Profs. Manning, Nayak & Raghavan lectures

More information

Advanced Retrieval Information Analysis Boolean Retrieval

Advanced Retrieval Information Analysis Boolean Retrieval Advanced Retrieval Information Analysis Boolean Retrieval Irwan Ary Dharmawan 1,2,3 iad@unpad.ac.id Hana Rizmadewi Agustina 2,4 hagustina@unpad.ac.id 1) Development Center of Information System and Technology

More information

boolean queries Inverted index query processing Query optimization boolean model September 9, / 39

boolean queries Inverted index query processing Query optimization boolean model September 9, / 39 boolean model September 9, 2014 1 / 39 Outline 1 boolean queries 2 3 4 2 / 39 taxonomy of IR models Set theoretic fuzzy extended boolean set-based IR models Boolean vector probalistic algebraic generalized

More information

Behrang Mohit : txt proc! Review. Bag of word view. Document Named

Behrang Mohit : txt proc! Review. Bag of word view. Document  Named Intro to Text Processing Lecture 9 Behrang Mohit Some ideas and slides in this presenta@on are borrowed from Chris Manning and Dan Jurafsky. Review Bag of word view Document classifica@on Informa@on Extrac@on

More information

Part 2: Boolean Retrieval Francesco Ricci

Part 2: Boolean Retrieval Francesco Ricci Part 2: Boolean Retrieval Francesco Ricci Most of these slides comes from the course: Information Retrieval and Web Search, Christopher Manning and Prabhakar Raghavan Content p Term document matrix p Information

More information

Introduction to Information Retrieval

Introduction to Information Retrieval Mustafa Jarrar: Lecture Notes on Information Retrieval University of Birzeit, Palestine 2014 Introduction to Information Retrieval Dr. Mustafa Jarrar Sina Institute, University of Birzeit mjarrar@birzeit.edu

More information

Introducing Information Retrieval and Web Search. borrowing from: Pandu Nayak

Introducing Information Retrieval and Web Search. borrowing from: Pandu Nayak Introducing Information Retrieval and Web Search borrowing from: Pandu Nayak Information Retrieval Information Retrieval (IR) is finding material (usually documents) of an unstructured nature (usually

More information

Information Retrieval

Information Retrieval Information Retrieval Suan Lee - Information Retrieval - 01 Boolean Retrieval 1 01 Boolean Retrieval - Information Retrieval - 01 Boolean Retrieval 2 Introducing Information Retrieval and Web Search -

More information

Introduction to Information Retrieval

Introduction to Information Retrieval Introduction to Information Retrieval http://informationretrieval.org IIR 1: Boolean Retrieval Hinrich Schütze Center for Information and Language Processing, University of Munich 2014-04-09 Schütze: Boolean

More information

INFO 4300 / CS4300 Information Retrieval. slides adapted from Hinrich Schütze s, linked from

INFO 4300 / CS4300 Information Retrieval. slides adapted from Hinrich Schütze s, linked from INFO 4300 / CS4300 Information Retrieval slides adapted from Hinrich Schütze s, linked from http://informationretrieval.org/ IR 1: Boolean Retrieval Paul Ginsparg Cornell University, Ithaca, NY 27 Aug

More information

CS 572: Information Retrieval. Lecture 2: Hello World! (of Text Search)

CS 572: Information Retrieval. Lecture 2: Hello World! (of Text Search) CS 572: Information Retrieval Lecture 2: Hello World! (of Text Search) 1/13/2016 CS 572: Information Retrieval. Spring 2016 1 Course Logistics Lectures: Monday, Wed: 11:30am-12:45pm, W301 Following dates

More information

Information Retrieval

Information Retrieval Introduction to Information Retrieval CS3245 Information Retrieval Lecture 2: Boolean retrieval 2 Blanks on slides, you may want to fill in Last Time: Ngram Language Models Unigram LM: Bag of words Ngram

More information

CSCI 5417 Information Retrieval Systems! What is Information Retrieval?

CSCI 5417 Information Retrieval Systems! What is Information Retrieval? CSCI 5417 Information Retrieval Systems! Lecture 1 8/23/2011 Introduction 1 What is Information Retrieval? Information retrieval is the science of searching for information in documents, searching for

More information

Search: the beginning. Nisheeth

Search: the beginning. Nisheeth Search: the beginning Nisheeth Interdisciplinary area Information retrieval NLP Search Machine learning Human factors Outline Components Crawling Processing Indexing Retrieval Evaluation Research areas

More information

Introduction to Information Retrieval

Introduction to Information Retrieval Introduction to Information Retrieval http://informationretrieval.org IIR 1: Boolean Retrieval Hinrich Schütze Institute for Natural Language Processing, Universität Stuttgart 2008.04.22 Schütze: Boolean

More information

Information Retrieval and Text Mining

Information Retrieval and Text Mining Information Retrieval and Text Mining http://informationretrieval.org IIR 1: Boolean Retrieval Hinrich Schütze & Wiltrud Kessler Institute for Natural Language Processing, University of Stuttgart 2012-10-16

More information

Indexing. Lecture Objectives. Text Technologies for Data Science INFR Learn about and implement Boolean search Inverted index Positional index

Indexing. Lecture Objectives. Text Technologies for Data Science INFR Learn about and implement Boolean search Inverted index Positional index Text Technologies for Data Science INFR11145 Indexing Instructor: Walid Magdy 03-Oct-2017 Lecture Objectives Learn about and implement Boolean search Inverted index Positional index 2 1 Indexing Process

More information

Information Retrieval and Organisation

Information Retrieval and Organisation Information Retrieval and Organisation Dell Zhang Birkbeck, University of London 2016/17 IR Chapter 01 Boolean Retrieval Example IR Problem Let s look at a simple IR problem Suppose you own a copy of Shakespeare

More information

Classic IR Models 5/6/2012 1

Classic IR Models 5/6/2012 1 Classic IR Models 5/6/2012 1 Classic IR Models Idea Each document is represented by index terms. An index term is basically a (word) whose semantics give meaning to the document. Not all index terms are

More information

Information Retrieval

Information Retrieval Introduction to Information Retrieval Introducing Information Retrieval and Web Search Information Retrieval Information Retrieval (IR) is finding material (usually documents) of an unstructurednature

More information

Introduction to Information Retrieval

Introduction to Information Retrieval Introduction Inverted index Processing Boolean queries Course overview Introduction to Information Retrieval http://informationretrieval.org IIR 1: Boolean Retrieval Hinrich Schütze Institute for Natural

More information

Information Retrieval

Information Retrieval Introduction to Information Retrieval Lecture 1: Boolean retrieval 1 Sec. 1.1 Unstructured data in 1680 Which plays of Shakespeare contain the words Brutus AND Caesar but NOT Calpurnia? One could grep

More information

1Boolean retrieval. information retrieval. term search is quite ambiguous, but in context we use the two synonymously.

1Boolean retrieval. information retrieval. term search is quite ambiguous, but in context we use the two synonymously. 1Boolean retrieval information retrieval The meaning of the term information retrieval (IR) can be very broad. Just getting a credit card out of your wallet so that you can type in the card number is a

More information

Boolean Retrieval. Manning, Raghavan and Schütze, Chapter 1. Daniël de Kok

Boolean Retrieval. Manning, Raghavan and Schütze, Chapter 1. Daniël de Kok Boolean Retrieval Manning, Raghavan and Schütze, Chapter 1 Daniël de Kok Boolean query model Pose a query as a boolean query: Terms Operations: AND, OR, NOT Example: Brutus AND Caesar AND NOT Calpuria

More information

Information Retrieval

Information Retrieval Information Retrieval Natural Language Processing: Lecture 12 30.11.2017 Kairit Sirts Homework 4 things that seemed to work Bidirectional LSTM instead of unidirectional Change LSTM activation to sigmoid

More information

Lecture 1: Introduction and the Boolean Model

Lecture 1: Introduction and the Boolean Model Lecture 1: Introduction and the Boolean Model Information Retrieval Computer Science Tripos Part II Helen Yannakoudakis 1 Natural Language and Information Processing (NLIP) Group helen.yannakoudakis@cl.cam.ac.uk

More information

Indexing and Searching

Indexing and Searching Indexing and Searching Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University References: 1. Modern Information Retrieval, chapter 8 2. Information Retrieval:

More information

Introduction to Information Retrieval IIR 1: Boolean Retrieval

Introduction to Information Retrieval IIR 1: Boolean Retrieval .. Introduction to Information Retrieval IIR 1: Boolean Retrieval Mihai Surdeanu (Based on slides by Hinrich Schütze at informationretrieval.org) Fall 2014 Boolean Retrieval 1 / 77 Take-away Why you should

More information

Indexing and Searching

Indexing and Searching Indexing and Searching Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University References: 1. Modern Information Retrieval, chapter 9 2. Information Retrieval:

More information

Informa(on Retrieval

Informa(on Retrieval Introduc)on to Informa)on Retrieval CS3245 Informa(on Retrieval Lecture 7: Scoring, Term Weigh9ng and the Vector Space Model 7 Last Time: Index Construc9on Sort- based indexing Blocked Sort- Based Indexing

More information

Inverted Indexes. Indexing and Searching, Modern Information Retrieval, Addison Wesley, 2010 p. 5

Inverted Indexes. Indexing and Searching, Modern Information Retrieval, Addison Wesley, 2010 p. 5 Inverted Indexes Indexing and Searching, Modern Information Retrieval, Addison Wesley, 2010 p. 5 Basic Concepts Inverted index: a word-oriented mechanism for indexing a text collection to speed up the

More information

Preliminary draft (c)2006 Cambridge UP

Preliminary draft (c)2006 Cambridge UP It is a common fallacy, underwritten at this date by the investment of several million dollars in a variety of retrieval hardware, that the algebra of George Boole (1847) is the appropriate formalism for

More information

Information Retrieval. Chap 8. Inverted Files

Information Retrieval. Chap 8. Inverted Files Information Retrieval Chap 8. Inverted Files Issues of Term-Document Matrix 500K x 1M matrix has half-a-trillion 0 s and 1 s Usually, no more than one billion 1 s Matrix is extremely sparse 2 Inverted

More information

Information Retrieval

Information Retrieval Introduction to Information Retrieval Boolean retrieval Basic assumptions of Information Retrieval Collection: Fixed set of documents Goal: Retrieve documents with information that is relevant to the user

More information

Lecture 1: Introduction and Overview

Lecture 1: Introduction and Overview Lecture 1: Introduction and Overview Information Retrieval Computer Science Tripos Part II Simone Teufel Natural Language and Information Processing (NLIP) Group Simone.Teufel@cl.cam.ac.uk Lent 2014 1

More information

PV211: Introduction to Information Retrieval https://www.fi.muni.cz/~sojka/pv211

PV211: Introduction to Information Retrieval https://www.fi.muni.cz/~sojka/pv211 PV211: Introduction to Information Retrieval https://www.fi.muni.cz/~sojka/pv211 IIR 1: Boolean Retrieval Handout version Petr Sojka, Hinrich Schütze et al. Faculty of Informatics, Masaryk University,

More information

Text Retrieval and Web Search IIR 1: Boolean Retrieval

Text Retrieval and Web Search IIR 1: Boolean Retrieval Text Retrieval and Web Search IIR 1: Boolean Retrieval Mihai Surdeanu (Based on slides by Hinrich Schütze at informationretrieval.org) Spring 2017 Boolean Retrieval 1 / 88 Take-away Why you should take

More information

A brief introduction to Information Retrieval

A brief introduction to Information Retrieval 1/64 A brief introduction to Information Retrieval Mark Johnson Department of Computing Macquarie University 2/64 Readings for today s talk Natural Language Processing: Analyzing Text with Python and the

More information

Data-analysis and Retrieval Boolean retrieval, posting lists and dictionaries

Data-analysis and Retrieval Boolean retrieval, posting lists and dictionaries Data-analysis and Retrieval Boolean retrieval, posting lists and dictionaries Hans Philippi (based on the slides from the Stanford course on IR) April 25, 2018 Boolean retrieval, posting lists & dictionaries

More information

CS6200 Informa.on Retrieval. David Smith College of Computer and Informa.on Science Northeastern University

CS6200 Informa.on Retrieval. David Smith College of Computer and Informa.on Science Northeastern University CS6200 Informa.on Retrieval David Smith College of Computer and Informa.on Science Northeastern University Indexing Process Indexes Indexes are data structures designed to make search faster Text search

More information

Search Engines. Informa1on Retrieval in Prac1ce. Annotations by Michael L. Nelson

Search Engines. Informa1on Retrieval in Prac1ce. Annotations by Michael L. Nelson Search Engines Informa1on Retrieval in Prac1ce Annotations by Michael L. Nelson All slides Addison Wesley, 2008 Indexes Indexes are data structures designed to make search faster Text search has unique

More information

Models for Document & Query Representation. Ziawasch Abedjan

Models for Document & Query Representation. Ziawasch Abedjan Models for Document & Query Representation Ziawasch Abedjan Overview Introduction & Definition Boolean retrieval Vector Space Model Probabilistic Information Retrieval Language Model Approach Summary Overview

More information

Informa/on Retrieval. Text Search. CISC437/637, Lecture #23 Ben CartereAe. Consider a database consis/ng of long textual informa/on fields

Informa/on Retrieval. Text Search. CISC437/637, Lecture #23 Ben CartereAe. Consider a database consis/ng of long textual informa/on fields Informa/on Retrieval CISC437/637, Lecture #23 Ben CartereAe Copyright Ben CartereAe 1 Text Search Consider a database consis/ng of long textual informa/on fields News ar/cles, patents, web pages, books,

More information

Introduc)on to. CS60092: Informa0on Retrieval

Introduc)on to. CS60092: Informa0on Retrieval Introduc)on to CS60092: Informa0on Retrieval Ch. 4 Index construc)on How do we construct an index? What strategies can we use with limited main memory? Sec. 4.1 Hardware basics Many design decisions in

More information

Indexing and Searching

Indexing and Searching Indexing and Searching Introduction How to retrieval information? A simple alternative is to search the whole text sequentially Another option is to build data structures over the text (called indices)

More information

Web Information Retrieval Exercises Boolean query answering. Prof. Luca Becchetti

Web Information Retrieval Exercises Boolean query answering. Prof. Luca Becchetti Web Information Retrieval Exercises Boolean query answering Prof. Luca Becchetti Material rif 3. Christopher D. Manning, Prabhakar Raghavan and Hinrich Schueze, Introduction to Information Retrieval, Cambridge

More information

Introduction to Information Retrieval

Introduction to Information Retrieval Introduction to Information Retrieval http://informationretrieval.org IIR 5: Index Compression Hinrich Schütze Center for Information and Language Processing, University of Munich 2014-04-17 1/59 Overview

More information

Data Mining and Pa+ern Recogni1on. Salvatore Orlando, Andrea Torsello, Filippo Bergamasco

Data Mining and Pa+ern Recogni1on. Salvatore Orlando, Andrea Torsello, Filippo Bergamasco Data Mining and Pa+ern Recognion Salvatore Orlando, Andrea Torsello, Filippo Bergamasco Informaon Hierarchy more refined and abstract, A (Faceous) Example Data 37º, 38.5º, 39.3º, 4º, Informaon Hourly body

More information

Informa(on Retrieval. Administra*ve. Sta*s*cal MT Overview. Problems for Sta*s*cal MT

Informa(on Retrieval. Administra*ve. Sta*s*cal MT Overview. Problems for Sta*s*cal MT Administra*ve Introduc*on to Informa(on Retrieval CS457 Fall 2011! David Kauchak Projects Status 2 on Friday Paper next Friday work on the paper in parallel if you re not done with experiments by early

More information

Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology

Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology Boolean retrieval & basics of indexing CE-324: Modern Information Retrieval Sharif University of Technology M. Soleymani Fall 2014 Most slides have been adapted from: Profs. Manning, Nayak & Raghavan (CS-276,

More information

Information Retrieval

Information Retrieval Introduction to Information Retrieval Lecture 6-: Scoring, Term Weighting Outline Why ranked retrieval? Term frequency tf-idf weighting 2 Ranked retrieval Thus far, our queries have all been Boolean. Documents

More information

Text Analytics. Index-Structures for Information Retrieval. Ulf Leser

Text Analytics. Index-Structures for Information Retrieval. Ulf Leser Text Analytics Index-Structures for Information Retrieval Ulf Leser Content of this Lecture Inverted files Storage structures Phrase and proximity search Building and updating the index Using a RDBMS Ulf

More information

Text Analytics. Index-Structures for Information Retrieval. Ulf Leser

Text Analytics. Index-Structures for Information Retrieval. Ulf Leser Text Analytics Index-Structures for Information Retrieval Ulf Leser Content of this Lecture Inverted files Storage structures Phrase and proximity search Building and updating the index Using a RDBMS Ulf

More information

Overview of Information Retrieval and Organization. CSC 575 Intelligent Information Retrieval

Overview of Information Retrieval and Organization. CSC 575 Intelligent Information Retrieval Overview of Information Retrieval and Organization CSC 575 Intelligent Information Retrieval 2 How much information? Google: ~100 PB a day; 1+ million servers (est. 15-20 Exabytes stored) Wayback Machine

More information

Index construc-on. Friday, 8 April 16 1

Index construc-on. Friday, 8 April 16 1 Index construc-on Informa)onal Retrieval By Dr. Qaiser Abbas Department of Computer Science & IT, University of Sargodha, Sargodha, 40100, Pakistan qaiser.abbas@uos.edu.pk Friday, 8 April 16 1 4.3 Single-pass

More information

Informa(on Retrieval

Informa(on Retrieval Introduc*on to Informa(on Retrieval CS276: Informa*on Retrieval and Web Search Pandu Nayak and Prabhakar Raghavan Lecture 4: Index Construc*on Plan Last lecture: Dic*onary data structures Tolerant retrieval

More information

Recap: lecture 2 CS276A Information Retrieval

Recap: lecture 2 CS276A Information Retrieval Recap: lecture 2 CS276A Information Retrieval Stemming, tokenization etc. Faster postings merges Phrase queries Lecture 3 This lecture Index compression Space estimation Corpus size for estimates Consider

More information

Querying Introduction to Information Retrieval INF 141 Donald J. Patterson. Content adapted from Hinrich Schütze

Querying Introduction to Information Retrieval INF 141 Donald J. Patterson. Content adapted from Hinrich Schütze Introduction to Information Retrieval INF 141 Donald J. Patterson Content adapted from Hinrich Schütze http://www.informationretrieval.org Overview Boolean Retrieval Weighted Boolean Retrieval Zone Indices

More information

CS60092: Informa0on Retrieval

CS60092: Informa0on Retrieval Introduc)on to CS60092: Informa0on Retrieval Sourangshu Bha1acharya Last lecture index construc)on Sort- based indexing Naïve in- memory inversion Blocked Sort- Based Indexing Merge sort is effec)ve for

More information

Informa(on Retrieval

Informa(on Retrieval Introduc)on to Informa)on Retrieval CS3245 Informa(on Retrieval Lecture 7: Scoring, Term Weigh9ng and the Vector Space Model 7 Last Time: Index Compression Collec9on and vocabulary sta9s9cs: Heaps and

More information

Information Retrieval

Information Retrieval Information Retrieval Suan Lee - Information Retrieval - 06 Scoring, Term Weighting and the Vector Space Model 1 Recap of lecture 5 Collection and vocabulary statistics: Heaps and Zipf s laws Dictionary

More information

Course work. Today. Last lecture index construc)on. Why compression (in general)? Why compression for inverted indexes?

Course work. Today. Last lecture index construc)on. Why compression (in general)? Why compression for inverted indexes? Course work Introduc)on to Informa(on Retrieval Problem set 1 due Thursday Programming exercise 1 will be handed out today CS276: Informa)on Retrieval and Web Search Pandu Nayak and Prabhakar Raghavan

More information

60-538: Information Retrieval

60-538: Information Retrieval 60-538: Information Retrieval September 7, 2017 1 / 48 Outline 1 what is IR 2 3 2 / 48 Outline 1 what is IR 2 3 3 / 48 IR not long time ago 4 / 48 5 / 48 now IR is mostly about search engines there are

More information

Information Retrieval CS Lecture 06. Razvan C. Bunescu School of Electrical Engineering and Computer Science

Information Retrieval CS Lecture 06. Razvan C. Bunescu School of Electrical Engineering and Computer Science Information Retrieval CS 6900 Lecture 06 Razvan C. Bunescu School of Electrical Engineering and Computer Science bunescu@ohio.edu Boolean Retrieval vs. Ranked Retrieval Many users (professionals) prefer

More information

Trustworthy Keyword Search for Regulatory Compliant Records Reten;on

Trustworthy Keyword Search for Regulatory Compliant Records Reten;on Trustworthy Keyword Search for Regulatory Compliant Records Reten;on S. Mitra, W. Hsu, M. WinsleA Presented by Thao Pham Introduc;on Important documents: emails, mee;ng memos, must be maintained in a trustworthy

More information

Information Retrieval

Information Retrieval Introduction to Information Retrieval Lecture 4: Index Construction 1 Plan Last lecture: Dictionary data structures Tolerant retrieval Wildcards Spell correction Soundex a-hu hy-m n-z $m mace madden mo

More information

Index construc-on. Friday, 8 April 16 1

Index construc-on. Friday, 8 April 16 1 Index construc-on Informa)onal Retrieval By Dr. Qaiser Abbas Department of Computer Science & IT, University of Sargodha, Sargodha, 40100, Pakistan qaiser.abbas@uos.edu.pk Friday, 8 April 16 1 4.1 Index

More information

Efficiency. Efficiency: Indexing. Indexing. Efficiency Techniques. Inverted Index. Inverted Index (COSC 488)

Efficiency. Efficiency: Indexing. Indexing. Efficiency Techniques. Inverted Index. Inverted Index (COSC 488) Efficiency Efficiency: Indexing (COSC 488) Nazli Goharian nazli@cs.georgetown.edu Difficult to analyze sequential IR algorithms: data and query dependency (query selectivity). O(q(cf max )) -- high estimate-

More information

Administrative. Distributed indexing. Index Compression! What I did last summer lunch talks today. Master. Tasks

Administrative. Distributed indexing. Index Compression! What I did last summer lunch talks today. Master. Tasks Administrative Index Compression! n Assignment 1? n Homework 2 out n What I did last summer lunch talks today David Kauchak cs458 Fall 2012 adapted from: http://www.stanford.edu/class/cs276/handouts/lecture5-indexcompression.ppt

More information

EECS 395/495 Lecture 3 Scalable Indexing, Searching, and Crawling

EECS 395/495 Lecture 3 Scalable Indexing, Searching, and Crawling EECS 395/495 Lecture 3 Scalable Indexing, Searching, and Crawling Doug Downey Based partially on slides by Christopher D. Manning, Prabhakar Raghavan, Hinrich Schütze Announcements Project progress report

More information

INFO 4300 / CS4300 Information Retrieval. slides adapted from Hinrich Schütze s, linked from

INFO 4300 / CS4300 Information Retrieval. slides adapted from Hinrich Schütze s, linked from INFO 4300 / CS4300 Information Retrieval slides adapted from Hinrich Schütze s, linked from http://informationretrieval.org/ IR 6: Index Compression Paul Ginsparg Cornell University, Ithaca, NY 15 Sep

More information

F INTRODUCTION TO WEB SEARCH AND MINING. Kenny Q. Zhu Dept. of Computer Science Shanghai Jiao Tong University

F INTRODUCTION TO WEB SEARCH AND MINING. Kenny Q. Zhu Dept. of Computer Science Shanghai Jiao Tong University F033583 INTRODUCTION TO WEB SEARCH AND MINING Kenny Q. Zhu Dept. of Computer Science Shanghai Jiao Tong University KENNY Q. ZHU Research Interests: Degrees: Postdoc: Experiences: Data & Knowledge Engineering

More information

Index construction CE-324: Modern Information Retrieval Sharif University of Technology

Index construction CE-324: Modern Information Retrieval Sharif University of Technology Index construction CE-324: Modern Information Retrieval Sharif University of Technology M. Soleymani Fall 2016 Most slides have been adapted from: Profs. Manning, Nayak & Raghavan (CS-276, Stanford) Ch.

More information

FRONT CODING. Front-coding: 8automat*a1 e2 ic3 ion. Extra length beyond automat. Encodes automat. Begins to resemble general string compression.

FRONT CODING. Front-coding: 8automat*a1 e2 ic3 ion. Extra length beyond automat. Encodes automat. Begins to resemble general string compression. Sec. 5.2 FRONT CODING Front-coding: Sorted words commonly have long common prefix store differences only (for last k-1 in a block of k) 8automata8automate9automatic10automation 8automat*a1 e2 ic3 ion Encodes

More information

Index construction CE-324: Modern Information Retrieval Sharif University of Technology

Index construction CE-324: Modern Information Retrieval Sharif University of Technology Index construction CE-324: Modern Information Retrieval Sharif University of Technology M. Soleymani Fall 2017 Most slides have been adapted from: Profs. Manning, Nayak & Raghavan (CS-276, Stanford) Ch.

More information

Efficient Implementation of Postings Lists

Efficient Implementation of Postings Lists Efficient Implementation of Postings Lists Inverted Indices Query Brutus AND Calpurnia J. Pei: Information Retrieval and Web Search -- Efficient Implementation of Postings Lists 2 Skip Pointers J. Pei:

More information

CS347. Lecture 2 April 9, Prabhakar Raghavan

CS347. Lecture 2 April 9, Prabhakar Raghavan CS347 Lecture 2 April 9, 2001 Prabhakar Raghavan Today s topics Inverted index storage Compressing dictionaries into memory Processing Boolean queries Optimizing term processing Skip list encoding Wild-card

More information

Index construction CE-324: Modern Information Retrieval Sharif University of Technology

Index construction CE-324: Modern Information Retrieval Sharif University of Technology Index construction CE-324: Modern Information Retrieval Sharif University of Technology M. Soleymani Fall 2014 Most slides have been adapted from: Profs. Manning, Nayak & Raghavan (CS-276, Stanford) Ch.

More information

CSCI 5417 Information Retrieval Systems Jim Martin!

CSCI 5417 Information Retrieval Systems Jim Martin! CSCI 5417 Information Retrieval Systems Jim Martin! Lecture 4 9/1/2011 Today Finish up spelling correction Realistic indexing Block merge Single-pass in memory Distributed indexing Next HW details 1 Query

More information

Today s topics CS347. Inverted index storage. Inverted index storage. Processing Boolean queries. Lecture 2 April 9, 2001 Prabhakar Raghavan

Today s topics CS347. Inverted index storage. Inverted index storage. Processing Boolean queries. Lecture 2 April 9, 2001 Prabhakar Raghavan Today s topics CS347 Lecture 2 April 9, 2001 Prabhakar Raghavan Inverted index storage Compressing dictionaries into memory Processing Boolean queries Optimizing term processing Skip list encoding Wild-card

More information

Corso di Biblioteche Digitali

Corso di Biblioteche Digitali Corso di Biblioteche Digitali Vittore Casarosa casarosa@isti.cnr.it tel. 050-315 3115 cell. 348-397 2168 Ricevimento dopo la lezione o per appuntamento Valutazione finale 70-75% esame orale 25-30% progetto

More information

Information Retrieval Tutorial 1: Boolean Retrieval

Information Retrieval Tutorial 1: Boolean Retrieval Information Retrieval Tutorial 1: Boolean Retrieval Professor: Michel Schellekens TA: Ang Gao University College Cork 2012-10-26 Boolean Retrieval 1 / 19 Outline 1 Review 2 Boolean Retrieval 2 / 19 Definition

More information

A Closeup View. Class Overview CSE 454. Relevance. Retrieval Model Overview. 10/19 IR & Indexing 10/21 Google & Alta.

A Closeup View. Class Overview CSE 454. Relevance. Retrieval Model Overview. 10/19 IR & Indexing 10/21 Google & Alta. Class Overview CSE 454 Infrmation Retrieval & ing Other Cool Stuff Query processing ing IR - Ranking Content Analysis Crawling Network Layer Standard Web Search Engine Architecture 10/19 IR & ing 10/21

More information

3-2. Index construction. Most slides were adapted from Stanford CS 276 course and University of Munich IR course.

3-2. Index construction. Most slides were adapted from Stanford CS 276 course and University of Munich IR course. 3-2. Index construction Most slides were adapted from Stanford CS 276 course and University of Munich IR course. 1 Ch. 4 Index construction How do we construct an index? What strategies can we use with

More information

Information Retrieval

Information Retrieval Information Retrieval Suan Lee - Information Retrieval - 04 Index Construction 1 04 Index Construction - Information Retrieval - 04 Index Construction 2 Plan Last lecture: Dictionary data structures Tolerant

More information

Informa)on Retrieval and Map- Reduce Implementa)ons. Mohammad Amir Sharif PhD Student Center for Advanced Computer Studies

Informa)on Retrieval and Map- Reduce Implementa)ons. Mohammad Amir Sharif PhD Student Center for Advanced Computer Studies Informa)on Retrieval and Map- Reduce Implementa)ons Mohammad Amir Sharif PhD Student Center for Advanced Computer Studies mas4108@louisiana.edu Map-Reduce: Why? Need to process 100TB datasets On 1 node:

More information

Index Construction 1

Index Construction 1 Index Construction 1 October, 2009 1 Vorlage: Folien von M. Schütze 1 von 43 Index Construction Hardware basics Many design decisions in information retrieval are based on hardware constraints. We begin

More information

More on indexing CE-324: Modern Information Retrieval Sharif University of Technology

More on indexing CE-324: Modern Information Retrieval Sharif University of Technology More on indexing CE-324: Modern Information Retrieval Sharif University of Technology M. Soleymani Fall 2014 Most slides have been adapted from: Profs. Manning, Nayak & Raghavan (CS-276, Stanford) Plan

More information