-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpreprocess_mlqepe.sh
36 lines (32 loc) · 1.17 KB
/
preprocess_mlqepe.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
for lp in "en-de" "en-zh" "et-en" "ne-en" "ro-en" "ru-en" "si-en"
do
tar -zxvf mlqe-pe/data/direct-assessments/train/${lp}-train.tar.gz -C mlqe-pe/data/direct-assessments/train/
tar -zxvf mlqe-pe/data/direct-assessments/dev/${lp}-dev.tar.gz -C mlqe-pe/data/direct-assessments/dev/
tar -zxvf mlqe-pe/data/direct-assessments/test/${lp}-test.tar.gz -C mlqe-pe/data/direct-assessments/test/
done
for lp in "en-de" "en-zh" "et-en" "ne-en" "ro-en" "ru-en" "si-en"
do
tar -zxvf mlqe-pe/data/post-editing/train/${lp}-train.tar.gz -C mlqe-pe/data/post-editing/train/
tar -zxvf mlqe-pe/data/post-editing/dev/${lp}-dev.tar.gz -C mlqe-pe/data/post-editing/dev/
tar -zxvf mlqe-pe/data/post-editing/test/${lp}-test.tar.gz -C mlqe-pe/data/post-editing/test/
done
# cd mlqe-pe/data/direct-assessments/train
# cat *.tar.gz | tar -zxvf - -i
# rm *.tar.gz
# cd ../test
# cat *.tar.gz | tar -zxvf - -i
# rm *.tar.gz
# cd ../dev
# cat *.tar.gz | tar -zxvf - -i
# rm *.tar.gz
# cd ../../../..
# cd mlqe-pe/data/post-editing/train
# cat *.tar.gz | tar -zxvf - -i
# rm *.tar.gz
# cd ../test
# cat *.tar.gz | tar -zxvf - -i
# rm *.tar.gz
# cd ../dev
# cat *.tar.gz | tar -zxvf - -i
# rm *.tar.gz
# cd ../../../..