-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (33 loc) · 1.25 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
29
30
31
32
33
34
35
36
37
38
39
40
41
MAKE_TEMP = make_tmp
all: init charniak_parser nltk_data lib_java clean_tmp
init:
- mkdir $(MAKE_TEMP)
- mkdir data
- mkdir lib
- mkdir lib/python
- mkdir lib/java
# legonlp temp folder, used in config.py
- mkdir tmp
# require python-dev, sudo apt-get install python-dev
charniak_parser:
wget -O $(MAKE_TEMP)/charniak.tar.gz https://pypi.python.org/packages/source/b/bllipparser/bllipparser-2014.08.29b.tar.gz
cd $(MAKE_TEMP) && tar -zxvf charniak.tar.gz
cd $(MAKE_TEMP)/bllipparser-2014.08.29b/ && python setup.py install --home=$(PWD)
wget -O $(MAKE_TEMP)/biomodel.tar.gz https://www.dropbox.com/s/wq3709rfl1u0581/biomodel.tar.gz?dl=0
cd $(MAKE_TEMP) && tar -zxvf biomodel.tar.gz -C ../data/
nltk_data:
python3 -m nltk.downloader punkt -d data/nltk_data
lib_java:
wget -O $(MAKE_TEMP)/java.tar.gz https://www.dropbox.com/s/askhb386rxzckdu/java.tar.gz?dl=0
cd $(MAKE_TEMP) && tar -zxvf java.tar.gz -C ../lib/
# compile java codes, java 1.8 is required
compile:
cd components/ner/banner/banner_program && javac -cp "$(PWD)/lib/java/*:src" -d bin GeneMention.java
cd components/utils/tregex && javac -cp "$(PWD)/lib/java/*:.." -d bin tregex.java
clean_tmp:
-rm -rf $(MAKE_TEMP)/
clean:
-rm -rf data/
-rm -rf lib/
-rm -rf tmp/
-rm -rf $(MAKE_TEMP)/