Study Vault Search notes, aliases and full text
Graph
ConceptDBISProofread

Vector Space Model

Also VSM

In the vector space model each document is a vector of term scores (a column of the term-document matrix A) and a query is a 0/1 term vector q, so the relevance scores of all documents are the dot products q^T A.

Documents are represented as vectors. A vector describes what words appear how often in a given document (like term frequencies)

  • words are terms
  • term-document matrix: All vectors side by side

Retrieval#

  • represent the query as vector
  • measure relevancy of each document to the query by taking the dot product
    • This again corresponse to the term frequencies from Lecture 2 Slide 10
    • This can be done for each document with one matrix multiplication

Another method to measure relevancy is using the cos-similarity. This essentially normalizes for the length, the dot product measures the “alignment”.

Effiecient storing#

In reality, most of the entries will be 00. Therefor a good model to store the matix is with “sparce matrices”

-> Store the non-zero entries together with its location

Example#

Search

Type In
↑ ↓ move ↵ open ⇥ next section Ctrl↵ results page Prefix # to search text only