From af675452aaf6bdb64e0fd97be6c7c5328db44816 Mon Sep 17 00:00:00 2001 From: Daniel Povey Date: Sat, 22 Jun 2019 11:28:48 -0400 Subject: [PATCH] [egs] Fix to separators in Aspire reverb recipe --- egs/aspire/s5/local/chain/tuning/run_tdnn_lstm_1a.sh | 3 +-- egs/wsj/s5/steps/data/reverberate_data_dir.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/egs/aspire/s5/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/aspire/s5/local/chain/tuning/run_tdnn_lstm_1a.sh index dab87bd787b..85b561d00b5 100755 --- a/egs/aspire/s5/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/aspire/s5/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -94,7 +94,7 @@ if [ $stage -le 8 ]; then for n in `seq $nj`; do awk '{print $1}' data/${train_set}/split$nj/$n/utt2spk | \ - perl -ane 's/rev[1-3]_//g' > $lat_dir/uttlist.$n.$nj + perl -ane 's/rev[1-3]-//g' > $lat_dir/uttlist.$n.$nj done rm -f $lat_dir/lat_tmp.*.{ark,scp} 2>/dev/null @@ -308,4 +308,3 @@ if [ $stage -le 17 ]; then fi exit 0; - diff --git a/egs/wsj/s5/steps/data/reverberate_data_dir.py b/egs/wsj/s5/steps/data/reverberate_data_dir.py index 74a4f342dbd..64112032cdc 100755 --- a/egs/wsj/s5/steps/data/reverberate_data_dir.py +++ b/egs/wsj/s5/steps/data/reverberate_data_dir.py @@ -299,7 +299,7 @@ def generate_reverberation_opts(room_dict, # the room dictionary, please refer def get_new_id(id, prefix=None, copy=0): """ This function generates a new id from the input id This is needed when we have to create multiple copies of the original data - E.g. get_new_id("swb0035", prefix="rvb", copy=1) returns a string "rvb1_swb0035" + E.g. get_new_id("swb0035", prefix="rvb", copy=1) returns a string "rvb1-swb0035" """ if prefix is not None: new_id = prefix + str(copy) + "-" + id @@ -675,4 +675,3 @@ def main(): if __name__ == "__main__": main() -