-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.sh
executable file
·82 lines (77 loc) · 1.78 KB
/
test.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# test pipeline
bash -e scripts/run_uug.sh
dir=test_uug
rm -rf $dir/data_joint
rm -rf $dir/graphs
rm -rf $dir/graphs_full
rm -rf $dir/graphs1
rm -rf $dir/clusters
rm -rf $dir/stats
rm -rf $dir/plots
rm -f $dir/annotators.csv
rm -rf scripts/__pycache__
bash -e scripts/run_usg.sh
dir=test_usg
rm -rf $dir/data_joint
rm -rf $dir/graphs
rm -rf $dir/graphs_full
rm -rf $dir/graphs1
rm -rf $dir/clusters
rm -rf $dir/stats
rm -rf $dir/plots
rm -f $dir/annotators.csv
rm -rf scripts/__pycache__
# test system pipeline
dir=test_uug
bash -e scripts/run_system.sh $dir
rm -rf $dir/plots
#exit 0
# test system pipeline for word with non-complete judgment domain (no judgments of 1)
dir=test_uug1
bash -e scripts/run_system.sh $dir
rm -rf $dir/plots
# test pipeline 2
bash -e scripts/run_uug2.sh
dir=test_uug
rm -rf $dir/data_joint
rm -rf $dir/graphs
rm -rf $dir/graphs_full
rm -rf $dir/graphs1
rm -rf $dir/clusters
rm -rf $dir/stats
rm -rf $dir/plots
rm -f $dir/annotators.csv
rm -rf scripts/__pycache__
# test system pipeline 2
dirs=(test_uug test_uug1)
#algorithms=(correlation chinese louvain)
#positions=(spring sfdp spectral)
algorithms=(correlation)
thresholds=(2.5 2.0)
positions=(spring)
parameterfiles=(scripts/parameters_system2.sh)
for dir in "${dirs[@]}"
do
for algorithm in "${algorithms[@]}"
do
for threshold in "${thresholds[@]}"
do
for position in "${positions[@]}"
do
for parameterfile in "${parameterfiles[@]}"
do
bash -e scripts/run_system2.sh $dir $algorithm $threshold $position $parameterfile
rm -rf $dir/data_joint
rm -rf $dir/graphs
rm -rf $dir/graphs_full
rm -rf $dir/graphs1
rm -rf $dir/clusters
rm -rf $dir/stats
rm -rf $dir/plots
rm -f $dir/annotators.csv
rm -rf scripts/__pycache__
done
done
done
done
done