Blame view

Scripts/utils/Generate_text_and_segments.sh 359 Bytes
ec85f8892   bigot benjamin   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  #!/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
  
  rm text_tmp segments_tmp