Information Technology for Documentary Data Representation

Size: px
Start display at page:

Download "Information Technology for Documentary Data Representation"

Transcription

1 ALMA MATER STUDIORUM - UNIVERSITÀ DI BOLOGNA Information Technology for Documentary Data Representation Laurea Magistrale in Scienze del Libro e del Documento University of Bologna Textual Information Retrieval Systems Part I Home page: Electronic version: 1.01.TextualInformationRetrieval-I.pdf I.pdf Electronic version: 1.01.TextualInformationRetrieval-I-2p.pdf Outline Information Retrieval (IR): an introduction Basics on structured and semi-structured data models Textual documents representation in IR systems Automatic indexing techniques Searches of Boolean type Basics on Boolean algebra and truth tables Searches of phrases and for proximity 2

2 Information Retrieval motivation (1) Information Retrieval (IR) deals with the representation, storage, organization, and access to information items The representation and organization of the information items should provide the user with easy access to the information in which she is interested Unfortunately, the characterization of the user information need is not a simple problem!! 3 Information Retrieval motivation (2) Example of user information need in the context of a Cultural Digital Library: Find all documents containing information on Renaissance painters that (1) worked for a Pope and (2) were born outside of Italy. To be relevant the documents must include information about the locations of the artist s most famous paintings and the number artist s painting located in Rome Clearly this full description of user need cannot be used directly to retrieve information using current technologies Instead, the user must translate her information need into a query which can be processed by an IR system Commonly the translation yields a set of keywords (or index terms) which summarize the description of the user information need 4

3 Information Retrieval goal The main task of an IR system is: Given a query, which represents the information needs of the user, and a collection of documents Retrieve the documents in the collection that are relevant to the query, returning them to the user in decreasing order of relevance Document collections are modeled as unstructured data, i.e., data without a schema (default internal organization) able to describe them or to assign a specific semantic 5 Relevant examples of IR applications Web search engines are the most visible IR application (e.g., Bing, Google, Yahoo, etc.) Many universities and public libraries use IR systems to provide access to book, journals, and other documents Among further relevant examples: Social networks applications like Twitter and Facebook; Web digital libraries such as Wikipedia, CiteSeer, Google Scholar, ; Multimedia digital libraries; The Europeana initiative, and the related European Digital Library for the access to cultural digitized objects like books, photos, maps, audio, movies, and archival records from Europe s libraries, archives, museum and audiovisual collections 6

4 Study path We focus on documents representation, their indexing techniques, and models of queries, starting from traditional textual documents and then continuing with the most complex multimedia documents managed by Multimedia Information Retrieval (MIR) systems Before entering into the details of how textual documents are represented by IR systems, we need to provide the minimal set of concepts on structured data and semi-structured data models 7 Let s keep in mind our goal! Facilitate and improve the access to documentary data repositories for general users, conjunctively exploiting: dedicated users manually provided metadata structured data low level features (e.g., document keywords) unstructured data semi-automatically provided annotations semi-structured data Archivio Storico Fiat Cineteca Archivio Artistico Trimotore Fiat G212 Data: 1947 Collezione: Tema di cultura industriale Tipologia: Immagine Aereo, Motore, Ali Das Cabinet des Dr. Caligari Data: 1920 Nazione: Germania Regista: Robert Wiene Genere: Horror Espressionismo, Ipnosi, Sonnambulismo La Gioconda Sito: Museo Louvre, Parigi Secolo: XVI Autore: Leonardo da Vinci Periodo: Rinascimento Data: 1503 Dipinto, Ritratto, Sorriso 8

