comparison experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh @ 223:712d29a17d67

- Delete the hmmdefs if they're already there.
author tomwalters
date Tue, 14 Sep 2010 01:40:37 +0000
parents 63d3cdf1aff2
children a4dd813b9b6a
comparison
equal deleted inserted replaced
222:203456631e30 223:712d29a17d67
59 59
60 echo "Generating HMM definitions..." 60 echo "Generating HMM definitions..."
61 # Now take the prototype file from hmm0, and create the other HMM definitions 61 # Now take the prototype file from hmm0, and create the other HMM definitions
62 # from it 62 # from it
63 grep -A 9999 "<BEGINHMM>" $WORKING_DIRECTORY/$hmm_type/hmm0/$HMMPROTO > $WORKING_DIRECTORY/$hmm_type/hmm0/hmms 63 grep -A 9999 "<BEGINHMM>" $WORKING_DIRECTORY/$hmm_type/hmm0/$HMMPROTO > $WORKING_DIRECTORY/$hmm_type/hmm0/hmms
64 if [ -e $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs ]; then
65 rm $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs
66 done
64 for syllable in $(cat $WORKING_DIRECTORY/$SYLLIST_COMPLETE); do 67 for syllable in $(cat $WORKING_DIRECTORY/$SYLLIST_COMPLETE); do
65 echo "~h $syllable" >> $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs 68 echo "~h $syllable" >> $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs
66 cat $WORKING_DIRECTORY/$hmm_type/hmm0/hmms >> $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs 69 cat $WORKING_DIRECTORY/$hmm_type/hmm0/hmms >> $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs
67 done 70 done
68 71