-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
45 lines (31 loc) · 962 Bytes
/
setup.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# Usage:
# sh setup.sh
PROJECT_NAME="Eval_Multi-Step_Reasoning"
DIR_EVAL_BASELINES="base_eval_models"
# prepare project
mkdir -p ../${DIR_EVAL_BASELINES}
cd ../${DIR_EVAL_BASELINES}
# prepare baseline models for calculation of evaluation scores
pip install --upgrade pip # ensures that pip is current
git clone https://github.com/google-research/bleurt.git
cd bleurt
pip install .
cd ..
git clone https://github.com/neulab/BARTScore.git
cd BARTScore
wget https://dl.fbaipublicfiles.com/parlai/projects/roscoe/fine_tuned_bartscore.pth
cd ..
# mv fine_tuned_bartscore.pth BARTScore/
git clone https://github.com/thompsonb/prism
cd prism
wget http://data.statmt.org/prism/m39v1.tar
tar xf m39v1.tar
export MODEL_DIR=m39v1/
cd ..
pip install nltk
python -c "import nltk; nltk.download('punkt')"
python -c "import nltk; nltk.download('stopwords')"
# enter the folder of our project
cd ../${PROJECT_NAME}
pip install -r requirements.txt