5 Recall on structured data Structured data base on a predefined schema able to describe the content of the document collection A database (DB) can be seen as a collection of objects representing some information of interest in a structured way (i.e., through a schema) A relational database management systems (RDBMS or just DBMS) is a software system able to manage collections of objects which can be very large (Giga-Tera byte and more) and shared by different applications in a persistent way (even in presence of faults) manage = obtain, elaborate, maintain, produce, distribute Examples of DBMSs: Oracle, IBM (DB2 UDB), Microsoft (SQL Server), Sybase, mysql, PostgreSQL, InterBase 9 Relations as tables DBMSs use the relational model (Codd, 1970) to describe the data, that is the information is organized in tables ( relations ) The rows of table corresponds to records, while the columns correspond to attributes (schema) The language to store/retrieve information from such tables is the Structured Query Language (SQL) Example: if we want to create a table with employees records, so that we can store their employee number, name, age and salary, we can use the following SQL statement: create table EMPLOYEE ( empn integer PRIMARY KEY; name char(50); age integer; salary float ); empn name age salary 10

6 Populating and querying tables Tables can be populated with the SQL insert command, e.g.,: insert into EMPLOYEE values ( 123, Smith, John, 30, ); insert into EMPLOYEE values ( 456, Johnson, Tom, 25, ); empn name age salary We can retrieve information using the select command. E.g., if we want to find all the employees with salary less that 50000, we use the query: Select * From EMPLOYEE Where salary <= Smith, John Johnson, Tom Query execution In absence of access methods (e.g., an index), the DBMS will perform a sequential scanning, checking the salary of each and every employee record against the desired threshold of 50000!!! To accelerate queries execution, we can create an index (usually a B-tree index, as we will see in few minutes) with the command create index E.g., to build an index on the employee s salary, we would issue the SQL statement: create index salidx on EMPLOYEE(salary) In general the DBMS relies on an optimizer component to decide which is the more efficient way to execute a given query sequential vs. index-based evaluation which index is the most appropriate 12

7 Storage hierarchies First level is typically main memory or core or RAM Fast (access time of micro-seconds or faster), small, expensive Second level (secondary store) is typically magnetic disk Much slower (5-10 msec. access time), but much larger and cheaper Database researchers has focused on large databases that do not fit in main memory and thus have to be stored in secondary memory Secondary store is organized into block (= pages) The reason is that, accessing data from the disk involves the mechanical move of the read/write head of the disk above the appropriate track on the disk Because these moves ( seeks ) are slow and expensive, every time we do a disk read we bring into main memory a whole disk block (of the order of 1KB - 8 KB) So, it makes a huge difference of performance if we mange to group similar data in the same disk blocks!! 13 B-tree Access methods, like B-tree, try exactly to achieve good clustering of data in order to minimize the number of disk-reads - Balanced tree of order p - Node: <P1, <K1,Pr1>, P2, <K2, Pr2>,...Pq > q p 5 o 8 o 1 o 3 o 6 o 7 o 9 o 12 o o Pr Data pointer P Tree node pointer Null tree pointer 14

8 B + -tree B-tree variant more commonly used than B-tree - Data pointers only at the leaf nodes - All leaf nodes linked together allows ordered access! Internal node P 1 K 1... K i-1 P i K i... K q-1 P q X X X X K 1 K i < X K i K q-1 < X Leaf node K 1 Pr 1... K i Pr i... K q-1 Pr q-1 P next pointer to next leaf node in tree data pointer data pointer data pointer 15 What else The relational model and SQL provide a large number of additional features, such as: the ability to retrieve information from several tables ( joins ); the matching is based on values! the ability to perform aggregate operations (e.g., sums, averages, etc.) However we restrict the discussion to the above few features which are the essential ones for our purposes 16

9 Recall on semi-structured data Semi-structured data are partially described by means of hierarchical or graph-based models Among relevant models: XML, RDF, OWL, For a complete treatment on the subject, please refer to the course Humanities Computing 17 XML by example XML document example: <Article> <Author> <FirstName>Bob</FirstName> <Surname>Smith</Surname> </Author> <Abstract>This paper concerns... </Abstract> <Section n="1"> <Title>Introduction</Title> <Para>... </Section> </Article> Specific languages (e.g., XQuery, XPath) are used for querying 18

