watson-health--stacked-scrolling--1


Notes on Introduction to Information Retrieval, Chap. 1. (Boolean Retrieval)

1.0 Background Information

IR: Finding materials that satisfy an information need from unstructured data

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

Unstructured data

1.1 Boolean Retrieval Problem Simplified

Scenario #1

Consider a collection of plays (Shakespeare's Collected Works)

The Boolean retrieval model allows us to pose a query in the form of a Boolean expression of terms. Each document is viewed as a set of words.

Scenario #2

Consider a larger-scale scenario with a collection of N = 1 million documents that are roughly 1000 words long each. Generally, there might be about M = 500,000 distinct terms throughout the collection.

1.2 Building an inverted index

Steps

  1. Collect documents to be indexed
  2. Tokenize text so each document is a list of tokens
  3. Preprocessing to normalise tokens
  4. Index documents that each term occurs in by creating an inverted index

Consider a scenario in which steps 1-3 are done. Now we perform step 4. Indexing Method

Singly linked lists or variable length arrays are good structures for postings lists.

1.3 Processing Boolean queries

Target: Combine inverted index and Boolean retrieval model Consider the statement: Brutus AND Calpurnia

Through this form of indexing, complexity is improved by a constant (although still linear), but it's a huge difference in practice.

Query optimisation is the process of selecting how to organise the work of answering a query so that the system does minimal work.

Consider a query that is an AND of t terms, optimise intersection by:

Many ways to modify and optimise intersection depending on the situation. Even the standard intersection algorithm is essential in certain cases.

1.4 Extended B.R.M. vs Ranked Retrieval

Some systems have extended the Boolean retrieval model by incorporating operators such as term proximity operators (helps specify that two terms must occur within a certain distance of each other).

Problems with B.R.M.

Ranked retrieval models (like vector space models) possess certain advantages, and allows for free text queries.

Figures

Fig. 1.1Antony and CleopatraJulius CaesarThe TempestHamletOthelloMacbeth
Antony110001
Brutus110100
Caesar110111
Calpurnia010000
Fig. 1.3

Fig. 1.4

termdocID
I1
did1
enact1
caesar1
caesar1
enact2
Sorts into
termdocID
caesar1
caesar1
did1
enact1
enact2
I1
Merges and splits into a structure like in Fig. 1.3