forked from BUTSpeechFIT/VBx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscore.sh
More file actions
executable file
·25 lines (23 loc) · 904 Bytes
/
score.sh
File metadata and controls
executable file
·25 lines (23 loc) · 904 Bytes
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
CDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
for audio in $(ls /home/liaozty20/amicorpus)
do
filename=$(echo "${audio}" | cut -f 1 -d '.')
echo "Scoring Starts: "${filename}""
# check if there is ground truth .rttm file
REFDIR=/home/liaozty20/AMI-diarization-setup/only_words/rttms/test/${filename}.rttm
SYSDIR=/home/liaozty20/VBx/ami_exp/${filename}.rttm
if [ -f $REFDIR ]
then
# run dscore
# forgiving
echo "Forgiving mode for ${filename}"
python dscore/score.py -r $REFDIR -s $SYSDIR --collar 0.25 --ignore_overlaps
# fair
echo "Fair mode for ${filename}"
python dscore/score.py -r $REFDIR -s $SYSDIR --collar 0.25
# full
echo "Full mode for ${filename}"
python dscore/score.py -r $REFDIR -s $SYSDIR --collar 0.0
fi
echo "Scoring Ends: "${filename}""
done