Toy Python program illustrating the vector space model of documents
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
documents Refactoring and bug fixes. Jul 7, 2011
.gitignore First commit. Jul 7, 2011
README.md Refactoring, and added README.md Jul 7, 2011
vsm.py Refactoring. Jul 7, 2011

README.md

The vector space model for documents

The program vsm.py implements a toy search engine to illustrate the vector space model for documents.

The program asks you to enter a search query, and then returns all documents matching the query, in decreasing order of cosine similarity, according to the vector space model.

The document corpus consists of just four documents, which are product descriptions of popular books, taken from Amazon.com.