SlideShare a Scribd company logo
1 of 29
Ms. T. Primya
Assistant Professor
Department of Computer Science and Engineering
Dr. N. G. P. Institute of Technology
Coimbatore
 A retrieval model can be a description of either the
computational process or the human process of
retrieval
 the process of choosing documents for retrieval
 the process by which information needs are first
articulated and then refined.
 Boolean Models
 Vector Space Models
 Probabilistic Models
 Models based on Belief nets
 Models based on Language Models
 A document is represented as a set of keywords.
 Index terms are considered to be either present or absent in a
document and to provide equal evidence with respect to information
needs.
 Queries are Boolean expressions of keywords, connected by AND,
OR, and NOT, including the use of brackets to indicate scope.
[[Rio & Brazil] | [Hilo & Hawaii]] & hotel & !Hilton]
 Output: Document is relevant or not. No partial matches or ranking.
 User need: I’m interested in learning about vitamins
other than vitamin e that are anti-oxidants.
 User’s Boolean query: antioxidant AND vitamin
AND NOT vitamin e
 For each retrieval model, there explicit three
components:
 Document representation d
 Query q
 Ranking function R(d, q)
 An IR strategy is a technique by which a relevance
measure is obtained between a query and a document.
 Retrieve documents that make the query true.
 Boolean-Documents either match or don’t.
 Good for expert users with precise understanding of
their needs and of the collection.
 Also good for applications: Applications can easily
consume 1000s of results.
 Not good for the majority of users
 This is particularly true of web search.
 Boolean queries often have either too few or too many results.
Query 1
standard AND user AND dlink AND 650
→ 200,000 hits Feast!
Query 2
standard AND user AND dlink AND 650 AND no AND card AND found
→ 0 hits Famine!
 In Boolean retrieval, it takes a lot of skill to come up with a query that
produces a manageable number of hits.
 In ranked retrieval, “feast or famine” is less of a problem.
 Condition: Results that are more relevant are ranked higher than results that
are less relevant. (i.e., the ranking algorithm works.)
 A commonly used measure of overlap of two sets
 Let A and B be two sets
 Jaccard coefficient:
jaccard(A,B) = |A∩B| |A∪B|
 jaccard(A,A) = 1
 jaccard(A,B) = 0 if A∩B = 0
 A and B don’t have to be the same size. Always
assigns a number between 0 and 1.
What is the query-document match score that the Jaccard
coefficient computes for:
 Query
“ides of March”
 Document
“Caesar died in March”
jaccard(q,d) = 1/6
 It doesn’t consider term frequency (how many
occurrences a term has).
 Rare terms are more informative than frequent terms.
 Jaccard does not consider this information.
Advantages
 Can use very restrictive search
 Makes experienced users happy
 Clear formalism
 Simplicity
 It is still used in small scale searches like searching e-
mails, files from local hard drives
Disadvantages
 Simple queries do not work well.
 Complex query language, confusing to end users
 Difficult to control the number of documents
retrieved.
◦ All matched documents will be returned.
 Difficult to rank output.
◦ All matched documents logically satisfy the query.
 Difficult to perform relevance feedback.
◦ If a document is identified by the user as relevant or
irrelevant, how should the query be modified?
 Vector space model or term vector model is an
algebraic model for representing text documents (and
any objects, in general) as vectors of identifiers, such
as, for example, index terms.
 It is used in information filtering, information
retrieval, indexing and relevancy rankings.
The basis vectors correspond to the dimensions or
directions of the vector space
A vector is a point in a vector space and has length
(from the origin to the point) and direction
 A 2-dimensional vector can be written as [x, y]
 A 3-dimensional vector can be written as [x, y, z]
 Let V denote the size of the indexed vocabulary
 Any arbitrary span of text (i.e., a document, or a
query) can be represented as a vector in V-
dimensional space
 let’s assume three index terms: dog, bite, man (i.e.,
V=3)
1 = the term appears at least once
0 = the term does not appear
A query is a vector in V-dimensional space, where
V is the number of terms in the vocabulary
 The vector space model ranks documents based on
the vector-space similarity between the query vector
and the document vector
 There are many ways to compute the similarity
between two vectors
 One way is to compute the inner product
Multiply corresponding components and then sum
of those products
Pros and Cons
 The inner-product doesn’t account for the fact that
documents have widely varying lengths
 All things being equal, longer documents are more
likely to have the query-terms
 So, the inner-product favours long documents
 Document represented as a vector:
d =< d1; d2; …. dn >
 Query represented as a vector: q =< q1; q2;…. qn >
 Ranking function (retrieval status value):
 The cosine similarity between two vectors (or two
documents on the Vector Space) is a measure that
calculates the cosine of the angle between them.
 the cosine similarity equation is to solve the equation
