Boolean model of information retrieval

Short description: Classical information retrieval model

The (standard) Boolean model of information retrieval (BIR)[1] is a classical information retrieval (IR) model and, at the same time, the first and most-adopted one.[2] The BIR is based on Boolean logic and classical set theory in that both the documents to be searched and the user's query are conceived as sets of terms (a bag-of-words model). Retrieval is based on whether or not the documents contain the query terms and whether they satisfy the boolean conditions described by the query.

## Contents

* 1 Definitions
* 2 Example
* 3 Advantages
* 4 Disadvantages
* 5 Data structures and algorithms
* 5.1 Hash sets
* 5.2 Signature file
* 5.3 Inverted file
* 6 References

## Definitions

An index term is a word or expression, which may be stemmed, describing or characterizing a document, such as a keyword given for a journal article. Let[math]\displaystyle{ T = \\{t_1, t_2,\ \ldots,\ t_m\\} }[/math]be the set of all such index terms.

A document is any subset of [math]\displaystyle{ T }[/math]. Let[math]\displaystyle{ D = \\{D_1,\ \ldots\ ,D_n\\} }[/math]be the set of all documents.

A query is a Boolean expression [math]\displaystyle{ Q }[/math] in normal form:[math]\displaystyle{ Q = (W_1\ \or\ W_2\ \or\ \cdots) \and\ \cdots\ \and\ (W_i\ \or\ W_{i+1}\ \or\ \cdots) }[/math]where [math]\displaystyle{ W_i }[/math] is true for [math]\displaystyle{ D_j }[/math] when [math]\displaystyle{ t_i \in D_j }[/math]. (Equivalently, [math]\displaystyle{ Q }[/math] could be expressed in disjunctive normal form.)

We seek to find the set of documents that satisfy [math]\displaystyle{ Q }[/math]. This operation is called retrieval and consists of the following two steps:

1\. For each [math]\displaystyle{ W_j }[/math] in [math]\displaystyle{ Q }[/math], find the set [math]\displaystyle{ S_j }[/math] of documents that satisfy [math]\displaystyle{ W_j }[/math]:[math]\displaystyle{ S_j = \\{D_i\mid W_j\\} }[/math]2\. Then the set of documents that satisfy Q is given by:[math]\displaystyle{ (S_1 \cup S_2 \cup \cdots) \cap \cdots \cap (S_i \cup S_{i+1} \cup \cdots) }[/math]

## Example

Let the set of original (real) documents be, for example

[math]\displaystyle{ O = \\{O_1,\ O_2,\ O_3\\} }[/math]

where

[math]\displaystyle{ O_1 }[/math] = "Bayes' principle: The principle that, in estimating a parameter, one should initially assume that each possible value has equal probability (a uniform prior distribution)."

[math]\displaystyle{ O_2 }[/math] = "Bayesian decision theory: A mathematical theory of decision-making which presumes utility and probability functions, and according to which the act to be chosen is the Bayes act, i.e. the one with highest subjective expected utility. If one had unlimited time and calculating power with which to make every decision, this procedure would be the best way to make any decision."

[math]\displaystyle{ O_3 }[/math] = "Bayesian epistemology: A philosophical theory which holds that the epistemic status of a proposition (i.e. how well proven or well established it is) is best measured by a probability and that the proper way to revise this probability is given by Bayesian conditionalisation or similar procedures. A Bayesian epistemologist would use probability to define, and explore the relationship between, concepts such as epistemic status, support or explanatory power."

Let the set [math]\displaystyle{ T }[/math] of terms be:

