diff --git a/egs/csj/s5/local/csj_data_prep.sh b/egs/csj/s5/local/csj_data_prep.sh index 55738bf0e37..69e2865e316 100755 --- a/egs/csj/s5/local/csj_data_prep.sh +++ b/egs/csj/s5/local/csj_data_prep.sh @@ -45,7 +45,9 @@ if [ ! -d $CSJ ]; then fi # CSJ dictionary file check -[ ! -f $dir/lexicon.txt ] && cp $CSJ/lexicon/lexicon.txt $dir || exit 1; +if [ ! -f $dir/lexicon.txt ]; then + cp $CSJ/lexicon/lexicon.txt $dir || exit 1; +fi ### Config of using wav data that relates with acoustic model training ### if [ $mode -eq 3 ]