forked from ad-freiburg/aqqu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (24 loc) · 1.36 KB
/
Makefile
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
VIRTUOSO_BINARY = virtuoso-opensource/virtuoso/install/bin/virtuoso-t
HOST = elba.informatik.uni-freiburg.de
URL_PREFIX = freebase-qa/data
download-data:
echo "Downloading data dependencies."
mkdir lib
echo "Downloading stanford parser..."
cd lib; wget "http://nlp.stanford.edu/software/stanford-corenlp-full-2015-01-29.zip"; unzip stanford-corenlp-full-2015-01-29.zip; rm stanford-corenlp-full-2015-01-29.zip
cd lib/stanford-corenlp-full-2015-01-29; wget "http://nlp.stanford.edu/software/stanford-corenlp-caseless-2014-02-25-models.jar"
echo "Downloading and extracting Aqqu data..."
mkdir -p data/learning_cache; mkdir -p data/model-dir; cd data; wget "http://$(HOST)/$(URL_PREFIX)/data.tar.gz"; tar xvfz data.tar.gz
echo "Downloading and extracting virtuoso index of Freebase..."
wget "http://$(HOST)/$(URL_PREFIX)/virtuoso.tar.gz"; tar xvfz virtuoso.tar.gz
install-virtuoso:
@echo "Installing virtuoso. Make sure you have all prerequisites installed (bison, flex etc.)."
git clone https://github.com/openlink/virtuoso-opensource.git
cd virtuoso-opensource; git checkout stable/7; ./autogen.sh
cd virtuoso-opensource; ./configure --prefix=$$(pwd)/virtuoso/install
cd virtuoso-opensource; make -j; make install
@echo "Installation finished."
start-parser:
cd corenlp-frontend; ant dist; ant run
start-virtuoso:
$(VIRTUOSO_BINARY) -f +configfile virtuoso-db/virtuoso.ini