-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
executable file
·58 lines (45 loc) · 1.29 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
yes | apt upgrade
yes | apt update
yes | apt-get install make
yes | apt install wget
yes | apt install curl
yes | apt install git
yes | apt install less
yes | apt install nano
yes | apt install unzip
yes | apt install gawk
yes | apt install libxml2-utils
yes | apt-get install xmlstarlet
yes | apt-get gzip
yes | apt-get install -y default-jdk && apt-get autoclean -y
# Install Pip requirements
pip install -r requirements.txt
#--------------------------------------------------------------------------------
# Setup abbreviation detector
#--------------------------------------------------------------------------------
#Ab3P: https://github.com/ncbi-nlp/Ab3P
mkdir -p abbreviation_detector
cd abbreviation_detector/
#Get repositories
wget https://github.com/ncbi-nlp/Ab3P/archive/refs/heads/master.zip
unzip master.zip
mv Ab3P-master Ab3P
rm master.zip
wget https://github.com/ncbi-nlp/NCBITextLib/archive/refs/heads/master.zip
unzip master.zip
mv NCBITextLib-master NCBITextLib
rm master.zip
#Install
yes | apt-get install g++
# 1. Install NCBITextLib
cd NCBITextLib/lib/
make
cd ../../
## 2. Install Ab3P
cd Ab3P
sed -i "s#\*\* location of NCBITextLib \*\*#../NCBITextLib#" Makefile
sed -i "s#\*\* location of NCBITextLib \*\*#../../NCBITextLib#" lib/Makefile
make
cd ../
cd ../