Mercurial > hg > aimc
comparison experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh @ 113:9d12efd43513
- Bash scripting is rubbish.
author | tomwalters |
---|---|
date | Tue, 14 Sep 2010 01:41:19 +0000 |
parents | ebb170b77175 |
children | f75123cf39ce |
comparison
equal
deleted
inserted
replaced
112:ebb170b77175 | 113:9d12efd43513 |
---|---|
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 | 64 if [ -e $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs ]; then |
65 rm $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs | 65 rm $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs |
66 done | 66 fi |
67 for syllable in $(cat $WORKING_DIRECTORY/$SYLLIST_COMPLETE); do | 67 for syllable in $(cat $WORKING_DIRECTORY/$SYLLIST_COMPLETE); do |
68 echo "~h $syllable" >> $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs | 68 echo "~h $syllable" >> $WORKING_DIRECTORY/$hmm_type/hmm0/hmmdefs |
69 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 |
70 done | 70 done |
71 | 71 |