There are 3 phases in this project.
Required Libraries Download following libraries:
- pip install flask
- pip install numpy
- pip install nltk
- pip install scipy
- pip install sklearn
- pip install Flask-Images
- pip install image
- pip --default-timeout=60 install "tensorflow-gpu>=1.19,<2"
Steps to run and deploy in localhost
- Install flask in your environment.
- Download this repo to a folder
- Navigate upto the 'app' directory
- from a console run the app.py file by the command python app.py
- Hit localhost:5000 in browser.
Main.py can be used to run the two pythons files. One is for tf-idf and other is for classification. Keep the pickle files with the main folder to get the fast results
Clone the repository : $ git clone --bare https://github.com/ruchirchugh/Data-Mining.git
References:
https://nlp.stanford.edu/IR-book/pdf/13bayes.pdf https://gist.github.com/adolfoguimaraes/91fbef8beceabafdcef2b407639290d4 https://www.geeksforgeeks.org/python-lemmatization-with-nltk/