of the dot product for the :
 The numerator is the inner product
 The denominator is the product of the two vector-
lengths
 Ranges from 0 to 1 (equals 1 if the vectors are
identical)
 a =[1, 2, 3]
 b =[4,-5,6]
a with b is dpab = 1*4 + 2*-5 + 3*6 = 12
a with itself is dpaa = 1*1 + 2*2 + 3*3 = 14
b with itself is dpbb = 4*4 + -5*-5 + 6*6 = 77
la = (dpaa) ½ = (14) ½ = 3.74; i.e., the length of a.
lb = (dpbb) ½ = (77)½ = 8.77; i.e., the length of b.
la*lb = (dpaa) ½ * (dpbb) ½ = 32.83;
i.e., the length product (lpab) of a and b.
dot product/length product ratio is
 The vector space model procedure can be divided
into three stages.
 The first stage is the document indexing where
content bearing terms are extracted from the
document text.
 The second stage is the weighting of the indexed
terms to enhance retrieval of document relevant to the
user.
 The last stage ranks the document with respect to the
query according to a similarity measure.

More Related Content

What's hot

Probabilistic retrieval model
Probabilistic retrieval modelProbabilistic retrieval model
Probabilistic retrieval model
baradhimarch81
 
Information retrieval s
Information retrieval sInformation retrieval s
Information retrieval s
silambu111
 
Ppt evaluation of information retrieval system
Ppt evaluation of information retrieval systemPpt evaluation of information retrieval system
Ppt evaluation of information retrieval system
silambu111
 
Tdm information retrieval
Tdm information retrievalTdm information retrieval
Tdm information retrieval
KU Leuven
 
Functions of information retrival system(1)
Functions of information retrival system(1)Functions of information retrival system(1)
Functions of information retrival system(1)
silambu111
 
Boolean Retrieval
Boolean RetrievalBoolean Retrieval
Boolean Retrieval
mghgk
 

What's hot (20)

Term weighting
Term weightingTerm weighting
Term weighting
 
Probabilistic retrieval model
Probabilistic retrieval modelProbabilistic retrieval model
Probabilistic retrieval model
 
Information retrieval s
Information retrieval sInformation retrieval s
Information retrieval s
 
CS8080 INFORMATION RETRIEVAL TECHNIQUES - IRT - UNIT - I PPT IN PDF
CS8080 INFORMATION RETRIEVAL TECHNIQUES - IRT - UNIT - I  PPT  IN PDFCS8080 INFORMATION RETRIEVAL TECHNIQUES - IRT - UNIT - I  PPT  IN PDF
CS8080 INFORMATION RETRIEVAL TECHNIQUES - IRT - UNIT - I PPT IN PDF
 
The vector space model
The vector space modelThe vector space model
The vector space model
 
The impact of web on ir
The impact of web on irThe impact of web on ir
The impact of web on ir
 
Ppt evaluation of information retrieval system
Ppt evaluation of information retrieval systemPpt evaluation of information retrieval system
Ppt evaluation of information retrieval system
 
Web search vs ir
Web search vs irWeb search vs ir
Web search vs ir
 
Vector space model in information retrieval
Vector space model in information retrievalVector space model in information retrieval
Vector space model in information retrieval
 
Inverted index
Inverted indexInverted index
Inverted index
 
Lec1,2
Lec1,2Lec1,2
Lec1,2
 
Information retrieval system
Information retrieval systemInformation retrieval system
Information retrieval system
 
Tdm information retrieval
Tdm information retrievalTdm information retrieval
Tdm information retrieval
 
Functions of information retrival system(1)
Functions of information retrival system(1)Functions of information retrival system(1)
Functions of information retrival system(1)
 
Information retrieval (introduction)
Information  retrieval (introduction) Information  retrieval (introduction)
Information retrieval (introduction)
 
Boolean Retrieval
Boolean RetrievalBoolean Retrieval
Boolean Retrieval
 
Information retrieval 13 alternative set theoretic models
Information retrieval 13 alternative set theoretic modelsInformation retrieval 13 alternative set theoretic models
Information retrieval 13 alternative set theoretic models
 
Signature files
Signature filesSignature files
Signature files
 
Text MIning
Text MIningText MIning
Text MIning
 
Parallel and Distributed Information Retrieval System
Parallel and Distributed Information Retrieval SystemParallel and Distributed Information Retrieval System
Parallel and Distributed Information Retrieval System
 

Similar to Boolean,vector space retrieval Models

Search Engines
Search EnginesSearch Engines
Search Engines
butest
 
Search Engines
Search EnginesSearch Engines
Search Engines
butest
 
Speech recognition using vector quantization through modified k means lbg alg...
Speech recognition using vector quantization through modified k means lbg alg...Speech recognition using vector quantization through modified k means lbg alg...
Speech recognition using vector quantization through modified k means lbg alg...
Alexander Decker
 

Similar to Boolean,vector space retrieval Models (20)

Probabilistic Retrieval Models - Sean Golliher Lecture 8 MSU CSCI 494
Probabilistic Retrieval Models - Sean Golliher Lecture 8 MSU CSCI 494Probabilistic Retrieval Models - Sean Golliher Lecture 8 MSU CSCI 494
Probabilistic Retrieval Models - Sean Golliher Lecture 8 MSU CSCI 494
 
4-IR Models_new.ppt
4-IR Models_new.ppt4-IR Models_new.ppt
4-IR Models_new.ppt
 
4-IR Models_new.ppt
4-IR Models_new.ppt4-IR Models_new.ppt
4-IR Models_new.ppt
 
Ir models
Ir modelsIr models
Ir models
 
Data Mining Theory and Python Project.pptx
Data Mining Theory and Python Project.pptxData Mining Theory and Python Project.pptx
Data Mining Theory and Python Project.pptx
 
Search Engines
Search EnginesSearch Engines
Search Engines
 
Lec 4,5
Lec 4,5Lec 4,5
Lec 4,5
 
IRT Unit_ 2.pptx
IRT Unit_ 2.pptxIRT Unit_ 2.pptx
IRT Unit_ 2.pptx
 
Document ranking using qprp with concept of multi dimensional subspace
Document ranking using qprp with concept of multi dimensional subspaceDocument ranking using qprp with concept of multi dimensional subspace
Document ranking using qprp with concept of multi dimensional subspace
 
Chapter 4 IR Models.pdf
Chapter 4 IR Models.pdfChapter 4 IR Models.pdf
Chapter 4 IR Models.pdf
 
Multimodal Searching and Semantic Spaces: ...or how to find images of Dalmati...
Multimodal Searching and Semantic Spaces: ...or how to find images of Dalmati...Multimodal Searching and Semantic Spaces: ...or how to find images of Dalmati...
Multimodal Searching and Semantic Spaces: ...or how to find images of Dalmati...
 
Ir 08
Ir   08Ir   08
Ir 08
 
Search Engines
Search EnginesSearch Engines
Search Engines
 
Speech recognition using vector quantization through modified k means lbg alg...
Speech recognition using vector quantization through modified k means lbg alg...Speech recognition using vector quantization through modified k means lbg alg...
Speech recognition using vector quantization through modified k means lbg alg...
 
Textmining Retrieval And Clustering
Textmining Retrieval And ClusteringTextmining Retrieval And Clustering
Textmining Retrieval And Clustering
 
Textmining Retrieval And Clustering
Textmining Retrieval And ClusteringTextmining Retrieval And Clustering
Textmining Retrieval And Clustering
 
Textmining Retrieval And Clustering
Textmining Retrieval And ClusteringTextmining Retrieval And Clustering
Textmining Retrieval And Clustering
 
A Visual Exploration of Distance, Documents, and Distributions
A Visual Exploration of Distance, Documents, and DistributionsA Visual Exploration of Distance, Documents, and Distributions
A Visual Exploration of Distance, Documents, and Distributions
 
Words in Space - Rebecca Bilbro
Words in Space - Rebecca BilbroWords in Space - Rebecca Bilbro
Words in Space - Rebecca Bilbro
 
UNIT 3 IRT.docx
UNIT 3 IRT.docxUNIT 3 IRT.docx
UNIT 3 IRT.docx
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 

