SMS spam detection using Machine Learning 📓  

In this repo i have created a SMS Spam Detection in machine learning using NLP, and i am using nltk Library for NLP.

Motivation 🧐

  • Day by day people get a lot of sms, In those sms include are spam and helpful message. In today's runaway life we don't have enough time to recognize these sms whether it is spam or not, so i have develop a machine learning programme using kaggle dataset which will split the sms. Hope this programme are helpful for you.

How to run the project? 🤔

1). Run all command manually

  • Clone github repository in your local system git clone https://github.com/nyiel/SMS-Spam-detection-using-Machine-Learning.git
  • Move in spam-sms-detector repository cd spam-sms-detector
  • Create new virtual python environment python3 -m venv venv
  • Activate virtual python environment source venv/bin/activate
  • Install all the libraries mentioned in requirements.txt using pip install -r requirements.txt
  • Run FlaskApp file python app.py
  • Go to your browser and type http://127.0.0.1:5000/ in the address bar.
  • Hurray! That's it.

2). Run Shell Script

  • Clone github repository in your local system git clone https://github.com/nyiel/unix.git
  • Give execute permission to SMS-Spam-detection-using-Machine-Learning.sh file via chmod +x SMS-Spam-detection-using-Machine-Learning.sh
  • Run SMS-Spam-detection-using-Machine-Learning.sh file using ./SMS-Spam-detection-using-Machine-Learning.sh
  • Go to your browser and type http://127.0.0.1:5000/ in the address bar.
  • Finished...

Directory Tree 🌵

.
├── app.py
├── corpus.pkl
├── Images
│   ├── 1.png
│   ├── 2.png
│   └── 3.png
├── model_creation.py
├── nltk.txt
├── Procfile
├── README.md
├── requirements.txt
├── Spam SMS Collection
├── Spam_sms_prediction.pkl
├── static
│   ├── css
│   │   └── main.css
│   ├── icon
│   │   └── icon.ico
│   ├── js
│   │   └── global.js
│   └── vendor
│       └── jquery
│           ├── jquery.js
│           └── jquery.min.js
└── templates
    └── index.html

8 directories, 19 files

ScreenShot 📸

Connect with me! 🌐

Known on internet as Ayuen Kon Nyiel