-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun1.sh
32 lines (27 loc) · 1.15 KB
/
run1.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
#!/usr/bin/env bash
set -ex
if [ ! -d "./data/meli-challenge-2019/" ]
then
mkdir -p ./data
echo >&2 "Downloading Meli Challenge Dataset"
curl -L https://cs.famaf.unc.edu.ar/\~ccardellino/resources/diplodatos/meli-challenge-2019.tar.bz2 -o ./data/meli-challenge-2019.tar.bz2
tar jxvf ./data/meli-challenge-2019.tar.bz2 -C ./data/
fi
if [ ! -f "./data/SBW-vectors-300-min5.txt.gz" ]
then
mkdir -p ./data
echo >&2 "Downloading SBWCE"
curl -L https://cs.famaf.unc.edu.ar/\~ccardellino/resources/diplodatos/SBW-vectors-300-min5.txt.gz -o ./data/SBW-vectors-300-min5.txt.gz
fi
# Be sure the correct nvcc is in the path with the correct pytorch installation
export CUDA_HOME=/opt/cuda/10.1
export PATH=$CUDA_HOME/bin:$PATH
export CUDA_VISIBLE_DEVICES=0
python -m experiment.mlp \
--train-data ./data/meli-challenge-2019/spanish.train.jsonl.gz \
--token-to-index ./data/meli-challenge-2019/spanish_token_to_index.json.gz \
--pretrained-embeddings ./data/SBW-vectors-300-min5.txt.gz \
--language spanish \
--hidden-layers 256 128 \
--validation-data ./data/meli-challenge-2019/spanish.validation.jsonl.gz \
--dropout 0.35