Boolean,vector space retrieval Models

  • 1. Ms. T. Primya Assistant Professor Department of Computer Science and Engineering Dr. N. G. P. Institute of Technology Coimbatore
  • 2.  A retrieval model can be a description of either the computational process or the human process of retrieval  the process of choosing documents for retrieval  the process by which information needs are first articulated and then refined.
  • 3.  Boolean Models  Vector Space Models  Probabilistic Models  Models based on Belief nets  Models based on Language Models
  • 4.  A document is represented as a set of keywords.  Index terms are considered to be either present or absent in a document and to provide equal evidence with respect to information needs.  Queries are Boolean expressions of keywords, connected by AND, OR, and NOT, including the use of brackets to indicate scope. [[Rio & Brazil] | [Hilo & Hawaii]] & hotel & !Hilton]  Output: Document is relevant or not. No partial matches or ranking.
  • 5.  User need: I’m interested in learning about vitamins other than vitamin e that are anti-oxidants.  User’s Boolean query: antioxidant AND vitamin AND NOT vitamin e
  • 6.  For each retrieval model, there explicit three components:  Document representation d  Query q  Ranking function R(d, q)
  • 7.  An IR strategy is a technique by which a relevance measure is obtained between a query and a document.  Retrieve documents that make the query true.
  • 8.  Boolean-Documents either match or don’t.  Good for expert users with precise understanding of their needs and of the collection.  Also good for applications: Applications can easily consume 1000s of results.  Not good for the majority of users  This is particularly true of web search.
  • 9.  Boolean queries often have either too few or too many results. Query 1 standard AND user AND dlink AND 650 → 200,000 hits Feast! Query 2 standard AND user AND dlink AND 650 AND no AND card AND found → 0 hits Famine!  In Boolean retrieval, it takes a lot of skill to come up with a query that produces a manageable number of hits.  In ranked retrieval, “feast or famine” is less of a problem.  Condition: Results that are more relevant are ranked higher than results that are less relevant. (i.e., the ranking algorithm works.)
  • 10.  A commonly used measure of overlap of two sets  Let A and B be two sets  Jaccard coefficient: jaccard(A,B) = |A∩B| |A∪B|  jaccard(A,A) = 1  jaccard(A,B) = 0 if A∩B = 0  A and B don’t have to be the same size. Always assigns a number between 0 and 1.
  • 11. What is the query-document match score that the Jaccard coefficient computes for:  Query “ides of March”  Document “Caesar died in March” jaccard(q,d) = 1/6
  • 12.  It doesn’t consider term frequency (how many occurrences a term has).  Rare terms are more informative than frequent terms.  Jaccard does not consider this information.
  • 13. Advantages  Can use very restrictive search  Makes experienced users happy  Clear formalism  Simplicity  It is still used in small scale searches like searching e- mails, files from local hard drives
  • 14. Disadvantages  Simple queries do not work well.  Complex query language, confusing to end users  Difficult to control the number of documents retrieved. ◦ All matched documents will be returned.  Difficult to rank output. ◦ All matched documents logically satisfy the query.  Difficult to perform relevance feedback. ◦ If a document is identified by the user as relevant or irrelevant, how should the query be modified?
  • 15.  Vector space model or term vector model is an algebraic model for representing text documents (and any objects, in general) as vectors of identifiers, such as, for example, index terms.  It is used in information filtering, information retrieval, indexing and relevancy rankings.
  • 16. The basis vectors correspond to the dimensions or directions of the vector space
  • 17. A vector is a point in a vector space and has length (from the origin to the point) and direction
  • 18.  A 2-dimensional vector can be written as [x, y]  A 3-dimensional vector can be written as [x, y, z]
  • 19.  Let V denote the size of the indexed vocabulary  Any arbitrary span of text (i.e., a document, or a query) can be represented as a vector in V- dimensional space  let’s assume three index terms: dog, bite, man (i.e., V=3)
  • 20. 1 = the term appears at least once 0 = the term does not appear
  • 21. A query is a vector in V-dimensional space, where V is the number of terms in the vocabulary
  • 22.  The vector space model ranks documents based on the vector-space similarity between the query vector and the document vector  There are many ways to compute the similarity between two vectors  One way is to compute the inner product
  • 23. Multiply corresponding components and then sum of those products
  • 24. Pros and Cons  The inner-product doesn’t account for the fact that documents have widely varying lengths  All things being equal, longer documents are more likely to have the query-terms  So, the inner-product favours long documents
  • 25.  Document represented as a vector: d =< d1; d2; …. dn >  Query represented as a vector: q =< q1; q2;…. qn >  Ranking function (retrieval status value):
  • 26.  The cosine similarity between two vectors (or two documents on the Vector Space) is a measure that calculates the cosine of the angle between them.  the cosine similarity equation is to solve the equation of the dot product for the :  The numerator is the inner product  The denominator is the product of the two vector- lengths  Ranges from 0 to 1 (equals 1 if the vectors are identical)
  • 27.  a =[1, 2, 3]  b =[4,-5,6] a with b is dpab = 1*4 + 2*-5 + 3*6 = 12 a with itself is dpaa = 1*1 + 2*2 + 3*3 = 14 b with itself is dpbb = 4*4 + -5*-5 + 6*6 = 77 la = (dpaa) ½ = (14) ½ = 3.74; i.e., the length of a. lb = (dpbb) ½ = (77)½ = 8.77; i.e., the length of b. la*lb = (dpaa) ½ * (dpbb) ½ = 32.83; i.e., the length product (lpab) of a and b.
  • 29.  The vector space model procedure can be divided into three stages.  The first stage is the document indexing where content bearing terms are extracted from the document text.  The second stage is the weighting of the indexed terms to enhance retrieval of document relevant to the user.  The last stage ranks the document with respect to the query according to a similarity measure.