-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathinstall_dependencies.sh
executable file
·51 lines (44 loc) · 1.54 KB
/
install_dependencies.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
#!/bin/bash
#set -o xtrace
export ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
INSTALL_TURBO_PARSER=1
INSTALL_NLTK=0
INSTALL_SKLEARN=0
INSTALL_AOT_PARSER=0 # Russian parser
#===============================================================================
# INSTALL TURBO PARSER
if [ "${INSTALL_TURBO_PARSER}" == "1" ] ; then
mkdir -p tools
cd tools
wget http://www.cs.cmu.edu/~afm/TurboParser/TurboParser-2.1.0.tar.gz
tar -zxvf TurboParser-2.1.0.tar.gz
cd tools/TurboParser-2.1.0
mkdir -p models/english_proj
cd models/english_proj
wget https://www.ark.cs.cmu.edu/TurboParser/sample_models/english_proj_tagger.tar.gz
tar -zxvf english_proj_tagger.tar.gz
wget https://www.ark.cs.cmu.edu/TurboParser/sample_models/english_proj_parser.tar.gz
tar -zxvf english_proj_parser.tar.gz
rm english_proj_tagger.tar.gz english_proj_parser.tar.gz
cd -
./install_deps.sh
./configure && make && make install
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:`pwd;`/deps/local/lib:"
cd ../../
fi
#===============================================================================
# INSTALL NLTK
if [ "${INSTALL_NLTK}" == "1" ] ; then
# Install Pip:
sudo easy_install pip
# Install Numpy
sudo pip install -U numpy
# Install PyYAML and NLTK
sudo pip install -U pyyaml nltk
fi
#===============================================================================
# INSTALL_SKLEARN
if [ "${INSTALL_SKLEARN}" == "1" ] ; then
sudo pip install scikit-learn
fi
#===============================================================================