-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.sh
61 lines (45 loc) · 1.49 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
59
60
61
#!/usr/bin/env bash
r8_out=$HOME/data/r8
r52_out=$HOME/data/r52
ohsumed_out=$HOME/data/ohsumed/
imdb_out=$HOME/data/imdb/
mkdir -p $r8_out
mkdir -p $r52_out
mkdir -p $ohsumed_out
mkdir -p $imdb_out
current=$(pwd)
cd $r8_out
wget https://www.cs.umb.edu/~smimarog/textmining/datasets/r8-train-all-terms.txt
wget https://www.cs.umb.edu/~smimarog/textmining/datasets/r8-test-all-terms.txt
cd $r52_out
wget https://www.cs.umb.edu/~smimarog/textmining/datasets/r52-train-all-terms.txt
wget https://www.cs.umb.edu/~smimarog/textmining/datasets/r52-test-all-terms.txt
cd $ohsumed_out
wget http://disi.unitn.it/moschitti/corpora/ohsumed-all-docs.tar.gz
tar xvfz ohsumed-all-docs.tar.gz
wget http://disi.unitn.it/moschitti/corpora/ohsumed-first-20000-docs.tar.gz
tar xvfz ohsumed-first-20000-docs.tar.gz
cd $imdb_out
wget http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz
tar xvfz aclImdb_v1.tar.gz
cd $current
pip install -r requirements.txt
#conda install gxx_linux-64
cd ulmfit
unzip fastai-0.7.0.zip
cd fastai-0.7.0
python setup.py install
rm -rf fastai-0.7.0
cd $current
python -m spacy download en
# install phantomjs for plotting
# sudo npm install -g phantomjs-prebuilt
# alternative option for user:
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar xjf phantomjs-2.1.1-linux-x86_64.tar.bz2
cd phantomjs-2.1.1-linux-x86_64
export BOKEH_PHANTOMJS_PATH=$(pwd)/bin/phantomjs
export PATH=$(pwd)/bin:$PATH
cd ..
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
cd $current