The code (and the data journey) is all included in the ipython notebook titled "sms spam". Functions are also contained in sms_spam.py.

pip install -r requirements.txt to make sure that all necessary packages are installed