forked from orenmel/context2vec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·34 lines (29 loc) · 1.09 KB
/
start.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
#run inside the docker nvidia-docker run --name context2vec-gpu -it -p 8888:8888 -v /home/ql261/simp2trad/:/home/simp2trad/ chainer/chainer:v4.0.0-python2-lqc /bin/bash
#install optional
# sudo apt-get update
# sudo apt-get upgrade
# sudo apt-get install git
git config --global user.email "[email protected]"
git config --global user.name "qianchu"
# set up bash shell
# pack python project
cd /home/incontext_lexsub/models/context2vec
sudo python setup.py install
sudo pip install -U scipy
sudo pip install -U scikit-learn
sudo pip install matplotlib
sudo pip install nltk
# run jupyter
cd /home/
sudo chmod -R 777 ./*
cd /home/incontext_lexsub
# sudo python -m pip install --upgrade pip
# sudo python -m pip install jupyter
# sudo python -m pip install pandas
if [ ! -d '/home/ql261/.jupyter/' ]; then
sudo mkdir /home/ql261/.jupyter/
fi
sudo cp /home/incontext_lexsub/models/context2vec/jupyter_notebook_config.py /home/ql261/.jupyter/
for pid in $(ps -def | grep jupyter | awk '{print $2}'); do sudo kill -9 $pid; done
export SHELL=/bin/bash
jupyter notebook --ip '*' --port=8884 --allow-root &