10 XML: from physical too logical representation There is a direct correspondence between the physical representation of an XML document a its logical representation (or document tree) <root> <child> <subchild> </child> <child> </child> </root> </subchild> child subchild root child 19 Back to Information Retrieval models IR deals with unstructured data repositories, i.e., data without a model/schema able to describe them or to assign a specific semantic By focusing on textual data, relevant examples of unstructured (and semi-structured) repositories are: Web (semantic Web); s, social networks, forums, twitter; book digital libraries; scientific document libraries (e.g., CiteSeer); repositories of business documents, patents, etc.; legal documents collections; 20

11 Why unstructured data are that important? On the basis of studies conducted in nineties, users preferred to receive information by other people rather than using an information retrieval system E.g., travel booking The trend has been reversed in the last 10 years thanks to the success of Web technologies and Web search engines E.g., already in 2004 the 92% of the population considered the Web a suitable source for the daily retrieve of useful information Let s keep in mind that: 85% of all stored data is held in unstructured formats 80% of business is conducted on unstructured data Unstructured data double every 3 months 21 Structured vs. unstructured data: in

12 Structured vs. unstructured data: in Textual document representation Textual documents are usually represented as bags (i.e., multi-sets) of representative keywords called index terms following the Bag of Words model Index terms are used to summarize the document content An index term can be: a keyword, chosen from a group of selected words (usually nouns) This approach is particularly useful to classify documents, although it requires a manual intervention any word, also known as full-text indexing Complex index terms may also be defined, such as groups of nouns (e.g., computer science) Alternatively, the composing terms are treated separately and the group is reconstructed by looking at the positions of the words in the text 24

13 Query representation Queries follow a similar approach i.e. a query is a set of words However, how query terms are combined is an issue 25 Boolean queries The simplest retrieval model is based on Boolean algebra: Which plays of Shakespeare contain the words Brutus AND Caesar AND NOT Calpurnia? Antony and Cleopatra Julius Caesar The Tempest Hamlet Othello Macbeth Antony Brutus Caesar 0 1 Calpurnia Cleopatra mercy 1 0 worser if play contains term, 0 otherwise 26

14 Recall on truth tables A truth table is a mathematical table used in logic to compute the functional values of logical expressions on each of their functional arguments Truth tables can be used to tell whether a propositional expression is true for all legitimate input values, that is, logically valid Among the principle operators: NOT, AND, and OR I. Bartolini Information Technology for Documentary Data Representation 27 Computing the results For each term we have a binary vector, with size N = number of documents in the collection Bit-wise Boolean operations are enough to compute the result: Brutus = (110100), Caesar = (110111), Calpurnia = (010000) (110100) AND (110111) AND NOT (010000) = Antony and Cleopatra Julius Caesar The Tempest Hamlet Othello Macbeth Antony Brutus Caesar 0 1 Calpurnia Cleopatra mercy 1 0 worser Result =

15 Is the matrix solution a good idea? Assume we have a collection of N = 1M documents Also assume that the overall number of distinct terms is V = 100K, with each document containing, on the average, 1000 distinct terms The matrix consists of 100K x 1M = = 100G boolean values, with only 1% (1G) of 1 s Space overhead suggests to look for a more effective representation Further, consider taking bit-wise AND and OR over vectors of 1M bits The commonest solution adopted in text retrieval system is a structure known as inverted index (also: inverted file ) There are many variants of the inverted index, aiming to: Support different query types Reducing space overhead 29 Building the inverted index (1) doc 1 1) Documents are parsed to extract terms I did enact Julius Caesar I was killed i' the Capitol; Brutus killed me. doc 2 So let it be with Caesar. The noble Brutus hath told you Caesar was ambitious I. Bartolini Term Doc # I 1 did 1 enact 1 julius 1 caesar 1 I 1 was 1 killed 1 i' 1 the 1 capitol 1 brutus 1 killed 1 me 1 so 2 let 2 it 2 be 2 with 2 caesar 2 the 2 noble 2 brutus 2 hath 2 told 2 you 2 caesar 2 was 2 ambitious 2 2) Terms are sorted Term Doc # ambitious 2 be 2 brutus 1 brutus 2 capitol 1 caesar 1 caesar 2 caesar 2 did 1 enact 1 hath 1 I 1 I 1 i' 1 it 2 julius 1 killed 1 killed 1 let 2 me 1 noble 2 so 2 the 1 the 2 told 2 you 2 was 1 was 2 with 2 30

