Mercurial > hg > aimc
changeset 393:403f7c8f797b
- Delete the hmmdefs if they're already there.
author | tomwalters |
---|---|
date | Tue, 14 Sep 2010 01:40:37 +0000 |
parents | 54f8691e271a |
children | 8108c710a77c |
files | trunk/experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh Tue Sep 14 01:30:44 2010 +0000 +++ b/trunk/experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh Tue Sep 14 01:40:37 2010 +0000 @@ -61,6 +61,9 @@ # Now take the prototype file from hmm0, and create the other HMM definitions # from it grep -A 9999 "<BEGINHMM>" $WORKING_DIRECTORY/$hmm_type/hmm0/$HMMPROTO > $WORKING_DIRECTORY/$hmm_type/hmm0/hmms +if [ -e $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs ]; then + rm $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs +done for syllable in $(cat $WORKING_DIRECTORY/$SYLLIST_COMPLETE); do echo "~h $syllable" >> $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs cat $WORKING_DIRECTORY/$hmm_type/hmm0/hmms >> $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs