-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.sh
executable file
·42 lines (33 loc) · 934 Bytes
/
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
#!/bin/bash
# Setup repository after cloning
BASE_DIR=$(dirname $0)
# Initialize and update submodules
echo Initializing git submodules...
git submodule init && git submodule update
echo
# Setup python environment
echo Setting up python environment...
virtualenv -p python3 venv || python3 -m venv venv
venv/bin/pip install -r requirements.txt
echo
# Setup julia environment
echo Setting up julia environment...
julia --project -e "import Pkg; Pkg.instantiate()"
echo
# Make Wiki corpus
echo Downloading and building Simple Wikipedia corpus...
scripts/init_corpora.sh
echo
# Build GloVe and train a Toy Embedding
echo Building GloVe and training a toy embedding...
make -C "$BASE_DIR/GloVe"
scripts/embed.sh scripts/toy_embed.config
echo
# Evaluate annalogy performance
echo Evaluating analogy performace...
scripts/analogy.sh embeddings/vectors-C0-V20-W8-D25-R0.05-E15-S1.bin
echo
# Run tests
echo Running tests
./test
echo