-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathinit.sh
22 lines (18 loc) · 1.26 KB
/
init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
mkdir models
mkdir data
echo "created models and data folder"
tar -xvzf kdd_datasets.tar.gz
excho "untared the dataset provided in the \"Deep Graph Kernels\" paper by Pinar Yanardag and SVN Vishwanathan"
pip uninstall gensim
echo "removed existing gensim - if needed, pls re-install using \"pip install -U gensim\""
pip install gensim==0.12.4
echo "installed gensim version 0.12.4 - the version used for experiments in our MLG 2016 paper"
mv src_code/Annaword2vec.py /usr/local/lib/python2.7/dist-packages/gensim/models/Annaword2vec.py #contain code for accessing radial skipgram through word2vec api
mv src_code/mod_word2vec_inner.so /usr/local/lib/python2.7/dist-packages/gensim/models/mod_word2vec_inner.so
echo "moved Annaword2vec.py and mod_word2vec_inner.so (containing code for radial skip-gram) to /usr/local/lib/python2.7/dist-packages/gensim/models"
cd /usr/local/lib/python2.7/dist-packages/gensim/models/
mv word2vec_inner.so org_word2vec_inner.so
echo "renamed the word2vec_inner.so at /usr/local/lib/python2.7/dist-packages/gensim/models to org_word2vec_inner.so"
ln -s mod_word2vec_inner.so word2vec_inner.so
echo "created softlink to mod_word2vec_inner.so at /usr/local/lib/python2.7/dist-packages/gensim/models - here onwards, word2vec will use \"radial skipgram\""
cd -