-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·29 lines (23 loc) · 763 Bytes
/
setup.sh
File metadata and controls
executable file
·29 lines (23 loc) · 763 Bytes
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
#!/bin/bash
#echo 'Installing python dependencies..'
#pip install -r requirements.txt
#python -m spacy download en
#python -m spacy download en_core_web_sm
echo 'Installing NLG-EVAL package..'
cd code/
git clone https://github.com/Maluuba/nlg-eval.git
cd nlg-eval/
python setup.py install
cd ../../
echo 'Zipping data files under data/'
# Unzipping data file
cd data/
unzip ./data.zip
cd ../
# download glove file
echo 'Downloading word2vec (i.e. Glove) embeddings..'
W2V_DIR=./data/word2vec/
mkdir -p ${W2V_DIR}
wget -N http://nlp.stanford.edu/data/wordvecs/glove.840B.300d.zip -P ${W2V_DIR}
unzip ${W2V_DIR}/glove.840B.300d.zip -d ${W2V_DIR}/
python -m gensim.scripts.glove2word2vec -i ${W2V_DIR}/glove.840B.300d.txt -o ${W2V_DIR}/glove.840B.300d.w2v.txt