Blame view

egs/yesno/s5/local/create_yesno_txt.pl 215 Bytes
8dcb6dfcb   Yannick Estève   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  #!/usr/bin/env perl
  
  $in_list = $ARGV[0];
  
  open IL, $in_list;
  
  while ($l = <IL>)
  {
  	chomp($l);
  	$l =~ s/\.wav//;
  	$trans = $l;
  	$trans =~ s/0/NO/g;
  	$trans =~ s/1/YES/g;
  	$trans =~ s/\_/ /g;
  	print "$l $trans
  ";
  }