16 Building the inverted index (2) 3) Multiple occurrences of a term 4) The index is then split into a in the same document are dictionary/vocabulary and a merged and frequency posting file Doc # Freq information is added Term Doc # Freq ambitious be brutus brutus capitol caesar caesar 2 2 did enact hath I 1 2 i' it julius killed 1 2 let me noble so the the told you was was with Term N docs Tot Freq ambitious be brutus 2 2 capitol caesar 2 3 did enact hath I 1 2 i' it julius killed 1 2 let me noble so the 2 2 told you was 2 2 with Inverted index size Consider the size of the Dictionary: with 100K terms, even assuming that a vocabulary entry requires 30 bytes on the average, we need just 3MBytes Posting file: if each of the 1M documents contains about 1000 distinct terms, we have 1G entries in the posting file, each of them referenced by a distinct pointer A more effective space utilization is obtained by means of posting lists: For each distinct term, have just one pointer to a list in the posting file This posting list contains the id s of documents for that term and is ordered by increasing values of documents identifiers Continuing with the example, this way we save 1G 100K pointers! Techniques are also available to compress the info within each list Term N docs Tot Freq caesar 2 3 Doc # Freq

17 Using the inverted index with Boolean q. s ANDing two terms is equivalent to intersect their posting lists ORring two terms is equivalent to union their posting lists t1 AND NOT(t2) is equivalent to look for doc id s that are in the posting list of term t1 but not in that of t2 Term N docs Tot Freq computer 5 23 principles 1 3 science 3 20 Doc # Freq q = computer AND science AND principle 5 It is convenient to start processing the shortest lists first, so as to minimize the size of intermediate results We have the Ndocs info in the dictionary! 5 33 What to index? Most common words, like the, a, etc., takes a lot of space since they tend to be present in all the documents At the same time, they provide little or no information at all However, what about searching for to be or not to be? Such words are frequently referred as stopwords A (language-specific) stopword list can be used to filter out those words that are not to be indexed The rule of 30 : ~30 words account for ~30% of all term occurrences in written text Eliminating 150 commonest terms from indexing will cut almost 25% of space Remark: in practice, things are more complex, since we may want to deal with: Punctuation: State-of-the-art, U.S.A. vs. USA, a.out, etc. Numbers: 3/12/9, Mar. 12, 1991, B-52, , etc. 34

