How to use the machine learning for industrial purpose. Let’s build a spam |ham classifier program in python which can tell whether a given message is spam or ham ! Create a Flask Web-app and integrating it with Machine learning to differentiate between Ham vs Spam
Natural Language Processing (NLP) is the field of Artificial Intelligence concerned with the processing and understanding of human language. Since its inception during the 1950s, machine understanding of language has played a pivotal role in translation, topic modeling, document indexing, information retrieval, and extraction.
First install packages using pip according to the requirements.txt file from a local directory?
activate your virtualenv
run: pip install -r requirements.txt in your shell
- Ml Algorithms
- Numpy
- Pandas
- Machine Learning Algorithm
- scikit learn
- Flask
- Html
- Css
- JavaScript
- Bootstrap
- Sklearn
To run locally, it is assumed that you have python installed on your system
Development Guide
-
Create a virtual environment. virtualenv venv
-
Activate virtual environment via \venv\scripts\activate
-
Install the requirements. pip install -r requirements.txt
Get ready with all files like html css javascript
- Run the server. python manage.py runserver
Web-app creted by using flask, Html, Css ,JavaScript, Bootstrap look like - Once you enter text in the given input box and hit predict button , It predict weather the given text is ham or spam.
- Input your text
- Output
The output of this model is a flask web-app which predict the "The given message or mail is SPAM or HAM ".
Vikram singh
- Twitter: https://twitter.com/vikramvinay1
- Linkdin: https://www.linkedin.com/in/vikram-singh-ai-venture/
- Facebook: https://www.facebook.com/AIVentureO/
- Website: http://ai-venture.com/