Information Retrieval

Overview

An introduction to indexing and information retrieval systems, covering text processing, Boolean search, the vector space model, IR system evaluation, probabilistic search, text classification, clustering, and web crawling.

Topics

The course followed the sequence of Manning, Raghavan, and Schütze's Introduction to Information Retrieval, building a working search engine one layer at a time. Each topic below leads to a page of detailed articles on its concepts.

  1. Foundations. What retrieval systems are for, why the problem is hard, where the field came from, and how a search engine is put together.
  2. Text processing and indexing. Decoding, tokenization, stop words, normalization, stemming, and spelling correction; building and compressing the inverted index.
  3. Boolean retrieval. The Boolean model, postings intersection and skip pointers, query optimization, phrase and proximity queries, and parsing query expressions.
  4. The vector space model. Zone scoring, TF-IDF and its variants, cosine similarity, efficient scoring, term-weighting constraints, and document similarity.
  5. Evaluation. Test collections and relevance judgments, precision and recall, MAP and nDCG, assessor agreement, significance testing, and online experiments.
  6. Probabilistic retrieval. The Probability Ranking Principle, the Binary Independence Model, BM25, inference networks, and relevance feedback, compared on Cranfield.
  7. Text classification. Naive Bayes and its two event models, feature selection, micro- and macro-averaged evaluation, and vector space classifiers.
  8. Clustering. The cluster hypothesis, k-means, model-based clustering with EM, hierarchical clustering, and measures of cluster quality.
  9. Web crawling. Crawler architecture and politeness, duplicate detection, freshness, the deep web, distributed crawling, PageRank, and HITS.
  10. Topic modeling. LSI, pLSA, LDA and its inference, evaluating topics by perplexity and coherence, and later extensions.

Projects

Sentiment and Search over Goodreads Reviews

Term project with James R. Brown · GitHub repository

Using the UCSD Book Graph dataset (Wan and McAuley, 2018), we built a Python system with a PyQt6 tool that loads Goodreads data into SQLite and a pipeline that indexes 1.26 million reviews (540,135 distinct terms) for search with the Binary Independence Model. On top of the index we trained a multinomial Naive Bayes classifier to predict a review's star rating from its text. On 120,000 reviews it chose the correct rating 61% of the time, against 36% for always guessing the most common rating, and 80% of its errors were off by a single star. A K-means analysis of reviewers separated them into groups that differ mainly in review length, and the most verbose reviewers gave the lowest average ratings.

Homework: Building a Search Engine

GitHub repository

Four assignments built a search engine from the ground up, and the Goodreads project reused their code: