A machine learned to predict whether the message is spam or not.
We have used the dataset which has messages in its first column and there labels weather it is spam or not.
You can find the Dataset or import data directly to google colab from folowing API:
https://storage.googleapis.com/datsets/sms.txt
Directory Structure
spam.py
Spam_Detection.ipnyb
Spam.py is an executable file with graphic user interface.
Whereas jupyter notebook contain all the steps and code to train machine.
As it takes an english sentence as input, Its a part of Natural Language Processing.
nltk is used for natural language processing
GuassianNB is used as training algorithm