[math]\displaystyle{ T = \\{t_1=\text{Bayes' principle}, t_2=\text{probability}, t_3=\text{decision-making}, t_4=\text{Bayesian epistemology}\\} }[/math]

Then, the set [math]\displaystyle{ D }[/math] of documents is as follows:

[math]\displaystyle{ D = \\{D_1,\ D_2,\ D_3\\} }[/math]

where [math]\displaystyle{ \begin{align} D_1 &= \\{\text{probability},\ \text{Bayes' principle}\\} \\\ D_2 &= \\{\text{probability},\ \text{decision-making}\\} \\\ D_3 &= \\{\text{probability},\ \text{Bayesian epistemology}\\} \end{align} }[/math]

Let the query [math]\displaystyle{ Q }[/math] be:

[math]\displaystyle{ Q = \text{probability} \and \text{decision-making} }[/math]Then to retrieve the relevant documents:

1. Firstly, the following sets [math]\displaystyle{ S_1 }[/math] and [math]\displaystyle{ S_2 }[/math] of documents [math]\displaystyle{ D_i }[/math] are obtained (retrieved):[math]\displaystyle{ \begin{align} S_1 &= \\{D_1,\ D_2,\ D_3\\} \\\ S_2 &= \\{D_2\\} \end{align} }[/math]
2. Finally, the following documents [math]\displaystyle{ D_i }[/math] are retrieved in response to [math]\displaystyle{ Q }[/math] [math]\displaystyle{ Q: \\{D_1,\ D_2,\ D_3\\}\ \cap\ \\{D_2\\}\ =\ \\{D_2\\} }[/math]

This means that the original document [math]\displaystyle{ O_2 }[/math] (corresponding to [math]\displaystyle{ D_2 }[/math]) is the answer to [math]\displaystyle{ Q }[/math].

Obviously, if there is more than one document with the same representation, every such document is retrieved. Such documents are indistinguishable in the BIR (in other words, equivalent).

## Advantages

* Clean formalism
* Easy to implement
* Intuitive concept
* If the resulting document set is either too small or too big, it is directly clear which operators will produce respectively a bigger or smaller set.
* It gives (expert) users a sense of control over the system. It is immediately clear why a document has been retrieved given a query.

## Disadvantages

* Exact matching may retrieve too few or too many documents
* Hard to translate a query into a Boolean expression
* All terms are equally weighted
* More like data retrieval than information retrieval
* Retrieval based on binary decision criteria with no notion of partial matching
* No ranking of the documents is provided (absence of a grading scale)
* Information need has to be translated into a Boolean expression, which most users find awkward
* The Boolean queries formulated by the users are most often too simplistic
* The model frequently returns either too few or too many documents in response to a user query

## Data structures and algorithms

From a pure formal mathematical point of view, the BIR is straightforward. From a practical point of view, however, several further problems should be solved that relate to algorithms and data structures, such as, for example, the choice of terms (manual or automatic selection or both), stemming, hash tables, inverted file structure, and so on.[3]

### Hash sets

Main page:  feature hashing

Another possibility is to use hash sets. Each document is represented by a hash table which contains every single term of that document. Since hash table size increases and decreases in real time with the addition and removal of terms, each document will occupy much less space in memory. However, it will have a slowdown in performance because the operations are more complex than with bit vectors. On the worst-case performance can degrade from O(n) to O(n2). On the average case, the performance slowdown will not be that much worse than bit vectors and the space usage is much more efficient.

### Signature file

Each document can be summarized by Bloom filter representing the set of words in that document, stored in a fixed-length bitstring, called a signature. The signature file contains one such superimposed code bitstring for every document in the collection. Each query can also be summarized by a Bloom filter representing the set of words in the query, stored in a bitstring of the same fixed length. The query bitstring is tested against each signature.[4][5][6]

The signature file approached is used in BitFunnel.

### Inverted file

Main page:  inverted index

An inverted index file contains two parts: a vocabulary containing all the terms used in the collection, and for each distinct term an inverted index that lists every document that mentions that term.[4][5]

## References

1. ↑ Lancaster, F.W.; Fayen, E.G. (1973), Information Retrieval On-Line, Melville Publishing Co., Los Angeles, California
2. ↑ "Information Retrieval" (in en-US). https://mitpress.mit.edu/9780262528870/information-retrieval/.
3. ↑ Wartik, Steven (1992). "Boolean operations". Information Retrieval Data Structures & Algorithms. Prentice-Hall, Inc.. ISBN 0-13-463837-9. https://www.scribd.com/doc/13742235/Information-Retrieval-Data-Structures-Algorithms-William-B-Frakes.
4. ↑ 4.0 4.1 Justin Zobel; Alistair Moffat; and Kotagiri Ramamohanarao. "Inverted Files Versus Signature Files for Text Indexing".
5. ↑ 5.0 5.1 Bob Goodwin; et al. "BitFunnel: Revisiting Signatures for Search". 2017.
6. ↑ Richard Startin. "Bit-Sliced Signatures and Bloom Filters".

* Lashkari, A.H.; Mahdavi, F.; Ghomi, V. (2009), "A Boolean Model in Information Retrieval for Search Engines", 2009 International Conference on Information Management and Engineering, pp. 385–389, doi:10.1109/ICIME.2009.101, ISBN 978-0-7695-3595-1

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Boolean model of information retrieval. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Boolean_model_of_information_retrieval&oldid=3369229"