Built a NLP based Deep-Learning model for multi-classification of question categories (what, when, who, affirmaton, unknown) and also developed a web-application using flask.
The classifier is deployed in the Heroku application with the help of gunicorn a WSGI HTTP Server for UNIX.
Open a terminal, clone the Question-analyzer repository and go into the directory using the command cd.
git clone https://github.com/sherwin7/Question-analyzer.git
cd Question-analyzerCheck python-3 is installed then install pip manager for python-3 and install virtual environment.
#Checking python is installed
python3 --version
#Installing pip manager
sudo apt install python3-pip
#Checking pip is installed for python3
pip3 --version
#Installing virtual environment
sudo pip3 install virtualenvSetting up virtual environment.
#Creating virtual environment
virtualenv -p python3 venv
#Activating the virtual environment venv
source venv/bin/activateNow we have to install all the dependencies using pip in our virtual environment from requirements.txt.
Check requirements.txt to know what are all the dependencies used.
pip3 install -r requirements.txtNow we are going to run our application in our localhost
python app.pyOpen your browser and go to localhost:5000/index we can see our application running in the localhost.
http://127.0.0.1:5000/index