-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·98 lines (93 loc) · 3.11 KB
/
Copy pathtest.sh
File metadata and controls
executable file
·98 lines (93 loc) · 3.11 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# 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 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_system)
#algorithms=(correlation chinese louvain)
#positions=(spring sfdp spectral)
algorithms=(correlation)
thresholds=(2.5 2.0)
positions=(spring)
for dir in "${dirs[@]}"
do
for algorithm in "${algorithms[@]}"
do
for threshold in "${thresholds[@]}"
do
for position in "${positions[@]}"
do
rm -rf $dir/data # this is only done here for testing, probably not necessary in system
cp -r $dir/data_original/ $dir/data/
bash -e scripts/DURel_tool_create_graph_from_data.sh $dir False median 0.0 weight $threshold $position full
bash -e scripts/DURel_tool_filter_existing_graph.sh $dir all full None None None True True weight $threshold $position full
bash -e scripts/DURel_tool_cluster_filtered_graph.sh $dir True None $algorithm None False discrete-binomial False False False 1 system weight $threshold $position full median 0.0 $threshold
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 -rf $dir/data
rm -f $dir/annotators.csv
rm -rf scripts/__pycache__
done
done
done
done
# test system pipeline 2 simple (simple example for pipeline run with minimal parameter provision)
dir=test_uug_system
thresholds=(2.5 0.5) # default 2.5
for threshold in "${thresholds[@]}"
do
rm -rf $dir/data # this is only done here for testing, probably not necessary in system
cp -r $dir/data_original/ $dir/data/ # this is only done here for testing, probably not necessary in system
bash -e scripts/DURel_tool_create_graph_from_data.sh $dir False mean 0.0 weight $threshold spring full
bash -e scripts/DURel_tool_filter_existing_graph.sh $dir all full None None None True True weight $threshold spring full
bash -e scripts/DURel_tool_cluster_filtered_graph.sh $dir True None correlation None False discrete-binomial False False False 1 system weight $threshold spring full mean 0.0
# below not needed in system, only for testing
rm -rf $dir/data_joint
rm -rf $dir/graphs
rm -rf $dir/clusters
rm -rf $dir/stats
rm -rf $dir/plots
rm -f $dir/annotators.csv
rm -rf $dir/data # this is only done here for testing, probably not necessary in system
rm -rf scripts/__pycache__
done