Blame view
Scripts/utils/Generate_text_and_segments.sh~
333 Bytes
ec85f8892 first commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#!/bin/bash #train #STM_TED=/home/besacier/ASR-KALDI/TED-LIUM/TEDLIUM_release1/train/stm/ export LC_ALL=C STM_TED=$1 rm -f text text_tmp rm -f segments segments_tmp for i in $STM_TED/* do ./stm2txt.pl $i 1 >> text_tmp ./stm2seg.pl $i >> segments_tmp done cat text_tmp | sort -k1 > text cat segments_tmp | sort -k1 > segments |