Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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