- Clone the repository in your system.
- Download the model file from https://drive.google.com/file/d/1ufI--4I1to0PtsFB0gcwygDTnNjYXIBk/view?usp=share_link and unzip it in /bert directory.
- Install and create a virtual environment by the following step. You'll need python <= 3.6 to set it up.
sudo apt install virtualenv
virtualenv venv --python=python3.6
source venv/bin/activate
- Install the dependencies from requirement.txt file (it will install all the required packages)
pip install -r requirement.txt
- Run the flask app by the following command (by default the app is running on port 5000)
python main_app.py
-
You can access the Bert QNA at http://127.0.0.1:5000/
-
We have also included API to enable access of the QnA from third-party application. You can make call to http://127.0.0.1:5000/submitted_api with paragraph and questions from HTML form.
If you have any other questions or face issues in setting the demo up then kindly reach out to us at [email protected]
For all your Natural Language Processing (NLP) requirements, we are here to help you. Email us your requirement at [email protected] and don't forget to check out more interesting NLP services we are offering.