Skip to content

Commit

Permalink
Merge pull request kaldi-asr#8 from aarora8/madcat_ar_2
Browse files Browse the repository at this point in the history
fixes in steps/nnet3/chain/e2e/get_egs_e2e.sh to avoid pipefail
  • Loading branch information
aarora8 committed May 2, 2018
2 parents 1b1c246 + 0ee5c65 commit a963a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egs/wsj/s5/steps/nnet3/chain/e2e/get_egs_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ frames_per_eg=$(cat $data/allowed_lengths.txt | tr '\n' , | sed 's/,$//')

cat $data/utt2len | \
awk '{print $1}' | \
utils/shuffle_list.pl | head -$num_utts_subset > $dir/valid_uttlist || exit 1;
utils/shuffle_list.pl 2>/dev/null | head -$num_utts_subset > $dir/valid_uttlist


len_uttlist=`wc -l $dir/valid_uttlist | awk '{print $1}'`
Expand All @@ -141,7 +141,7 @@ fi
cat $data/utt2len | \
awk '{print $1}' | \
utils/filter_scp.pl --exclude $dir/valid_uttlist | \
utils/shuffle_list.pl | head -$num_utts_subset > $dir/train_subset_uttlist || exit 1;
utils/shuffle_list.pl 2>/dev/null | head -$num_utts_subset > $dir/train_subset_uttlist
len_uttlist=`wc -l $dir/train_subset_uttlist | awk '{print $1}'`
if [ $len_uttlist -lt $num_utts_subset ]; then
echo "Number of utterances which have length at least $frames_per_eg is really low. Please check your data." && exit 1;
Expand Down

0 comments on commit a963a21

Please sign in to comment.