SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
Information Retrieval Basics
Kira Radinsky
Many of the following slides are courtesy of Ronny Lempel (Yahoo!),
Aya Soffer and David Carmel (IBM)
19 October 2010 CS236620 Search Engine Technology 2
Indexing/Retrieval – Basics
• 2 Main Stages
– Indexing process - involves pre-processing and storing of
information into a repository – an index
– Retrieval/runtime process - involves issuing a query, accessing the
index to find documents relevant to the query
• Basic Concepts:
– Document – any piece of information (book, article, database
record, Web page, image, video, song)
• usually textual data
– Query – some text representing the user’s information need
– Relevance – a binary relation (a predicate) between documents and
queries R(d,q)
• Obviously a simplification of subjective quality with many shades of gray
19 October 2010 CS236620 Search Engine Technology 3
Defining Document Relevance to a Query
• Although Relevance is the basic concept of IR, it lacks a precise
definition
• Difficulties :
– User/intent dependent
– Time/place dependent
– In practice, depends on what other documents are deemed
relevant
• And even on what other documents were retrieved for the
same query
• Simplified assumption:
– D - the set of all documents in the collection (corpus),
– Q - the set of all possible queries,
– R: D X Q  {0,1} is well defined
– d is “relevant” to q iff R(d,q) = 1
• Some models try to measure the probability of relevance: Pr(R|d,q)
19 October 2010 CS236620 Search Engine Technology 4
Index building: Text Profiling
• Documents/Queries are profiled to generate a canonical representation
• The profile is usually based on the set of indexing units (terms) in the text
• Indexing units (terms) are generally representative words in the text
– How to select representative units?
– For the moment, let’s take all the words in the given document/query
In the beginning
God created the
heaven and the
earth . And the
earth was without
form and void.
..,and,,beginning,,created,,earth,,form,,god,,heaven,,in,,the,,void,,was,,without
.., 3 ,, 1 ,,1 ,, 2 ,, 1 ,, 1 ,, 1 ,, 1,, 4 ,, 1 ,, 1 ,, 1
19 October 2010 CS236620 Search Engine Technology 5
More Formally
Given a collection of documents (a corpus)
• All the terms in the collection can be labeled t1, t2, …,tN
• The profile of document dj is an N-dimensional vector,
dj  (w1j, w2j, …,wNj)
– where
• wij = 0 if ti does not appear in dj
• wij > 0 otherwise
• The N-dimensional vector space is conceptual – implementations will
not actually manipulate such large vectors
19 October 2010 CS236620 Search Engine Technology 6
Index Representation as a (Sparse) Matrix
dM
…d2d1A(t,d)
w1Mw12w11t1
t2
wNMwN1tN
Most entries are zero – certainly for large corpora
19 October 2010 CS236620 Search Engine Technology 7
Using the Index for Relevance Retrieval
• Assumption: a document not containing any query term is
not relevant
• Given a simple query of one term q={ti}
• Use the index for retrieval:
– 1. Retrieve all documents dj with wij > 0
– 2. Sort them in decreasing order (in some models)
– 3. Return the (ranked) list of “relevant” documents to the user
• In general: given a user’s query q={t1…tk}:
– Disjunctive queries: return a (ranked) list of documents containing
at least one of the query terms
– Conjunctive queries: return a (ranked) list of documents containing
all of the query terms
19 October 2010 CS236620 Search Engine Technology 8
The Boolean Model
• Simple model based on Set Theory
• Queries are specified as Boolean expressions
– indexing units are words
– Boolean Operator: OR, AND, NOT
– Example:
q =“java” AND “compilers” AND (“unix” OR “linux”)
• Relevance: A document is relevant to the query if it
satisfies the query Boolean expression
19 October 2010 CS236620 Search Engine Technology 9
Boolean Model- Example
d5d4d3d2d1A(t,d)
10111a
11010b
10100c
q = a AND (b OR (NOT c))
19 October 2010 CS236620 Search Engine Technology 10
Search Using an Inverted Index
• a  d1,d2,d3,d5
• b  d2,d4,d5
• c  d3,d5
• a  1,1,1,0,1
• b  0,1,0,1,1
• NOT c  1,1,0,1,0 1,1,0,1,1
OR 1,1,0,0,1
AND
q = a AND (b OR (NOT c))
Results: d1, d2, d5
19 October 2010 CS236620 Search Engine Technology 11
Boolean Model – Pros & Cons
• Pros:
– Fast (bitmap vector operations)
– Binary decision (doc is “relevant” or not)
– Some extensions are easy (e.g. synonym support)
• Cons:
– Binary decision - what about ranking?
– Who speaks Boolean?
19 October 2010 CS236620 Search Engine Technology 12
Vector Space Model
• Documents are represented as vectors in a (huge) N-
dimensional space
– N is the number of terms in the corpus, i.e. size of the
lexicon/dictionary
• Query is a document like any other document
• Relevance – measured by similarity:
– A document is relevant to the query if its representative vector
is similar to the query’s representative vector
19 October 2010 CS236620 Search Engine Technology 13
Documents as Vectors
Star
Diet
Doc about astronomy
Doc about movie stars
Doc about mammal behavior
19 October 2010 CS236620 Search Engine Technology 14
Vector-space Model
• “Relevance” is measured by similarity - the cosine of the
angle between doc-vectors and the query vector
• Need to represent the query as a vector in the same vector-
space as the documents






