This is a flask app that predicts whether a text message is "Spam" or not spam("Ham").
Text pre-processing was performed by removing stop words from the data and Stemming was performed. Bag of Words was used to convert the words into vectors. Multinomial Naïve Bayes was used for model building after testing with other classification algorithms. Model was evaluated using accuracy score, confusion metrics and classification report. Model gave an accuracy of 98.5% on the test data and the number of False positives and False negatives were also very less. We can say that the model performed really well.
The Code is written in Python 3.7.3 If you don't have Python installed you can find it here. If you are using a lower version of Python you can upgrade using the pip package, ensuring you have the latest version of pip. To install the required packages and libraries, run this command in the project directory after cloning the repository:
conda create -n myenv python=3.7
conda activate myenv
pip install -r requirements.txt
python app.py
Login or sign up in order to create virtual app and many more things. Free tier account on Google console provides $300 credit for one year. For application deployment download the Google SDK installer.
https://spamclassifier-sm.el.r.appspot.com
Currently app disabled,since GCP is chargeable.
- Deploying the Web Application on Cloud.
- AWS EC2 Instance
- Azure
- Heroku