diff --git a/egs/librispeech/s5/local/decode_example.sh b/egs/librispeech/s5/local/decode_example.sh index 0a72ded2a..5eafb2636 100755 --- a/egs/librispeech/s5/local/decode_example.sh +++ b/egs/librispeech/s5/local/decode_example.sh @@ -25,7 +25,8 @@ lang=data/lang lang_test=data/lang_test lang_test_tmp=data/local/lang_test_tmp/ mkdir -p $lang_test_tmp -cp -rT $lang $lang_test +mkdir -p $lang_test +cp -r $lang/* $lang_test gunzip -c $lm | utils/find_arpa_oovs.pl $lang_test/words.txt \ > $lang_test_tmp/oovs.txt || exit 1 gunzip -c $lm | \ diff --git a/egs/wsj/s5/utils/prepare_online_nnet_dist_build.sh b/egs/wsj/s5/utils/prepare_online_nnet_dist_build.sh index 51fe52875..adc2cefbe 100755 --- a/egs/wsj/s5/utils/prepare_online_nnet_dist_build.sh +++ b/egs/wsj/s5/utils/prepare_online_nnet_dist_build.sh @@ -42,7 +42,8 @@ done # Makes a copy of the original config files, as we will change the absolute path # to relative. rm -rf $modeldir/conf_abs_path -cp -rT $modeldir/conf $modeldir/conf_abs_path +mkdir -p $modeldir/conf_abs_path +cp -r $modeldir/conf/* $modeldir/conf_abs_path for f in $conf_files; do [ ! -f $modeldir/conf/$f ] && \