A demo project to train a BERT model for sentiment analysis of restaurants. We are using Flask-Admin for this project.
- Web interface form restaurant reviews
- Sample code to train BERT
- Sample code to scrap reviews.
Download the code
$ git clone [email protected]:AIListMaster/TrueCount.git
$ cd TrueCount
Install modules via
VENV
$ virtualenv env
$ source env/bin/activate
$ pip3 install -r requirements.txt
Set Up Flask Environment
$ export FLASK_APP=run.py
$ export FLASK_ENV=development
Start the app
$ flask run
At this point, the app runs at http://127.0.0.1:5000/
.