Ed Hancock: I really should have added this in a better way thanks for pointing it out. The module is not a standard python library, you need to have the file from my repository in the same location of your code. Following is the note I have added in the article. Feel free to click on the following links to get the file.

IMPORTANT NOTE: A lot of you have messaged me about not being able to load the contractions module. It’s not a standard python module. We leverage a standard set of contractions available in the contractions.py file in my repository.Please add it in the same directory you run your code from, else it will not work.

Data Science Lead @Applied4Tech, @Google Developer Expert — Machine Learning, Author, Consultant, AI Advisor @Springboard, Connect: http://bit.ly/djs_linkedin

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store