comparison experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh @ 202:bc36ab69fcf7

- AWS
author tomwalters
date Thu, 12 Aug 2010 15:26:35 +0000
parents 91a548bfd082
children dd3dd0bd9e38
comparison
equal deleted inserted replaced
201:91a548bfd082 202:bc36ab69fcf7
21 21
22 # Filenames used here 22 # Filenames used here
23 TRAIN_SCRIPT=training_script 23 TRAIN_SCRIPT=training_script
24 TEST_SCRIPT=testing_script 24 TEST_SCRIPT=testing_script
25 SYLLIST_COMPLETE=syllable_list_with_silence 25 SYLLIST_COMPLETE=syllable_list_with_silence
26 TRAIN_MLF=training_master_label_file
27 TEST_MLF=testing_master_label_file 26 TEST_MLF=testing_master_label_file
28 27
29 DICT=dictionary 28 DICT=dictionary
30 WDNET=word_network 29 WDNET=word_network
31 30
32 SILENCE=sil 31 SILENCE=sil
33 32
34 THIS_DIR=`dirname $0` 33 THIS_DIR=`dirname $0`
35 34
36 hmm_type=${total_hmm_states}_states_${mixture_components}_mixture_components 35 hmm_type=${total_hmm_states}_states_${mixture_components}_mixture_components
37 echo "HMM type: $hmm_type" 36 echo "HMM type: ${hmm_type}..."
37
38 if [ -e $WORKING_DIRECTORY/.hmm_success ]; then
39 echo " already done"
40 return 0
41 fi
42
38 mkdir -p $WORKING_DIRECTORY/$hmm_type 43 mkdir -p $WORKING_DIRECTORY/$hmm_type
39 44
40 echo "Creating HMM structure..." 45 echo "Creating HMM structure..."
41 $THIS_DIR/gen_hmmproto.py --input_size ${input_vector_size} --total_hmm_states ${total_hmm_states} --feature_type ${feature_code} > $WORKING_DIRECTORY/$hmm_type/$HMMPROTO 46 $THIS_DIR/gen_hmmproto.py --input_size ${input_vector_size} --total_hmm_states ${total_hmm_states} --feature_type ${feature_code} > $WORKING_DIRECTORY/$hmm_type/$HMMPROTO
42 47