please follow this link to: http://nlp.stanford.edu/IR-book/