This code implements Vector Space Model for information retrieval.
NLTK
import nltk
packages = ['punkt', 'stopwords']
nltk.download(packages)
Natural Language Processing - Dan Jurafsky, Christopher Manning
Search query >> drone
Score: filename
1.0: parrot_AR_drone.txt
1.0: mq-9_reaper.txt
- Robot Toy Dataset (excerpts copied from Wikipedia)
While writing this code I took help from Michael Nielsen's code