This repository has been archived by the owner on Oct 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtreebanks_to_compare.sh
57 lines (52 loc) · 2.08 KB
/
treebanks_to_compare.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env bash
prefix="$HOME/ud-treebanks-v2.5/"
for languages in UD_Arabic UD_Czech UD_German UD_English UD_Spanish; do
for treebank in `echo $prefix``echo $languages`-*; do
if ! [[ ${treebank:${#treebank}-3} == "PUD" ]]; then
if ! [[ ${treebank:${#treebank}-7} == "GSDSimp" ]]; then
python3 scripts/compare_treebank_bool.py `echo $treebank`/stats.xml >> treebanks_to_compare;
fi;
fi;
done;
echo "" >> treebanks_to_compare;
done;
for languages in UD_Estonian UD_Finnish UD_French UD_Galician UD_Ancient_Greek; do
for treebank in `echo $prefix``echo $languages`-*; do
if ! [[ ${treebank:${#treebank}-3} == "PUD" ]]; then
if ! [[ ${treebank:${#treebank}-7} == "GSDSimp" ]]; then
python3 scripts/compare_treebank_bool.py `echo $treebank`/stats.xml >> treebanks_to_compare;
fi;
fi;
done;
echo "" >> treebanks_to_compare;
done;
for languages in UD_Mbya_Guarani UD_Italian UD_Japanese UD_Korean UD_Komi_Zyrian UD_Latin UD_Lithuanian; do
for treebank in `echo $prefix``echo $languages`-*; do
if ! [[ ${treebank:${#treebank}-3} == "PUD" ]]; then
if ! [[ ${treebank:${#treebank}-7} == "GSDSimp" ]]; then
python3 scripts/compare_treebank_bool.py `echo $treebank`/stats.xml >> treebanks_to_compare;
fi;
fi;
done;
echo "" >> treebanks_to_compare;
done;
for languages in UD_Dutch UD_Norwegian UD_Old_Russian UD_Polish UD_Portuguese; do
for treebank in `echo $prefix``echo $languages`-*; do
if ! [[ ${treebank:${#treebank}-3} == "PUD" ]]; then
if ! [[ ${treebank:${#treebank}-7} == "GSDSimp" ]]; then
python3 scripts/compare_treebank_bool.py `echo $treebank`/stats.xml >> treebanks_to_compare;
fi;
fi;
done;
echo "" >> treebanks_to_compare;
done;
for languages in UD_Romanian UD_Russian UD_Slovenian UD_Swedish UD_Turkish UD_Chinese; do
for treebank in `echo $prefix``echo $languages`-*; do
if ! [[ ${treebank:${#treebank}-3} == "PUD" ]]; then
if ! [[ ${treebank:${#treebank}-7} == "GSDSimp" ]]; then
python3 scripts/compare_treebank_bool.py `echo $treebank`/stats.xml >> treebanks_to_compare;
fi;
fi;
done;
echo "" >> treebanks_to_compare;
done;