Weighting words using Tf-Idf

Updates 29-Apr-2018 – Added string instance check Python 2.7, Python3.6 compatibility (Thanks Greg) If I ask you “Do you remember the article about electrons in NY Times?” there’s a better chance you will remember it than if I asked you “Do you remember the article about electrons in the Physics books?”. Here’s why: an article […]