Introduction to IR
Mike Salampasis
(to some extent based on slides from Dr Allan Hanbury and Prof. Bruce Croft)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
Contents
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
IBM Watson and Jeopardy
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3
The end of the show
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4
How does it work?
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
How does it work?
Natural Language Processing
Information Retrieval
Knowledge Representation and Reasoning
Machine Learning
Parallel and Distributed Computing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7
Information Retrieval
Information Retrieval (IR) is finding material (usually documents) of an unstructured nature (usually text) that satisfies an information need from within large collections (usually stored on computers).
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10
Why Information Retrieval?
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12
Manual Lists of Websites
December 1996
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
Automatic Indexing
1996
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14
Automatic Indexing
November 1998
June 2009
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15
Beyond the Web
Number of images captured per day in a large hospital (each slice of a volume is counted as an image), �~100 GB new images per day
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
16
The picture can be even more fascinating
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
17
Search Influences Society
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
18
Basic assumptions of �Information Retrieval
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
19
Four Key Characteristics of IR
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
20
Unstructured Information
As opposed to
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21
IR vs. Databases: Structured vs Unstructured Data
Employee
Manager
Salary
Smith
Jones
50000
Chang
Smith
60000
50000
Ivy
Smith
Typically allows numerical range and exact match
(for text) queries, e.g.,
Salary < 60000 AND Manager = Smith.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22
Unstructured Data
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
23
Semi-structured Data
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
24
Confluence of IR and Databases
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
25
Unstructured Text Information in Practice
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
26
No Right Answers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
27
Separation of Indexing and Query Time Processing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
28
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
Empirical Method
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
Search Interface
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
33
Results
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
34
Why are interfaces so simple?
M. Hearst
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
35
How does a search engine �work?
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
36
Conceptual Model for Search
Documents
Document Representation
Information Need
Query
Indexing
Formulation
Retrieved Documents
Retrieval Function
Further Analysis of the Documents
Relevance Feedback, Query Reformulation, Query Expansion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
37
Conceptual Model for Search
Documents
Document Representation
Information Need
Query
Indexing
Formulation
Retrieved Documents
Retrieval Function
Further Analysis of the Documents
Relevance Feedback, Query Reformulation, Query Expansion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38
Types of Queries
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
39
Queries
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
40
Conceptual Model for Search
41
Documents
Document Representation
Information Need
Query
Indexing
Formulation
Retrieved Documents
Retrieval Function
Further Analysis of the Documents
Relevance Feedback, Query Reformulation, Query Expansion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
41
Indexing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
Aim of Indexing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
43
Overview of Indexing Process
I like to laugh. It is a tonic. It braces me up—makes me feel fine!—and keeps me in prime mental condition. Laughter is a physiological necessity. The nerve system requires it. The deep, forceful chest movement in itself sets the blood to racing thereby livening up the circulation—which is good for us.
laugh |
brace |
necessity |
chest |
word |
piano |
rug |
alone |
night |
always |
repair |
water |
warm |
age |
short |
instrument |
Without a word, Mr. Stevens caught up the tray from the piano and glided away on his toe-points; whereupon Mr. Brimberly (being alone) became astonishingly agile and nimble all at once, diving down to straighten a rug here and there, rearranging chairs and tables; he even opened the window and hurled two half-smoked cigars far out into the night;
It was always night on Martha, but Mark broke up his time into mornings, afternoons and evenings. Their life followed a simple routine. Breakfast, from vegetables and Mark's canned store. Then the robot would work in the fields, and the plants grew used to his touch.
The whole edifice bears the same warm tinge of yellow that all those of good quality acquire from age in that pure climate.
The untiring efforts of genius for over a century have succeeded in producing a musical instrument that falls little short of perfection.
Document Collection
Index
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
44
Overview of Indexing Process
I like to laugh. It is a tonic. It braces me up—makes me feel fine!—and keeps me in prime mental condition. Laughter is a physiological necessity. The nerve system requires it. The deep, forceful chest movement in itself sets the blood to racing thereby livening up the circulation—which is good for us.
laugh |
brace |
necessity |
chest |
word |
piano |
rug |
alone |
night |
always |
repair |
water |
warm |
age |
short |
instrument |
Without a word, Mr. Stevens caught up the tray from the piano and glided away on his toe-points; whereupon Mr. Brimberly (being alone) became astonishingly agile and nimble all at once, diving down to straighten a rug here and there, rearranging chairs and tables; he even opened the window and hurled two half-smoked cigars far out into the night;
It was always night on Martha, but Mark broke up his time into mornings, afternoons and evenings. Their life followed a simple routine. Breakfast, from vegetables and Mark's canned store. Then the robot would work in the fields, and the plants grew used to his touch.
The whole edifice bears the same warm tinge of yellow that all those of good quality acquire from age in that pure climate.
The untiring efforts of genius for over a century have succeeded in producing a musical instrument that falls little short of perfection.
Document Collection
Index
Retrieval Model
User Interface
Retrieval System
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
45
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
46
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
47
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
48
ΑΤΕΙΘ - Τμήμα Πληροφορικής
49
25/02/2022
Ιεράρχηση x Συχνότητα ≈ Σταθερά
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
49
A plot of the rank versus frequency for the first 10 million words in 30 Wikipedias (dumps from October 2015) in a log-log scale.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
50
A Glimpse at �Document Representations
I like to laugh. It is a tonic. It braces me up—makes me feel fine!—and keeps me in prime mental condition. Laughter is a physiological necessity. The nerve system requires it. The deep, forceful chest movement in itself sets the blood to racing thereby livening up the circulation—which is good for us.
I | like | to | laugh | it | is |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
51
Index Creation
I like to laugh. It is a tonic. It braces me up—makes me feel fine!—and keeps me in prime mental condition. Laughter is a physiological necessity. The nerve system requires it. The deep, forceful chest movement in itself sets the blood to racing thereby livening up the circulation—which is good for us.
Without a word, Mr. Stevens caught up the tray from the piano and glided away on his toe-points; whereupon Mr. Brimberly (being alone) became astonishingly agile and nimble all at once, diving down to straighten a rug here and there, rearranging chairs and tables; he even opened the window and hurled two half-smoked cigars far out into the night;
It was always night on Martha, but Mark broke up his time into mornings, afternoons and evenings. Their life followed a simple routine. Breakfast, from vegetables and Mark's canned store. Then the robot would work in the fields, and the plants grew used to his touch.
The whole edifice bears the same warm tinge of yellow that all those of good quality acquire from age in that pure climate.
The untiring efforts of genius for over a century have succeeded in producing a musical instrument that falls little short of perfection.
D1 | I | like | to | laugh | it |
D2 | without | a | word | mr | stevens |
D3 | the | whole | edifice | bears | the |
D4 | it | was | always | night | on |
D5 | the | untiring | efforts | of | genius |
Document Collection
Index
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
52
Direct Index
D1 | I | like | to | laugh | it |
D2 | without | a | word | mr | stevens |
D3 | the | whole | edifice | bears | the |
D4 | it | was | always | night | on |
D5 | the | untiring | efforts | of | genius |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
53
Inverted Index
I | D1 |
like | D1 |
to | D1 |
laugh | D1 |
it | D1, D4 |
without | D2 |
a | D2 |
word | D2 |
mr | D2 |
stevens | D2 |
the | D3, D5 |
whole | D3 |
edifice | D3 |
bears | D3 |
was | D4 |
always | D4 |
night | D4 |
on | D4 |
untiring | D5 |
efforts | D5 |
of | D5 |
genius | D5 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
54
Positional Index
I | D1 (pos1) |
like | D1 (pos2) |
to | D1 (pos3) |
laugh | D1 (pos4) |
it | D1 (pos5), D4 (pos1) |
without | D2 (pos1) |
a | D2 (pos2) |
word | D2 (pos3) |
mr | D2 (pos4) |
stevens | D2 (pos5) |
the | D3 (pos1, pos5), D5 (pos1) |
whole | D3 (pos2) |
edifice | D3 (pos3) |
bears | D3 (pos4) |
was | D4 (pos2) |
always | D4 (pos3) |
night | D4 (pos4) |
on | D4 (pos5) |
untiring | D5 (pos2) |
efforts | D5 (pos3) |
of | D5 (pos4) |
genius | D5 (pos5) |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
55
Field Index
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
56
Inverted Index Construction
Tokenizer
Token stream
Friends
Romans
Countrymen
Linguistic modules / Stemming
Modified tokens
friend
roman
countryman
Indexer
Inverted index
friend
roman
countryman
2
4
2
13
16
1
Documents to
be indexed
Friends, Romans, Countrymen.
Sec. 1.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
57
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
58
Tokenization
Sec. 2.2.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
59
Tokenization
Finland? Finlands? Finland’s?
Sec. 2.2.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
60
Numbers
Sec. 2.2.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
61
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
62
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
63
Normalization to terms
Sec. 2.2.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
64
Lemmatization
Sec. 2.2.4
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
65
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
66
Stemming
for example compressed
and compression are both
accepted as equivalent to
compress.
for exampl compress and
compress ar both accept
as equival to compress
Sec. 2.2.4
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
67
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
68
Conceptual Model for Search
Documents
Document Representation
Information Need
Query
Indexing
Formulation
Retrieved Documents
Retrieval Function
Further Analysis of the Documents
Relevance Feedback, Query Reformulation, Query Expansion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
69
Information Retrieval Models
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
70
Two Main Classes of IR Model
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
71
How People Search
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
72
Direct search�Known-Item search
The user is searching for an information object which is already known to him or her.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
73
Information Lookup
The user is searching for facts or answers to questions.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
74
Exploratory Search
The user is seeking to learn something about a topic but does not know in advance what may be important.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
75
Browsing
The goal is unclear since the user is not sure whether the requirements can be met or how they might be met.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
76
Exhaustive Searching
The user is trying to learn everything about a particular topic
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
77
Interfaces for IR
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
78
Interfaces for IR
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
79
There is usually also an advanced search option
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
80
Results
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
81
Visualization
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
82
Visualization
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
83
User Interface Characteristics
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
84
Document Surrogates
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
85
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
86
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
87
Related Term Suggestion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
88
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
89
Suggestion Provenance
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
90
Faceted Metadata
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
91
Flamenco search engine searching on Nobel Prize Winners
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
92
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
93
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
94
Comprehensive search interfaces
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
95
Example: ezDL
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
96
Summary
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
97