-
Notifications
You must be signed in to change notification settings - Fork 27
/
install.py
executable file
·30 lines (24 loc) · 1.13 KB
/
install.py
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
#!/usr/bin/env python
import sys
import os
def install_ungrounded_parser():
os.system("git clone https://[email protected]/sivareddyg/graph-parser-data.git && cd graph-parser-data && git checkout -b temp 4778dbd")
os.system("cp -r graph-parser-data/* .")
os.system("rm -rf graph-parser-data")
os.system("ant clean")
os.system("ant build")
os.system("wget https://bitbucket.org/sivareddyg/public/downloads/easyccg_model_questions.tgz")
os.system("wget https://bitbucket.org/sivareddyg/public/downloads/easyccg_model.tgz")
os.system("tar -xvzf easyccg_model_questions.tgz -C lib_data")
os.system("tar -xvzf easyccg_model.tgz -C lib_data")
os.system("rm easyccg_model_questions.tgz")
os.system("rm easyccg_model.tgz")
def download_evaluation_data():
os.system("wget https://bitbucket.org/sivareddyg/public/downloads/tacl2014_eval_data.tgz")
os.system("tar -xvzf tacl2014_eval_data.tgz")
os.system("rm tacl2014_eval_data.tgz")
if __name__ == "__main__":
if sys.argv[1] == "ungrounded":
install_ungrounded_parser()
if sys.argv[1] == "evaluation":
download_evaluation_data()