Use Watson Natural Language Classifier to predict spam.

The training dataset: The SMS Spam Collection v.1 is a public set of SMS labeled messages that have been collected for mobile phone spam research. It has one collection composed by 5,574 English, real and non-encoded messages, tagged according being legitimate (ham) or spam. More information can be found here. More information can be found here.

Get the code in GitHub or view the docs.