18 Stemming In order to save space and to improve the chance of retrieving a document, a process called stemming is usually executed before indexing, so as to reduce terms to their roots e.g., automate(s), automatic, automation all reduced to automat for example compressed and compression are both accepted as equivalent to compress. for exampl compres and compres are both accept as equival to compres. It is experimentally shown that stemming can reduce the number of terms by ~40%, and total index size by ~30% For details on how stemmers (= stemming algorithms) operate: 35 Thesauri Synonyms can be viewed as equivalent terms E.g., car = automobile A text IR system usually comes with a thesaurus that, in its simplest form, consists of: 1. A list of (important) terms 2. For each term, a set of related words Related term = synonyms, hypernyms (car is a kind of), hyponyms ( is a kind of car), etc. Actually, a thesaurus constitutes a semantic network of terms For real examples, please take a look at: Wordnet ( Merriam-Webster thesaurus ( 36

19 The WordNet interface 37 Using thesaurus information If your query includes the term car, there are two possibilities to exploit thesaurus information: 1. The system can expand the query E.g., car AND tyres becomes (car OR automobile) AND tyres 2. The system can build the inverted index by also placing docs containing the term car in the posting list of automobile, and vice versa Usually query expansion is preferred, in order to avoid excessive index growth However, query expansion slows down query processing 38

20 Phrase and proximity queries Searching for phrases (e.g., the challenge of information retrieval ) can be implemented by extending the entries in the posting file with positional information (= position of the term in the document) Term N docs Tot Freq computer 5 23 principles 1 3 science 3 20 q = computer science Doc # Freq 3 2: 13, : 20, 27, 85, 112, : 10 3: 13 2: 5 3: 21, 35, 45 0: 5 2: 28, : 35, 51, Proximity queries are a relaxed version of phrase queries, where we just require that the query terms are close each other E.g., Gates NEAR Microsoft 39 Limits of the Boolean retrieval model Although the Boolean model has a clear semantics and is also appreciated by experienced users, it has several drawbacks: 1. Unexperienced users have difficulties in understanding what Boolean operators really mean 2. No notion of partial matching 3. No ranking of the documents 4. Near-miss and Information overload problems Several extensions of the basic Boolean model have been proposed, in order to solve above problems We skip them, and directly move to consider the vector space model 40

Multimedia Data Management M

Multimedia Data Management M ALMA MATER STUDIORUM - UNIVERSITÀ DI BOLOGNA Multimedia Data Management M Second cycle degree programme (LM) in Computer Engineering University of Bologna Multimedia Data and Data Types Classification

More information

Multimedia Data Management M

Multimedia Data Management M ALMA MATER STUDIORUM - UNIVERSITÀ DI BOLOGNA Multimedia Data Management M Second cycle degree programme (LM) in Computer Engineering University of Bologna Multimedia Data and Data Types Classification

More information

Data Modelling and Multimedia Databases M

Data Modelling and Multimedia Databases M ALMA MATER STUDIORUM - UNIVERSITÀ DI BOLOGNA Data Modelling and Multimedia Databases M International Second cycle degree programme (LM) in Digital Humanities and Digital Knowledge (DHDK) University of

More information

Data Modelling and Multimedia Databases M

Data Modelling and Multimedia Databases M ALMA MATER STUDIORUM - UNIVERSITÀ DI BOLOGNA Data Modelling and Multimedia Databases M International Second cycle degree programme (LM) in Digital Humanities and Digital Knowledge (DHDK) University of

More information

Information Technology for Documentary Data Representation

Information Technology for Documentary Data Representation ALMA MATER STUDIORUM - UNIVERSITÀ DI BOLOGNA Information Technology for Documentary Data Representation Laurea Magistrale in Scienze del Libro e del Documento University of Bologna Course presentation

More information

Data Modelling and Multimedia Databases M

Data Modelling and Multimedia Databases M ALMA MATER STUDIORUM - UNIVERSITÀ DI BOLOGNA Data Modelling and Multimedia Databases M International Second cycle degree programme (LM) in Digital Humanities and Digital Knowledge (DHDK) University of

More information

Multimedia Data Management M

Multimedia Data Management M ALMA MATER STUDIORUM - UNIVERSITÀ DI BOLOGNA Multimedia Data Management M Second cycle degree programme (LM) in Computer Engineering University of Bologna Course presentation Academic Year 2016/2017 Home

More information

Multimedia Data Management M

Multimedia Data Management M ALMA MATER STUDIORUM - UNIVERSITÀ DI BOLOGNA Multimedia Data Management M Second cycle degree programme (LM) in Computer Engineering University of Bologna Course presentation Academic Year 2016/2017 Home

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

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

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

Module II: Multimedia Data Mining

Module II: Multimedia Data Mining ALMA MATER STUDIORUM - UNIVERSITÀ DI BOLOGNA Module II: Multimedia Data Mining Laurea Magistrale in Ingegneria Informatica University of Bologna Semantic Multimedia Data Annotation Home page: http://www-db.disi.unibo.it/courses/dm/

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

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

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

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

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

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

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 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

Data Modelling and Multimedia Databases M

Data Modelling and Multimedia Databases M ALMA MATER STUDIORUM - UNIERSITÀ DI BOLOGNA Data Modelling and Multimedia Databases M International Second cycle degree programme (LM) in Digital Humanities and Digital Knoledge (DHDK) University of Bologna

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 2015 Most slides have been adapted from: Profs. Manning, Nayak & Raghavan lectures

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

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

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

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

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

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

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

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

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

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

Information Retrieval CS Lecture 01. Razvan C. Bunescu School of Electrical Engineering and Computer Science Information Retrieval CS 6900 Razvan C. Bunescu School of Electrical Engineering and Computer Science bunescu@ohio.edu Information Retrieval Information Retrieval (IR) is finding material of an unstructured

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

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

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

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

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

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 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

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

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

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

Information Retrieval and Web Search

Information Retrieval and Web Search Information Retrieval and Web Search Introduction to IR models and methods Rada Mihalcea (Some of the slides in this slide set come from IR courses taught at UT Austin and Stanford) Information Retrieval

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

Information Retrieval. Information Retrieval and Web Search

Information Retrieval. Information Retrieval and Web Search Information Retrieval and Web Search Introduction to IR models and methods Information Retrieval The indexing and retrieval of textual documents. Searching for pages on the World Wide Web is the most recent

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

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

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

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

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

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

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

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

Ges$one Avanzata dell Informazione Part A Full- Text Informa$on Management. Full- Text Indexing Ges$one Avanzata dell Informazione Part A Full- Text Informa$on Management Full- Text Indexing Contents } Introduction } Inverted Indices } Construction } Searching 2 GAvI - Full- Text Informa$on Management:

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 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

