-
Notifications
You must be signed in to change notification settings - Fork 3
/
fetch_data.sh
executable file
·34 lines (27 loc) · 1.03 KB
/
fetch_data.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
#!/usr/bin/env bash
echo "Creating directories"
mkdir -p data/pol/ models/ results/ finals/ treehopper/tmp/
echo "Download training set"
curl -O http://2017.poleval.pl/task2/sentiment-treebank.tar.gz
tar -xvf sentiment-treebank.tar.gz
rm sentiment-treebank.tar.gz
echo "Download fastText word vectors for Polish"
curl -O https://s3-us-west-1.amazonaws.com/fasttext-vectors/wiki.pl.zip
mkdir -p data/pol/fasttext
unzip wiki.pl.zip
rm wiki.pl.zip
#echo "Download and build fastText from source"
#git clone https://github.com/facebookresearch/fastText.git
#make fastText
#echo "Install Python requirements"
#pip install -r requirements.txt
#pip install http://download.pytorch.org/whl/cu80/torch-0.1.12.post2-cp35-cp35m-linux_x86_64.whl
echo "Download test set"
curl -O http://mozart.ipipan.waw.pl/~axw/poleval/poleval_test.tar.gz
tar -xvf poleval_test.tar.gz
mv poleval_test test
rm poleval_test.tar.gz
echo "Download test labels"
curl -O http://mozart.ipipan.waw.pl/~axw/poleval/gold_labels
cp gold_labels test/polevaltest_labels.txt
rm gold_labels