-
Notifications
You must be signed in to change notification settings - Fork 22
/
main.sh
29 lines (22 loc) · 852 Bytes
/
main.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
# path to the project
PROJECT_PATH=/home/tcastrof/webnlg/WebNLG
# path to the machine translation system, which can be downloaded at http://data.statmt.org/wmt17_systems/
MT_PATH=/home/tcastrof/webnlg/wmt17_systems/en-de
TMP_PATH=/home/tcastrof/webnlg/tmp/
mkdir TMP_PATH
# PREPROCESSING
cd $PROJECT_PATH
python preprocess.py
# TRANSLATING
cd $MT_PATH
echo 'Translating dev templates...'
./translate-reranked.sh < $TMP_PATH/temp.dev.en > $TMP_PATH/temp.dev.de
echo 'Translating dev texts...'
./translate-reranked.sh < $TMP_PATH/text.dev.en > $TMP_PATH/text.dev.de
echo 'Translating train templates...'
./translate-reranked.sh < $TMP_PATH/temp.train.en > $TMP_PATH/temp.train.de
echo 'Translating train texts...'
./translate-reranked.sh < $TMP_PATH/text.train.en > $TMP_PATH/text.train.de
# POSTPROCESSING
cd $PROJECT_PATH
python postprocess.py