for nlp project
-
Install python >=3.9
-
Google Chrome (latest version)
-
Install latest git version
- Create a folder in computer to storage the project file and open a terminal in this folder:
git clone https://github.com/dtepp/PLP
cd PLP
python -m venv venv
venv\Scripts\activate(windows) OR: source venv/bin/activate(mac)
pip install -r requirements.txt
-
First, please download the T5 model checkpoints file called Step-5623_checkpoint_lang_pred.pt from Google Drive: https://drive.google.com/file/d/1-YtgsZxxbGnh1SHnd21aKxH8_voCC2LH/view?usp=sharing
-
Place the file in the same directory as app.py
-
If you face below error:
please runset PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
in your terminal for current venv environment
-
First, please download the Bert model checkpoints file called pytorch_model.bin from Google Drive: https://drive.google.com/file/d/1-cYurHnp3mIJyCYuNhDHfXXhfwzsmp0V/view?usp=sharing
-
Place the file in the same directory as app.py
Go to URL using web browser**http://127.0.0.1:5000 Or: Directly click the link on the frontend terminal