rm -r phone_alignment
mkdir phone_alignment

# Training Data: Now we used forced alignment to find the phones' start and end frames
HVite -A -D -T 1 -l '*' -o SW -b '</s>' -C configs/config0 -H mono_mix_hmm/mix_hmm25/macros -H mono_mix_hmm/mix_hmm25/hmmdefs -i phone_alignment/frames.mlf -m -t 250.0 150.0 3000.0 -y lab -a -I ../data_preparation/trans_out/train_words_fixed.mlf -S train_no_ovl_fixed.list ../data_preparation/dict_out/dict_8k_complete phones/monophones1 > phone_alignment.log

# Development Data: Get rid of corrupted files first and then generate phone alignments
#HVite -A -D -T 1 -l '*' -o SWT -b '</s>' -C configs/config0 -H hmm10/macros -H hmm10/hmmdefs -i aligned/aligned_devtest.mlf -m -t 250.0 150.0 3000.0 -y lab -a -I ../data_preparation/trans_out/devtest_words_fixed.mlf -S devtest_no_ovl_fixed.list ../data_preparation/dict_out/dict_8k_complete phones/monophones1> aligned/HVite_devtest_log
#scripts/new_train_list.pl aligned/HVite_devtest_log  devtest_list2.list

HVite -A -D -T 1 -l '*' -o SW -b '</s>' -C configs/config0 -H mono_mix_hmm/mix_hmm25/macros -H mono_mix_hmm/mix_hmm25/hmmdefs -i phone_alignment/frames_devtest.mlf -m -t 250.0 150.0 3000.0 -y lab -a -I ../data_preparation/trans_out/devtest_words_fixed.mlf -S devtest_no_ovl.list ../data_preparation/dict_out/dict_8k_complete phones/monophones1 >> phone_alignment.log

# Evaluation Data: Get rid of corrupted files first and then generate phone alignments
#HVite -A -D -T 1 -l '*' -o SWT -b '</s>' -C configs/config0 -H hmm10/macros -H hmm10/hmmdefs -i aligned/aligned_evltest.mlf -m -t 250.0 150.0 3000.0 -y lab -a -I ../data_preparation/trans_out/evltest_words_fixed.mlf -S evltest_no_ovl_fixed.list ../data_preparation/dict_out/dict_8k_complete phones/monophones1> aligned/HVite_evltest_log
#scripts/new_train_list.pl aligned/HVite_log  evltest_list2.list

HVite -A -D -T 1 -l '*' -o SW -b '</s>' -C configs/config0 -H mono_mix_hmm/mix_hmm25/macros -H mono_mix_hmm/mix_hmm25/hmmdefs -i phone_alignment/frames_evltest.mlf -m -t 250.0 150.0 3000.0 -y lab -a -I ../data_preparation/trans_out/evltest_words_fixed.mlf -S evltest_no_ovl.list ../data_preparation/dict_out/dict_8k_complete phones/monophones1 >> phone_alignment.log