index construct Overview Overview Recap How to construct index? Introduction Index construction Introduction to Recap

index construct Overview Overview Recap How to construct index? Introduction Index construction Introduction to Recap to to Information Retrieval Index Construct Ruixuan Li Huazhong University of Science and Technology http://idc.hust.edu.cn/~rxli/ October, 2012 1 2 How to construct index? Computerese term document docid

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

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

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

Outline of the course

Outline of the course Outline of the course Introduction to Digital Libraries (15%) Description of Information (30%) Access to Information (30%) User Services (10%) Additional topics (15%) Buliding of a (small) digital library

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

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

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

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

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

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

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

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

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1 Basic Concepts :- 1. What is Data? Data is a collection of facts from which conclusion may be drawn. In computer science, data is anything in a form suitable for use with a computer. Data is often distinguished

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

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

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

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

Introduction to Information Retrieval

Introduction to Information Retrieval Introduction to Information Retrieval CS276: Information Retrieval and Web Search Pandu Nayak and Prabhakar Raghavan Hamid Rastegari Lecture 4: Index Construction Plan Last lecture: Dictionary data structures

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

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

Introduction to. CS276: Information Retrieval and Web Search Christopher Manning and Prabhakar Raghavan. Lecture 4: Index Construction

Introduction to. CS276: Information Retrieval and Web Search Christopher Manning and Prabhakar Raghavan. Lecture 4: Index Construction Introduction to Information Retrieval CS276: Information Retrieval and Web Search Christopher Manning and Prabhakar Raghavan Lecture 4: Index Construction 1 Plan Last lecture: Dictionary data structures

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

INDEX CONSTRUCTION 1

INDEX CONSTRUCTION 1 1 INDEX CONSTRUCTION PLAN Last lecture: Dictionary data structures Tolerant retrieval Wildcards Spell correction Soundex a-hu hy-m n-z $m mace madden This time: mo among amortize Index construction on

More information

Information Retrieval

Information Retrieval Introduction to CS3245 Lecture 5: Index Construction 5 Last Time Dictionary data structures Tolerant retrieval Wildcards Spelling correction Soundex a-hu hy-m n-z $m mace madden mo among amortize on abandon

More information

Elementary IR: Scalable Boolean Text Search. (Compare with R & G )

Elementary IR: Scalable Boolean Text Search. (Compare with R & G ) Elementary IR: Scalable Boolean Text Search (Compare with R & G 27.1-3) Information Retrieval: History A research field traditionally separate from Databases Hans P. Luhn, IBM, 1959: Keyword in Context

