forked from aclew/launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheval.sh
executable file
·52 lines (46 loc) · 1.22 KB
/
eval.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
#!/bin/bash
# Since the script is built to be launched outside of the vm, source
# the .bashrc which is not necessarily sourced!
source ~/.bashrc
# Absolute path to this script. /home/user/bin/foo.sh
SCRIPT=$(readlink -f $0)
# Absolute path this script is in. /home/user/bin
BASEDIR=`dirname $SCRIPT`
display_usage() {
echo "Usage: eval.sh <data> <system> <<optionalSAD>>"
echo "where data is the folder containing the data"
echo "and system is the system you want"
echo "to evaluate. Choices are:"
echo " ldc_sad"
echo " noisemes"
echo " tocombosad"
echo " opensmile"
echo " diartk"
echo " yunitate"
echo " yuniseg"
echo "If evaluating diartk or yuniseg, please give which flavour"
echo "of SAD you used to produce the transcription"
echo "you want to evaluate"
exit 1
}
if [ $# -lt 2 ] ; then
display_usage
fi
# switch eval depending on system
audio_dir=$1
system=$2
case $system in
"tocombosad"|"opensmile"|"ldc_sad"|"noisemes")
sh $BASEDIR/evalSAD.sh $audio_dir $system
;;
"yunitate"|"lena")
sh $BASEDIR/evalDiar.sh $audio_dir $system
;;
"diartk"|"yuniseg")
sad=$3
sh $BASEDIR/evalDiar.sh $audio_dir $system $sad
;;
*)
display_usage
;;
esac