-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup_all.sh
executable file
·40 lines (37 loc) · 1.11 KB
/
setup_all.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
#!/bin/bash
echo "Downloading necessary libraries for Python ..."
pip install numpy
pip install scikit-learn
pip install tensorflow
pip install tensorflow_hub
pip install pickle-mixin
pip install pathlib
pip install nltk
pip install keras
pip install gensim
pip install Flask
pip install lxml
pip install requests
read -p "Do you want to download word embedding files? (y|n): " download_flag
declare -i flag=$(echo $download_flag | tr -s '[:upper:]' '[:lower:]')
if [ "$flag" = "y" ]
then
echo "Downloading Word Embedding"
echo "=== AmazonWE ==="
wget "http://sentic.net/AmazonWE.zip"
echo "=== GoogleNews ==="
wget "https://drive.google.com/file/d/0B7XkCwpI5KDYNlNUTTlSS21pQmM/edit?usp=sharing"
echo "=== Glove 6B ==="
wget "http://nlp.stanford.edu/data/glove.6B.zip"
echo "=== Glove 840B ==="
wget "http://nlp.stanford.edu/data/glove.840B.300d.zip"
echo "=== Fasttext Wikipedia ==="
wget "https://dl.fbaipublicfiles.com/fasttext/vectors-english/crawl-300d-2M.vec.zip"
fi
echo "Installing NPM related modules..."
npm install express
npm install socket.io
npm install http
npm install path
npm install python-shell
npm init