Follow the instructions found here.
pyenv install 3.9.10
pyenv global 3.9.10
curl -sSL https://install.python-poetry.org | python3 - --version 1.2.0a2
Inside the top level directory of the project run:
poetry install
poetry shell
mkdir -p files
wget https://rajpurkar.github.io/SQuAD-explorer/dataset/dev-v2.0.json -P files/
squad create-datasets files/dev-v2.0.json
squad train --learning-rate 0.00005 --batch-size 2 --accu-grads 32
squad predict dev files/dev_predictions.json
squad predict test files/test_predictions.json
python squad/evaluation.py files/dev_original_format.json files/dev_predictions.json
python squad/evaluation.py files/test_original_format.json files/test_predictions.json
uwsgi --http :8080 --wsgi-file squad/web.py --callable app
streamlit run squad/streamlit_client.py