#!/bin/csh -f
#############################################################################
#
# Test baseline* missing data system on Aurora Test Set A data -
#  (* baseline described in (Barker, Cooke & Ellis 2001, Proc. CRAC)
#
# Requires the environment variablea $CTKROOT & $CTK_AURORAROOT to be set.
#
#   syntax: test_md_baseline_asr NOISETYPE SNR
#
#   NOISETYPE can be 1, 2, 3, or 4 - i.e. the 4 Aurora test set A noises
#   SNR can be,  -5, 0, 5, 10, 15, 20,  or  clean
#
#  e.g to test noise type 1 utterances on the clean data set:
#        test_md_baseline_asr 1 clean
#     to test noise type 3 at 10dB SNR
#        test_md_baseline_asr 3 10
#
#############################################################################

setenv NOISETYPE $1
setenv SNR $2

if ($SNR == "clean") then
    setenv SETNAME $SNR$NOISETYPE
else
    setenv SETNAME N$NOISETYPE\_SNR$SNR
endif

# Set the RATE32_DATA_PATH which is required by the CTK script

setenv RATE32_DATA_PATH $CTK_AURORAROOT/data/rate32_d/testa/$SETNAME

# Run the CTK script using Aurora 7 mixture models
#

$CTKROOT/bin/CTKScript md_baseline_asr.ctk  -param decoder:USE_DELTAS=No $CTK_AURORAROOT/models/models.rate32_d.GI.7mix -S $CTK_AURORAROOT/flists/$NOISETYPE.flist -S $CTK_AURORAROOT/transcriptions/$NOISETYPE.trans ""

# Results are sent to stdout, and can be redirected to a file.
# To send results directly to a file replace "" with a file name.
#


