-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup_env.sh
executable file
·25 lines (18 loc) · 760 Bytes
/
setup_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -x
echo "=======Creating virtual env========="
python3 -m virtualenv .venv_allennlp-models-structured-prediction
source .venv_allennlp-models-structured-prediction/bin/activate
echo "=======Install test requirements======="
pip install -r test_requirements.txt
echo "=======Install doc requirements======="
pip install -r doc_requirements.txt
echo "=======Install core requirements======"
pip install -r core_requirements.txt
# This is temporary code to handle nltk error.
python3 resolve_nltk_err.py
echo "========Create log dir for single runs========="
mkdir -p logs
echo "=======Login to wandb (optional)==============="
wandb init
echo "Do 'source .venv_allennlp-models-structured-prediction/bin/activate' to load the enviroment."