More information

Information Retrieval. Chap 7. Text Operations

Information Retrieval. Chap 7. Text Operations Information Retrieval Chap 7. Text Operations The Retrieval Process user need User Interface 4, 10 Text Text logical view Text Operations logical view 6, 7 user feedback Query Operations query Indexing

More information

UNICAL, 21/10/2004. Tutorial goals

UNICAL, 21/10/2004. Tutorial goals Workshop Data Warehousing and Data Mining TEXTEXT MINING INING An Overview of Concepts, Techniques and Applications Ing. Andrea Tagarelli Tutorial goals Introduce you to major aspects of the Knowledge

More information

TERM BASED WEIGHT MEASURE FOR INFORMATION FILTERING IN SEARCH ENGINES

TERM BASED WEIGHT MEASURE FOR INFORMATION FILTERING IN SEARCH ENGINES TERM BASED WEIGHT MEASURE FOR INFORMATION FILTERING IN SEARCH ENGINES Mu. Annalakshmi Research Scholar, Department of Computer Science, Alagappa University, Karaikudi. annalakshmi_mu@yahoo.co.in Dr. A.

More information

Chapter 13 XML: Extensible Markup Language

Chapter 13 XML: Extensible Markup Language Chapter 13 XML: Extensible Markup Language - Internet applications provide Web interfaces to databases (data sources) - Three-tier architecture Client V Application Programs Webserver V Database Server

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

Information Retrieval

Information Retrieval Introduction to CS3245 Lecture 5: Index Construction 5 CS3245 Last Time Dictionary data structures Tolerant retrieval Wildcards Spelling correction Soundex a-hu hy-m n-z $m mace madden mo among amortize

More information

Index Construction. Slides by Manning, Raghavan, Schutze

Index Construction. Slides by Manning, Raghavan, Schutze Introduction to Information Retrieval ΕΠΛ660 Ανάκτηση Πληροφοριών και Μηχανές Αναζήτησης ης Index Construction ti Introduction to Information Retrieval Plan Last lecture: Dictionary data structures Tolerant

More information

Chapter 27 Introduction to Information Retrieval and Web Search

Chapter 27 Introduction to Information Retrieval and Web Search Chapter 27 Introduction to Information Retrieval and Web Search Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 27 Outline Information Retrieval (IR) Concepts Retrieval

More information

CMSC424: Database Design. Instructor: Amol Deshpande

CMSC424: Database Design. Instructor: Amol Deshpande CMSC424: Database Design Instructor: Amol Deshpande amol@cs.umd.edu Databases Data Models Conceptual representa1on of the data Data Retrieval How to ask ques1ons of the database How to answer those ques1ons

More information

Information Technology for Documentary Data Representation

Information Technology for Documentary Data Representation ALMA MATER STUDIORUM - UNIVERSITÀ DI BOLOGNA Information Technology for Documentary Data Representation Laurea Magistrale in Scienze del Libro e del Documento University of Bologna Multimedia Information

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

Introduction to IR Systems: Supporting Boolean Text Search

Introduction to IR Systems: Supporting Boolean Text Search Introduction to IR Systems: Supporting Boolean Text Search Ramakrishnan & Gehrke: Chapter 27, Sections 27.1 27.2 CPSC 404 Laks V.S. Lakshmanan 1 Information Retrieval A research field traditionally separate

More information

modern database systems lecture 4 : information retrieval

modern database systems lecture 4 : information retrieval modern database systems lecture 4 : information retrieval Aristides Gionis Michael Mathioudakis spring 2016 in perspective structured data relational data RDBMS MySQL semi-structured data data-graph representation

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

CS 6320 Natural Language Processing

CS 6320 Natural Language Processing CS 6320 Natural Language Processing Information Retrieval Yang Liu Slides modified from Ray Mooney s (http://www.cs.utexas.edu/users/mooney/ir-course/slides/) 1 Introduction of IR System components, basic

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