Generate_text_and_segments.sh~
333 Bytes
#!/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