i
id
i
iq
i
idiq
ww
ww
dq
dq
dqSim
22||||
),(
i
j
a1
d1
q
d2
19 October 2010 CS236620 Search Engine Technology 15
Example
D2
D1
Q
1a
2a
Term B
Term A
Q = (0.4,0.8)
D1=(0.8,0.3)
D2=(0.2,0.7)
98.0
42.0
64.0
])7.0()2.0[(])8.0()4.0[(
)7.08.0()2.04.0(
),(
22222



dqsim
74.0
58.0
56.
),( 1 dqsim






i
id
i
iq
i
idiq
ww
ww
dq
dq
dqSim
22||||
),(
19 October 2010 CS236620 Search Engine Technology 16
How to Determine the w(t,d) Weights?
• Binary weights:
– wi,j= 1 iff document dj contains term ti, otherwise 0.
– (e.g. the Boolean model)
• Term frequency (tf):
– wi,j= (number of occurrences of ti in dj)
• What about term importance?
– E.g. q=“galaxy in space”.
– Should an occurrence of the query term “in” in a document
contribute the same as an occurrence of the query term “galaxy”?
19 October 2010 CS236620 Search Engine Technology 17
Determining the w(t,d) Weights (cont)
tf x idf weighting scheme (Salton 73)
• tf – a monotonic function of the term frequency in the
document,
– e.g. tf(t,d)= log(freq(t,d) + 1)
• idf – the inverse document frequency of a term – a
decreasing function of the term total freq Nt
– e.g: idf(t) = log(N / Nt) (for terms appearing at least once,
N- #documents, Nt -#documents with t)
– Intuition: query terms that are rare in the corpus better
distinguish the relevant documents from the irrelevant ones
– Wi,j = tf(ti,dj) * idf(ti)
19 October 2010 CS236620 Search Engine Technology 18
Vector Space Pros & Cons
• Pros
– Terms weighting scheme improves retrieval effectiveness
– Allows for approximate query matching
– Cosine similarity is a good ranking measure
– Simple and elegant, with a solid mathematical foundation
• Cons
– Terms are not really orthogonal dimensions due to strong term
relationships and dependencies
– Ranking does not guarantee multiple term containment
• Default semantics of search engines is “AND” for multi-term queries
(conjunction queries)
– Term weighting schemes sometimes difficult to maintain in
incremental settings, e.g. idf values and document norms
frequently change
19 October 2010 CS236620 Search Engine Technology 19
Practical Considerations
• Document length approximations
• Incorporating proximity considerations of query terms
occurrences in result documents into the formulae
• Stop-word elimination
– Stop-word examples: and, the, or, of, in, a, an, to, …
• Linguistic processing of terms (stemming, lemmatization,
synonym expansion, compounds) and their effects on
recall/precision

Weitere ähnliche Inhalte

Was ist angesagt?

Information Retrieval
Information RetrievalInformation Retrieval
Information Retrievalssbd6985
 
Introduction to Information Retrieval & Models
Introduction to Information Retrieval & ModelsIntroduction to Information Retrieval & Models
Introduction to Information Retrieval & ModelsMounia Lalmas-Roelleke
 
Probabilistic retrieval model
Probabilistic retrieval modelProbabilistic retrieval model
Probabilistic retrieval modelbaradhimarch81
 
Indexing Techniques: Their Usage in Search Engines for Information Retrieval
Indexing Techniques: Their Usage in Search Engines for Information RetrievalIndexing Techniques: Their Usage in Search Engines for Information Retrieval
Indexing Techniques: Their Usage in Search Engines for Information RetrievalVikas Bhushan
 
Boolean,vector space retrieval Models
Boolean,vector space retrieval Models Boolean,vector space retrieval Models
Boolean,vector space retrieval Models Primya Tamil
 
Information retrieval-systems notes
Information retrieval-systems notesInformation retrieval-systems notes
Information retrieval-systems notesBAIRAVI T
 
Information retrieval 7 boolean model
Information retrieval 7 boolean modelInformation retrieval 7 boolean model
Information retrieval 7 boolean modelVaibhav Khanna
 
The vector space model
The vector space modelThe vector space model
The vector space modelpkgosh
 
INFORMATION RETRIEVAL Anandraj.L
INFORMATION RETRIEVAL Anandraj.LINFORMATION RETRIEVAL Anandraj.L
INFORMATION RETRIEVAL Anandraj.Lanujessy
 
CS6007 information retrieval - 5 units notes
CS6007   information retrieval - 5 units notesCS6007   information retrieval - 5 units notes
CS6007 information retrieval - 5 units notesAnandh Arumugakan
 
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
 
Information storage and retrieval
Information storage and  retrievalInformation storage and  retrieval
Information storage and retrievalDr. Utpal Das
 
Ppt evaluation of information retrieval system
Ppt evaluation of information retrieval systemPpt evaluation of information retrieval system
Ppt evaluation of information retrieval systemsilambu111
 
Information retrieval system
Information retrieval systemInformation retrieval system
Information retrieval systemLeslie Vargas
 
Introduction to Information Retrieval
Introduction to Information RetrievalIntroduction to Information Retrieval
Introduction to Information RetrievalRoi Blanco
 
Review of search and retrieval strategies
Review of search and retrieval strategiesReview of search and retrieval strategies
Review of search and retrieval strategiesAbid Fakhre Alam
 

Was ist angesagt? (20)

Information Retrieval
Information RetrievalInformation Retrieval
Information Retrieval
 
Introduction to Information Retrieval & Models
Introduction to Information Retrieval & ModelsIntroduction to Information Retrieval & Models
Introduction to Information Retrieval & Models
 
Probabilistic retrieval model
Probabilistic retrieval modelProbabilistic retrieval model
Probabilistic retrieval model
 
Indexing Techniques: Their Usage in Search Engines for Information Retrieval
Indexing Techniques: Their Usage in Search Engines for Information RetrievalIndexing Techniques: Their Usage in Search Engines for Information Retrieval
Indexing Techniques: Their Usage in Search Engines for Information Retrieval
 
Boolean,vector space retrieval Models
Boolean,vector space retrieval Models Boolean,vector space retrieval Models
Boolean,vector space retrieval Models
 
Information retrieval-systems notes
Information retrieval-systems notesInformation retrieval-systems notes
Information retrieval-systems notes
 
Information retrieval 7 boolean model
Information retrieval 7 boolean modelInformation retrieval 7 boolean model
Information retrieval 7 boolean model
 
The vector space model
The vector space modelThe vector space model
The vector space model
 
INFORMATION RETRIEVAL Anandraj.L
INFORMATION RETRIEVAL Anandraj.LINFORMATION RETRIEVAL Anandraj.L
INFORMATION RETRIEVAL Anandraj.L
 
CS6007 information retrieval - 5 units notes
CS6007   information retrieval - 5 units notesCS6007   information retrieval - 5 units notes
CS6007 information retrieval - 5 units notes
 
Functions of information retrival system(1)
Functions of information retrival system(1)Functions of information retrival system(1)
Functions of information retrival system(1)
 
Lec1,2
Lec1,2Lec1,2
Lec1,2
 
Information storage and retrieval
Information storage and  retrievalInformation storage and  retrieval
Information storage and retrieval
 
Ppt evaluation of information retrieval system
Ppt evaluation of information retrieval systemPpt evaluation of information retrieval system
Ppt evaluation of information retrieval system
 
IR
IRIR
IR
 
Information retrieval system
Information retrieval systemInformation retrieval system
Information retrieval system
 
Apriori algorithm
Apriori algorithmApriori algorithm
Apriori algorithm
 
Introduction to Information Retrieval
Introduction to Information RetrievalIntroduction to Information Retrieval
Introduction to Information Retrieval
 
Dublin Core Intro
Dublin Core IntroDublin Core Intro
Dublin Core Intro
 
Review of search and retrieval strategies
Review of search and retrieval strategiesReview of search and retrieval strategies
Review of search and retrieval strategies
 

Ähnlich wie Tutorial 1 (information retrieval basics)

Introduction to search engine-building with Lucene
Introduction to search engine-building with LuceneIntroduction to search engine-building with Lucene
Introduction to search engine-building with LuceneKai Chan
 
Chapter 4 IR Models.pdf
Chapter 4 IR Models.pdfChapter 4 IR Models.pdf
Chapter 4 IR Models.pdfHabtamu100
 
Introduction to search engine-building with Lucene
Introduction to search engine-building with LuceneIntroduction to search engine-building with Lucene
Introduction to search engine-building with LuceneKai Chan
 
Information Retrieval
Information RetrievalInformation Retrieval
Information Retrievalrchbeir
 
[系列活動] 人工智慧與機器學習在推薦系統上的應用
[系列活動] 人工智慧與機器學習在推薦系統上的應用[系列活動] 人工智慧與機器學習在推薦系統上的應用
[系列活動] 人工智慧與機器學習在推薦系統上的應用台灣資料科學年會
 
A hierarchical approach for semi structured document indexing and
A hierarchical approach for semi structured document indexing andA hierarchical approach for semi structured document indexing and
A hierarchical approach for semi structured document indexing andIbrahim Bounhas
 
IRT Unit_ 2.pptx
IRT Unit_ 2.pptxIRT Unit_ 2.pptx
IRT Unit_ 2.pptxthenmozhip8
 
Summary of SIGIR 2011 Papers
Summary of SIGIR 2011 PapersSummary of SIGIR 2011 Papers
Summary of SIGIR 2011 Paperschetanagavankar
 
Slides
SlidesSlides
Slidesbutest
 
RDF Data and Image Annotations in ResearchSpace (slides)
RDF Data and Image Annotations in ResearchSpace (slides)RDF Data and Image Annotations in ResearchSpace (slides)
RDF Data and Image Annotations in ResearchSpace (slides)Vladimir Alexiev, PhD, PMP
 
Week14-Multimedia Information Retrieval.pptx
Week14-Multimedia Information Retrieval.pptxWeek14-Multimedia Information Retrieval.pptx
Week14-Multimedia Information Retrieval.pptxHasanulFahmi2
 
Intent Algorithms: The Data Science of Smart Information Retrieval Systems
Intent Algorithms: The Data Science of Smart Information Retrieval SystemsIntent Algorithms: The Data Science of Smart Information Retrieval Systems
Intent Algorithms: The Data Science of Smart Information Retrieval SystemsTrey Grainger
 
A SVM Applied Text Categorization of Academia-Industry Collaborative Research...
A SVM Applied Text Categorization of Academia-Industry Collaborative Research...A SVM Applied Text Categorization of Academia-Industry Collaborative Research...
A SVM Applied Text Categorization of Academia-Industry Collaborative Research...National Institute of Informatics
 
The Intent Algorithms of Search & Recommendation Engines
The Intent Algorithms of Search & Recommendation EnginesThe Intent Algorithms of Search & Recommendation Engines
The Intent Algorithms of Search & Recommendation EnginesTrey Grainger
 

Ähnlich wie Tutorial 1 (information retrieval basics) (20)

Web search engines
Web search enginesWeb search engines
Web search engines
 
Multilingual document analysis
Multilingual document analysisMultilingual document analysis
Multilingual document analysis
 
Introduction to search engine-building with Lucene
Introduction to search engine-building with LuceneIntroduction to search engine-building with Lucene
Introduction to search engine-building with Lucene
 
Chapter 4 IR Models.pdf
Chapter 4 IR Models.pdfChapter 4 IR Models.pdf
Chapter 4 IR Models.pdf
 
Introduction to search engine-building with Lucene
Introduction to search engine-building with LuceneIntroduction to search engine-building with Lucene
Introduction to search engine-building with Lucene
 
Information Retrieval
Information RetrievalInformation Retrieval
Information Retrieval
 
Sigir 2011 proceedings
Sigir 2011 proceedingsSigir 2011 proceedings
Sigir 2011 proceedings
 
[系列活動] 人工智慧與機器學習在推薦系統上的應用
[系列活動] 人工智慧與機器學習在推薦系統上的應用[系列活動] 人工智慧與機器學習在推薦系統上的應用
[系列活動] 人工智慧與機器學習在推薦系統上的應用
 
Ir models
Ir modelsIr models
Ir models
 
A hierarchical approach for semi structured document indexing and
A hierarchical approach for semi structured document indexing andA hierarchical approach for semi structured document indexing and
A hierarchical approach for semi structured document indexing and
 
IRT Unit_ 2.pptx
IRT Unit_ 2.pptxIRT Unit_ 2.pptx
IRT Unit_ 2.pptx
 
Summary of SIGIR 2011 Papers
Summary of SIGIR 2011 PapersSummary of SIGIR 2011 Papers
Summary of SIGIR 2011 Papers
 
Slides
SlidesSlides
Slides
 
RDF Data and Image Annotations in ResearchSpace (slides)
RDF Data and Image Annotations in ResearchSpace (slides)RDF Data and Image Annotations in ResearchSpace (slides)
RDF Data and Image Annotations in ResearchSpace (slides)
 
search engine
search enginesearch engine
search engine
 
Lec 4,5
Lec 4,5Lec 4,5
Lec 4,5
 
Week14-Multimedia Information Retrieval.pptx
Week14-Multimedia Information Retrieval.pptxWeek14-Multimedia Information Retrieval.pptx
Week14-Multimedia Information Retrieval.pptx
 
Intent Algorithms: The Data Science of Smart Information Retrieval Systems
Intent Algorithms: The Data Science of Smart Information Retrieval SystemsIntent Algorithms: The Data Science of Smart Information Retrieval Systems
Intent Algorithms: The Data Science of Smart Information Retrieval Systems
 
A SVM Applied Text Categorization of Academia-Industry Collaborative Research...
A SVM Applied Text Categorization of Academia-Industry Collaborative Research...A SVM Applied Text Categorization of Academia-Industry Collaborative Research...
A SVM Applied Text Categorization of Academia-Industry Collaborative Research...
 
The Intent Algorithms of Search & Recommendation Engines
The Intent Algorithms of Search & Recommendation EnginesThe Intent Algorithms of Search & Recommendation Engines
The Intent Algorithms of Search & Recommendation Engines
 

Mehr von Kira

Tutorial 14 (collaborative filtering)
Tutorial 14 (collaborative filtering)Tutorial 14 (collaborative filtering)
Tutorial 14 (collaborative filtering)Kira
 
Tutorial 12 (click models)
Tutorial 12 (click models)Tutorial 12 (click models)
Tutorial 12 (click models)Kira
 
Tutorial 11 (computational advertising)
Tutorial 11 (computational advertising)Tutorial 11 (computational advertising)
Tutorial 11 (computational advertising)Kira
 
Tutorial 10 (computational advertising)
Tutorial 10 (computational advertising)Tutorial 10 (computational advertising)
Tutorial 10 (computational advertising)Kira
 
Tutorial 9 (bloom filters)
Tutorial 9 (bloom filters)Tutorial 9 (bloom filters)
Tutorial 9 (bloom filters)Kira
 
Tutorial 8 (web graph models)
Tutorial 8 (web graph models)Tutorial 8 (web graph models)
Tutorial 8 (web graph models)Kira
 
Tutorial 7 (link analysis)
Tutorial 7 (link analysis)Tutorial 7 (link analysis)
Tutorial 7 (link analysis)Kira
 
Tutorial 6 (web graph attributes)
Tutorial 6 (web graph attributes)Tutorial 6 (web graph attributes)
Tutorial 6 (web graph attributes)Kira
 
Tutorial 5 (lucene)
Tutorial 5 (lucene)Tutorial 5 (lucene)
Tutorial 5 (lucene)Kira
 
Tutorial 4 (duplicate detection)
Tutorial 4 (duplicate detection)Tutorial 4 (duplicate detection)
Tutorial 4 (duplicate detection)Kira
 
Tutorial 3 (b tree min heap)
Tutorial 3 (b tree min heap)Tutorial 3 (b tree min heap)
Tutorial 3 (b tree min heap)Kira
 
Tutorial 2 (mle + language models)
Tutorial 2 (mle + language models)Tutorial 2 (mle + language models)
Tutorial 2 (mle + language models)Kira
 
Tutorial 13 (explicit ugc + sentiment analysis)
Tutorial 13 (explicit ugc + sentiment analysis)Tutorial 13 (explicit ugc + sentiment analysis)
Tutorial 13 (explicit ugc + sentiment analysis)Kira
 

Mehr von Kira (13)

Tutorial 14 (collaborative filtering)
Tutorial 14 (collaborative filtering)Tutorial 14 (collaborative filtering)
Tutorial 14 (collaborative filtering)
 
Tutorial 12 (click models)
Tutorial 12 (click models)Tutorial 12 (click models)
Tutorial 12 (click models)
 
Tutorial 11 (computational advertising)
Tutorial 11 (computational advertising)Tutorial 11 (computational advertising)
Tutorial 11 (computational advertising)
 
Tutorial 10 (computational advertising)
Tutorial 10 (computational advertising)Tutorial 10 (computational advertising)
Tutorial 10 (computational advertising)
 
Tutorial 9 (bloom filters)
Tutorial 9 (bloom filters)Tutorial 9 (bloom filters)
Tutorial 9 (bloom filters)
 
Tutorial 8 (web graph models)
Tutorial 8 (web graph models)Tutorial 8 (web graph models)
Tutorial 8 (web graph models)
 
Tutorial 7 (link analysis)
Tutorial 7 (link analysis)Tutorial 7 (link analysis)
Tutorial 7 (link analysis)
 
Tutorial 6 (web graph attributes)
Tutorial 6 (web graph attributes)Tutorial 6 (web graph attributes)
Tutorial 6 (web graph attributes)
 
Tutorial 5 (lucene)
Tutorial 5 (lucene)Tutorial 5 (lucene)
Tutorial 5 (lucene)
 
Tutorial 4 (duplicate detection)
Tutorial 4 (duplicate detection)Tutorial 4 (duplicate detection)
Tutorial 4 (duplicate detection)
 
Tutorial 3 (b tree min heap)
Tutorial 3 (b tree min heap)Tutorial 3 (b tree min heap)
Tutorial 3 (b tree min heap)
 
Tutorial 2 (mle + language models)
Tutorial 2 (mle + language models)Tutorial 2 (mle + language models)
Tutorial 2 (mle + language models)
 
Tutorial 13 (explicit ugc + sentiment analysis)
Tutorial 13 (explicit ugc + sentiment analysis)Tutorial 13 (explicit ugc + sentiment analysis)
Tutorial 13 (explicit ugc + sentiment analysis)
 

Kürzlich hochgeladen

Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Kürzlich hochgeladen (20)

Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Tutorial 1 (information retrieval basics)

  • 1. Information Retrieval Basics Kira Radinsky Many of the following slides are courtesy of Ronny Lempel (Yahoo!), Aya Soffer and David Carmel (IBM)
  • 2. 19 October 2010 CS236620 Search Engine Technology 2 Indexing/Retrieval – Basics • 2 Main Stages – Indexing process - involves pre-processing and storing of information into a repository – an index – Retrieval/runtime process - involves issuing a query, accessing the index to find documents relevant to the query • Basic Concepts: – Document – any piece of information (book, article, database record, Web page, image, video, song) • usually textual data – Query – some text representing the user’s information need – Relevance – a binary relation (a predicate) between documents and queries R(d,q) • Obviously a simplification of subjective quality with many shades of gray
  • 3. 19 October 2010 CS236620 Search Engine Technology 3 Defining Document Relevance to a Query • Although Relevance is the basic concept of IR, it lacks a precise definition • Difficulties : – User/intent dependent – Time/place dependent – In practice, depends on what other documents are deemed relevant • And even on what other documents were retrieved for the same query • Simplified assumption: – D - the set of all documents in the collection (corpus), – Q - the set of all possible queries, – R: D X Q  {0,1} is well defined – d is “relevant” to q iff R(d,q) = 1 • Some models try to measure the probability of relevance: Pr(R|d,q)
  • 4. 19 October 2010 CS236620 Search Engine Technology 4 Index building: Text Profiling • Documents/Queries are profiled to generate a canonical representation • The profile is usually based on the set of indexing units (terms) in the text • Indexing units (terms) are generally representative words in the text – How to select representative units? – For the moment, let’s take all the words in the given document/query In the beginning God created the heaven and the earth . And the earth was without form and void. ..,and,,beginning,,created,,earth,,form,,god,,heaven,,in,,the,,void,,was,,without .., 3 ,, 1 ,,1 ,, 2 ,, 1 ,, 1 ,, 1 ,, 1,, 4 ,, 1 ,, 1 ,, 1
  • 5. 19 October 2010 CS236620 Search Engine Technology 5 More Formally Given a collection of documents (a corpus) • All the terms in the collection can be labeled t1, t2, …,tN • The profile of document dj is an N-dimensional vector, dj  (w1j, w2j, …,wNj) – where • wij = 0 if ti does not appear in dj • wij > 0 otherwise • The N-dimensional vector space is conceptual – implementations will not actually manipulate such large vectors
  • 6. 19 October 2010 CS236620 Search Engine Technology 6 Index Representation as a (Sparse) Matrix dM …d2d1A(t,d) w1Mw12w11t1 t2 wNMwN1tN Most entries are zero – certainly for large corpora
  • 7. 19 October 2010 CS236620 Search Engine Technology 7 Using the Index for Relevance Retrieval • Assumption: a document not containing any query term is not relevant • Given a simple query of one term q={ti} • Use the index for retrieval: – 1. Retrieve all documents dj with wij > 0 – 2. Sort them in decreasing order (in some models) – 3. Return the (ranked) list of “relevant” documents to the user • In general: given a user’s query q={t1…tk}: – Disjunctive queries: return a (ranked) list of documents containing at least one of the query terms – Conjunctive queries: return a (ranked) list of documents containing all of the query terms
  • 8. 19 October 2010 CS236620 Search Engine Technology 8 The Boolean Model • Simple model based on Set Theory • Queries are specified as Boolean expressions – indexing units are words – Boolean Operator: OR, AND, NOT – Example: q =“java” AND “compilers” AND (“unix” OR “linux”) • Relevance: A document is relevant to the query if it satisfies the query Boolean expression
  • 9. 19 October 2010 CS236620 Search Engine Technology 9 Boolean Model- Example d5d4d3d2d1A(t,d) 10111a 11010b 10100c q = a AND (b OR (NOT c))
  • 10. 19 October 2010 CS236620 Search Engine Technology 10 Search Using an Inverted Index • a  d1,d2,d3,d5 • b  d2,d4,d5 • c  d3,d5 • a  1,1,1,0,1 • b  0,1,0,1,1 • NOT c  1,1,0,1,0 1,1,0,1,1 OR 1,1,0,0,1 AND q = a AND (b OR (NOT c)) Results: d1, d2, d5
  • 11. 19 October 2010 CS236620 Search Engine Technology 11 Boolean Model – Pros & Cons • Pros: – Fast (bitmap vector operations) – Binary decision (doc is “relevant” or not) – Some extensions are easy (e.g. synonym support) • Cons: – Binary decision - what about ranking? – Who speaks Boolean?
  • 12. 19 October 2010 CS236620 Search Engine Technology 12 Vector Space Model • Documents are represented as vectors in a (huge) N- dimensional space – N is the number of terms in the corpus, i.e. size of the lexicon/dictionary • Query is a document like any other document • Relevance – measured by similarity: – A document is relevant to the query if its representative vector is similar to the query’s representative vector
  • 13. 19 October 2010 CS236620 Search Engine Technology 13 Documents as Vectors Star Diet Doc about astronomy Doc about movie stars Doc about mammal behavior
  • 14. 19 October 2010 CS236620 Search Engine Technology 14 Vector-space Model • “Relevance” is measured by similarity - the cosine of the angle between doc-vectors and the query vector • Need to represent the query as a vector in the same vector- space as the documents       i id i iq i idiq ww ww dq dq dqSim 22|||| ),( i j a1 d1 q d2
  • 15. 19 October 2010 CS236620 Search Engine Technology 15 Example D2 D1 Q 1a 2a Term B Term A Q = (0.4,0.8) D1=(0.8,0.3) D2=(0.2,0.7) 98.0 42.0 64.0 ])7.0()2.0[(])8.0()4.0[( )7.08.0()2.04.0( ),( 22222    dqsim 74.0 58.0 56. ),( 1 dqsim       i id i iq i idiq ww ww dq dq dqSim 22|||| ),(
  • 16. 19 October 2010 CS236620 Search Engine Technology 16 How to Determine the w(t,d) Weights? • Binary weights: – wi,j= 1 iff document dj contains term ti, otherwise 0. – (e.g. the Boolean model) • Term frequency (tf): – wi,j= (number of occurrences of ti in dj) • What about term importance? – E.g. q=“galaxy in space”. – Should an occurrence of the query term “in” in a document contribute the same as an occurrence of the query term “galaxy”?
  • 17. 19 October 2010 CS236620 Search Engine Technology 17 Determining the w(t,d) Weights (cont) tf x idf weighting scheme (Salton 73) • tf – a monotonic function of the term frequency in the document, – e.g. tf(t,d)= log(freq(t,d) + 1) • idf – the inverse document frequency of a term – a decreasing function of the term total freq Nt – e.g: idf(t) = log(N / Nt) (for terms appearing at least once, N- #documents, Nt -#documents with t) – Intuition: query terms that are rare in the corpus better distinguish the relevant documents from the irrelevant ones – Wi,j = tf(ti,dj) * idf(ti)
  • 18. 19 October 2010 CS236620 Search Engine Technology 18 Vector Space Pros & Cons • Pros – Terms weighting scheme improves retrieval effectiveness – Allows for approximate query matching – Cosine similarity is a good ranking measure – Simple and elegant, with a solid mathematical foundation • Cons – Terms are not really orthogonal dimensions due to strong term relationships and dependencies – Ranking does not guarantee multiple term containment • Default semantics of search engines is “AND” for multi-term queries (conjunction queries) – Term weighting schemes sometimes difficult to maintain in incremental settings, e.g. idf values and document norms frequently change
  • 19. 19 October 2010 CS236620 Search Engine Technology 19 Practical Considerations • Document length approximations • Incorporating proximity considerations of query terms occurrences in result documents into the formulae • Stop-word elimination – Stop-word examples: and, the, or, of, in, a, an, to, … • Linguistic processing of terms (stemming, lemmatization, synonym expansion, compounds) and their effects on recall/precision