From 48d2115e4bc6f1815186cd86095ee5d7b852d267 Mon Sep 17 00:00:00 2001 From: esdeboer Date: Wed, 29 Jan 2020 08:14:54 +0100 Subject: [PATCH] [scripts,egs] Fix shebangs on bash scripts to #!/usr/bin/env bash, for portability (#3881) --- egs/aidatatang_200zh/s5/local/chain/compare_wer.sh | 2 +- egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_2a.sh | 2 +- egs/aidatatang_200zh/s5/local/data_prep.sh | 2 +- egs/aidatatang_200zh/s5/local/download_and_untar.sh | 2 +- egs/aidatatang_200zh/s5/local/format_data.sh | 2 +- egs/aidatatang_200zh/s5/local/nnet3/compare_wer.sh | 2 +- egs/aidatatang_200zh/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/aidatatang_200zh/s5/local/nnet3/tuning/run_tdnn.sh | 2 +- egs/aidatatang_200zh/s5/local/prepare_dict.sh | 2 +- egs/aidatatang_200zh/s5/local/score.sh | 2 +- egs/aidatatang_200zh/s5/local/train_lms.sh | 2 +- egs/aidatatang_200zh/s5/run.sh | 2 +- egs/aishell/s5/local/aishell_data_prep.sh | 2 +- egs/aishell/s5/local/aishell_prepare_dict.sh | 2 +- egs/aishell/s5/local/aishell_train_lms.sh | 2 +- egs/aishell/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/aishell/s5/local/chain/tuning/run_tdnn_2a.sh | 2 +- egs/aishell/s5/local/download_and_untar.sh | 2 +- egs/aishell/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/aishell/s5/local/nnet3/tuning/run_tdnn_1a.sh | 2 +- egs/aishell/s5/local/nnet3/tuning/run_tdnn_2a.sh | 2 +- egs/aishell/s5/local/score.sh | 2 +- egs/aishell/s5/run.sh | 2 +- egs/aishell/v1/local/aishell_data_prep.sh | 2 +- egs/aishell/v1/local/download_and_untar.sh | 2 +- egs/aishell/v1/run.sh | 2 +- egs/aishell2/s5/local/chain/compare_wer.sh | 2 +- egs/aishell2/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/aishell2/s5/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/aishell2/s5/local/nnet3/compare_wer.sh | 2 +- egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1a.sh | 2 +- egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1b.sh | 2 +- egs/aishell2/s5/local/prepare_all.sh | 2 +- egs/aishell2/s5/local/prepare_data.sh | 2 +- egs/aishell2/s5/local/prepare_dict.sh | 2 +- egs/aishell2/s5/local/run_gmm.sh | 2 +- egs/aishell2/s5/local/score.sh | 2 +- egs/aishell2/s5/local/train_lms.sh | 2 +- egs/aishell2/s5/run.sh | 2 +- egs/ami/s5/local/ami_beamform.sh | 2 +- egs/ami/s5/local/ami_download.sh | 4 ++-- egs/ami/s5/local/ami_format_data.sh | 2 +- egs/ami/s5/local/ami_ihm_data_prep.sh | 2 +- egs/ami/s5/local/ami_ihm_scoring_data_prep.sh | 2 +- egs/ami/s5/local/ami_mdm_data_prep.sh | 2 +- egs/ami/s5/local/ami_mdm_scoring_data_prep.sh | 2 +- egs/ami/s5/local/ami_prepare_dict.sh | 2 +- egs/ami/s5/local/ami_sdm_data_prep.sh | 2 +- egs/ami/s5/local/ami_sdm_scoring_data_prep.sh | 2 +- egs/ami/s5/local/ami_text_prep.sh | 2 +- egs/ami/s5/local/ami_train_lms.sh | 2 +- egs/ami/s5/local/ami_xml2text.sh | 2 +- egs/ami/s5/local/beamformit.sh | 2 +- egs/ami/s5/local/chain/run_blstm_ami_5.sh | 2 +- egs/ami/s5/local/chain/run_chain_common.sh | 2 +- egs/ami/s5/local/chain/run_tdnn_ami_5.sh | 2 +- egs/ami/s5/local/confidence_calibration.sh | 2 +- egs/ami/s5/local/nnet/prepare_ivectors.sh | 2 +- egs/ami/s5/local/nnet3/prepare_parallel_datadirs.sh | 2 +- .../local/nnet3/prepare_parallel_perturbed_alignments.sh | 2 +- egs/ami/s5/local/nnet3/prepare_perturbed_alignments.sh | 2 +- egs/ami/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/ami/s5/local/nnet3/run_lstm.sh | 2 +- egs/ami/s5/local/nnet3/run_tdnn.sh | 2 +- egs/ami/s5/local/online/run_nnet2_common.sh | 2 +- egs/ami/s5/local/online/run_nnet2_ms_perturbed.sh | 2 +- egs/ami/s5/local/online/run_nnet2_ms_sp_disc.sh | 2 +- egs/ami/s5/local/score.sh | 2 +- egs/ami/s5/local/score_asclite.sh | 2 +- egs/ami/s5/local/tfrnnlm/rnnlm_data_prep.sh | 2 +- egs/ami/s5/local/tfrnnlm/run_lstm.sh | 2 +- egs/ami/s5/local/tfrnnlm/run_lstm_fast.sh | 2 +- egs/ami/s5/local/tfrnnlm/run_vanilla_rnnlm.sh | 2 +- egs/ami/s5b/local/ami_beamform.sh | 2 +- egs/ami/s5b/local/ami_download.sh | 4 ++-- egs/ami/s5b/local/ami_format_data.sh | 2 +- egs/ami/s5b/local/ami_ihm_data_prep.sh | 2 +- egs/ami/s5b/local/ami_ihm_scoring_data_prep.sh | 2 +- egs/ami/s5b/local/ami_mdm_data_prep.sh | 2 +- egs/ami/s5b/local/ami_mdm_scoring_data_prep.sh | 2 +- egs/ami/s5b/local/ami_prepare_dict.sh | 2 +- egs/ami/s5b/local/ami_sdm_data_prep.sh | 2 +- egs/ami/s5b/local/ami_sdm_scoring_data_prep.sh | 2 +- egs/ami/s5b/local/ami_text_prep.sh | 2 +- egs/ami/s5b/local/ami_train_lms.sh | 2 +- egs/ami/s5b/local/ami_xml2text.sh | 2 +- egs/ami/s5b/local/beamformit.sh | 2 +- egs/ami/s5b/local/chain/compare_wer_general.sh | 2 +- .../s5b/local/chain/multi_condition/tuning/run_tdnn_1a.sh | 2 +- .../chain/multi_condition/tuning/run_tdnn_lstm_1a.sh | 2 +- .../chain/multi_condition/tuning/run_tdnn_lstm_1b.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1a.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1b.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1c.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_1c.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_1d.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_1e.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_1f.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_1g.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_1h.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_1i.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_1j.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1b.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1c.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1d.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1e.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1f.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1g.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1h.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1i.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1j.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1k.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1l.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1m.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1n.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1o.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_bs_1a.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1a.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1b.sh | 2 +- egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1c.sh | 2 +- .../s5b/local/nnet3/multi_condition/run_ivector_common.sh | 2 +- egs/ami/s5b/local/nnet3/prepare_lores_feats.sh | 2 +- egs/ami/s5b/local/nnet3/run_ivector_common.sh | 2 +- egs/ami/s5b/local/nnet3/run_lstm.sh | 2 +- egs/ami/s5b/local/nnet3/run_tdnn.sh | 2 +- egs/ami/s5b/local/prepare_parallel_train_data.sh | 2 +- egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_1a.sh | 2 +- egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_1b.sh | 2 +- egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh | 2 +- egs/ami/s5b/local/run_cleanup_segmentation.sh | 2 +- egs/ami/s5b/local/score.sh | 2 +- egs/ami/s5b/local/score_asclite.sh | 2 +- egs/ami/s5b/run.sh | 2 +- egs/an4/s5/local/download_and_untar.sh | 2 +- egs/an4/s5/run.sh | 2 +- egs/apiai_decode/s5/download-model.sh | 2 +- egs/apiai_decode/s5/local/create-corpus.sh | 2 +- egs/apiai_decode/s5/recognize-wav.sh | 2 +- egs/aspire/s5/local/build_silprob.sh | 2 +- egs/aspire/s5/local/chain/compare_wer_general.sh | 2 +- egs/aspire/s5/local/chain/tuning/run_blstm_7b.sh | 2 +- egs/aspire/s5/local/chain/tuning/run_blstm_asp_1.sh | 2 +- egs/aspire/s5/local/chain/tuning/run_tdnn_7b.sh | 2 +- egs/aspire/s5/local/chain/tuning/run_tdnn_asp_1.sh | 2 +- egs/aspire/s5/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/aspire/s5/local/extract_vad_weights.sh | 2 +- egs/aspire/s5/local/fisher_create_test_lang.sh | 2 +- egs/aspire/s5/local/fisher_data_prep.sh | 2 +- egs/aspire/s5/local/fisher_prepare_dict.sh | 2 +- egs/aspire/s5/local/fisher_train_lms.sh | 2 +- .../s5/local/generate_uniformly_segmented_data_dir.sh | 2 +- egs/aspire/s5/local/lattice_to_ctm.sh | 2 +- egs/aspire/s5/local/multi_condition/aspire_data_prep.sh | 2 +- egs/aspire/s5/local/multi_condition/check_version.sh | 2 +- egs/aspire/s5/local/multi_condition/copy_ali_dir.sh | 2 +- egs/aspire/s5/local/multi_condition/decode.sh | 2 +- egs/aspire/s5/local/multi_condition/prep_test_aspire.sh | 2 +- .../s5/local/multi_condition/prepare_impulses_noises.sh | 2 +- .../s5/local/multi_condition/reverberate_data_dir.sh | 2 +- egs/aspire/s5/local/multi_condition/rirs/prep_aalto.sh | 2 +- egs/aspire/s5/local/multi_condition/rirs/prep_air.sh | 2 +- egs/aspire/s5/local/multi_condition/rirs/prep_c4dm.sh | 2 +- egs/aspire/s5/local/multi_condition/rirs/prep_mardy.sh | 2 +- egs/aspire/s5/local/multi_condition/rirs/prep_openair.sh | 2 +- egs/aspire/s5/local/multi_condition/rirs/prep_rvb2014.sh | 2 +- egs/aspire/s5/local/multi_condition/rirs/prep_rwcp.sh | 2 +- .../s5/local/multi_condition/rirs/prep_varechoic.sh | 2 +- egs/aspire/s5/local/multi_condition/run_nnet2_common.sh | 2 +- egs/aspire/s5/local/multi_condition/run_nnet2_ms.sh | 2 +- egs/aspire/s5/local/multi_condition/run_nnet2_ms_disc.sh | 2 +- egs/aspire/s5/local/nnet3/decode.sh | 2 +- egs/aspire/s5/local/nnet3/decode_online.sh | 2 +- egs/aspire/s5/local/nnet3/run_autoencoder.sh | 2 +- egs/aspire/s5/local/nnet3/run_blstm.sh | 2 +- egs/aspire/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/aspire/s5/local/nnet3/run_tdnn.sh | 2 +- egs/aspire/s5/local/nnet3/segment_and_decode.sh | 2 +- egs/aspire/s5/local/run_asr_segmentation.sh | 2 +- egs/aspire/s5/local/run_data_cleaning.sh | 2 +- egs/aspire/s5/local/score.sh | 2 +- egs/aspire/s5/local/score_aspire.sh | 2 +- egs/aspire/s5/local/score_stm.sh | 2 +- .../s5/local/segmentation/tuning/train_lstm_asr_sad_1a.sh | 2 +- .../local/segmentation/tuning/train_stats_asr_sad_1a.sh | 2 +- egs/aspire/s5/run.sh | 2 +- egs/aurora4/s5/local/aurora4_data_prep.sh | 2 +- egs/aurora4/s5/local/aurora4_format_data.sh | 2 +- egs/aurora4/s5/local/chain/compare_wer.sh | 2 +- egs/aurora4/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/aurora4/s5/local/cstr_wsj_data_prep.sh | 2 +- egs/aurora4/s5/local/cstr_wsj_extend_dict.sh | 2 +- egs/aurora4/s5/local/generate_example_kws.sh | 2 +- egs/aurora4/s5/local/kws_data_prep.sh | 2 +- egs/aurora4/s5/local/nnet/run_dnn.sh | 2 +- egs/aurora4/s5/local/nnet2/run_5b.sh | 2 +- egs/aurora4/s5/local/nnet2/run_5c.sh | 2 +- egs/aurora4/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/aurora4/s5/local/run_basis_fmllr.sh | 2 +- egs/aurora4/s5/local/run_mmi_tri2b.sh | 2 +- egs/aurora4/s5/local/run_mmi_tri4b.sh | 2 +- egs/aurora4/s5/local/run_nnet_cpu.sh | 2 +- egs/aurora4/s5/local/run_raw_fmllr.sh | 2 +- egs/aurora4/s5/local/run_rnnlms_sgmm5b.sh | 2 +- egs/aurora4/s5/local/run_rnnlms_tri3b.sh | 2 +- egs/aurora4/s5/local/run_sgmm2.sh | 2 +- egs/aurora4/s5/local/score.sh | 2 +- egs/aurora4/s5/local/score_combine.sh | 2 +- egs/aurora4/s5/local/score_mbr.sh | 2 +- egs/aurora4/s5/local/wsj_prepare_dict.sh | 2 +- egs/aurora4/s5/run.sh | 2 +- egs/babel/s5/local/CHECKPOINT.sh | 2 +- egs/babel/s5/local/arpa2G.sh | 2 +- egs/babel/s5/local/buildSRILM.sh | 2 +- egs/babel/s5/local/check_models.sh | 2 +- egs/babel/s5/local/check_wers.sh | 2 +- egs/babel/s5/local/create_shadow_dataset.sh | 2 +- egs/babel/s5/local/cstr_wsj_data_prep.sh | 2 +- egs/babel/s5/local/cstr_wsj_extend_dict.sh | 2 +- egs/babel/s5/local/generate_example_kws.sh | 2 +- egs/babel/s5/local/generate_proxy_keywords.sh | 2 +- egs/babel/s5/local/get_syllable_text.sh | 2 +- egs/babel/s5/local/kws_data_prep.sh | 2 +- egs/babel/s5/local/kws_data_prep_syllables.sh | 2 +- egs/babel/s5/local/kws_gen_oracle_lattices.sh | 2 +- egs/babel/s5/local/kws_oracle.sh | 2 +- egs/babel/s5/local/kws_score_f4de.sh | 2 +- egs/babel/s5/local/kws_search.sh | 2 +- egs/babel/s5/local/kws_setup.sh | 2 +- egs/babel/s5/local/lattice_to_ctm.sh | 2 +- egs/babel/s5/local/lattice_to_ctm_syllable.sh | 2 +- egs/babel/s5/local/make_ecf_subset.sh | 2 +- egs/babel/s5/local/make_ffv.sh | 6 +++--- egs/babel/s5/local/make_lexicon_subset.sh | 2 +- egs/babel/s5/local/make_pitch.sh | 4 ++-- egs/babel/s5/local/make_syllable_lexicon.sh | 2 +- egs/babel/s5/local/prepare_kaldi_lm_from_training_text.sh | 2 +- egs/babel/s5/local/score_combine.sh | 2 +- egs/babel/s5/local/score_map.sh | 2 +- egs/babel/s5/local/score_mbr.sh | 2 +- egs/babel/s5/local/score_sctk.sh | 2 +- egs/babel/s5/local/score_sctk_prune.sh | 2 +- egs/babel/s5/local/score_stm.sh | 2 +- egs/babel/s5/local/shadow_set_kws_search.sh | 2 +- egs/babel/s5/local/train_lms_srilm.sh | 2 +- egs/babel/s5/local/train_mmi_sgmm2.sh | 2 +- egs/babel/s5/make_release.sh | 2 +- egs/babel/s5/run-1-main.sh | 2 +- egs/babel/s5/run-2a-nnet.sh | 2 +- egs/babel/s5/run-2b-bnf.sh | 2 +- egs/babel/s5/run-6-combine.sh | 2 +- egs/babel/s5/steps_BNF/build_nnet_pfile.sh | 2 +- egs/babel/s5/steps_BNF/make_bnf_feat.sh | 2 +- egs/babel/s5/steps_BNF/make_denlats_sgmm2.sh | 2 +- egs/babel/s5b/local/CHECKPOINT.sh | 2 +- egs/babel/s5b/local/apply_g2p.sh | 2 +- egs/babel/s5b/local/arpa2G.sh | 2 +- egs/babel/s5b/local/best_path_weights.sh | 2 +- egs/babel/s5b/local/buildSRILM.sh | 2 +- egs/babel/s5b/local/check_models.sh | 2 +- egs/babel/s5b/local/check_wers.sh | 2 +- egs/babel/s5b/local/create_shadow_dataset.sh | 2 +- egs/babel/s5b/local/extend_lexicon.sh | 2 +- egs/babel/s5b/local/generate_confusion_matrix.sh | 2 +- egs/babel/s5b/local/generate_example_kws.sh | 2 +- egs/babel/s5b/local/generate_proxy_keywords.sh | 2 +- egs/babel/s5b/local/get_syllable_text.sh | 2 +- egs/babel/s5b/local/kws_combine.sh | 2 +- egs/babel/s5b/local/kws_data_prep.sh | 2 +- egs/babel/s5b/local/kws_data_prep_proxy.sh | 2 +- egs/babel/s5b/local/kws_data_prep_syllables.sh | 2 +- egs/babel/s5b/local/kws_gen_oracle_lattices.sh | 2 +- egs/babel/s5b/local/kws_oracle.sh | 2 +- egs/babel/s5b/local/kws_score_f4de.sh | 2 +- egs/babel/s5b/local/kws_search.sh | 2 +- egs/babel/s5b/local/kws_setup.sh | 2 +- egs/babel/s5b/local/lattice_to_ctm.sh | 2 +- egs/babel/s5b/local/lattice_to_ctm_syllable.sh | 2 +- egs/babel/s5b/local/make_corpus_subset.sh | 2 +- egs/babel/s5b/local/make_ecf_subset.sh | 2 +- egs/babel/s5b/local/make_lexicon_subset.sh | 2 +- egs/babel/s5b/local/make_syllable_lexicon.sh | 2 +- egs/babel/s5b/local/nist_eval/create_compound_set.sh | 2 +- egs/babel/s5b/local/nist_eval/export_systems.sh | 2 +- egs/babel/s5b/local/nist_eval/make_release.sh | 2 +- egs/babel/s5b/local/nnet2/get_egs_semi_supervised.sh | 2 +- .../s5b/local/prepare_kaldi_lm_from_training_text.sh | 2 +- egs/babel/s5b/local/resegment/generate_segments.sh | 2 +- egs/babel/s5b/local/resegment/train_segmentation.sh | 2 +- egs/babel/s5b/local/score_combine.sh | 2 +- egs/babel/s5b/local/score_map.sh | 2 +- egs/babel/s5b/local/score_mbr.sh | 2 +- egs/babel/s5b/local/score_sctk_prune.sh | 2 +- egs/babel/s5b/local/score_stm.sh | 2 +- egs/babel/s5b/local/shadow_set_kws_search.sh | 2 +- egs/babel/s5b/local/show_lattice.sh | 2 +- egs/babel/s5b/local/train_g2p.sh | 2 +- egs/babel/s5b/local/train_lms_srilm.sh | 2 +- egs/babel/s5b/local/train_mmi_sgmm2.sh | 2 +- egs/babel/s5b/run-1-main-extend-lex.sh | 2 +- egs/babel/s5b/run-1-main.sh | 2 +- egs/babel/s5b/run-2-segmentation.sh | 2 +- egs/babel/s5b/run-2a-nnet-cpu.sh | 2 +- egs/babel/s5b/run-2a-nnet-ensemble-gpu.sh | 2 +- egs/babel/s5b/run-2a-nnet-gpu-realign.sh | 2 +- egs/babel/s5b/run-2a-nnet-gpu.sh | 2 +- egs/babel/s5b/run-2a-nnet-mpe.sh | 2 +- egs/babel/s5b/run-2b-bnf.sh | 2 +- egs/babel/s5b/run-3b-bnf-nnet.sh | 2 +- egs/babel/s5b/run-3b-bnf-sgmm.sh | 2 +- egs/babel/s5b/run-6-combine.sh | 2 +- egs/babel/s5c/local/CHECKPOINT.sh | 2 +- egs/babel/s5c/local/ali_to_rttm.sh | 2 +- egs/babel/s5c/local/apply_g2p.sh | 2 +- egs/babel/s5c/local/arpa2G.sh | 2 +- egs/babel/s5c/local/best_path_weights.sh | 2 +- egs/babel/s5c/local/buildSRILM.sh | 2 +- egs/babel/s5c/local/check_models.sh | 2 +- egs/babel/s5c/local/check_wers.sh | 2 +- egs/babel/s5c/local/create_shadow_dataset.sh | 2 +- egs/babel/s5c/local/extend_lexicon.sh | 2 +- egs/babel/s5c/local/generate_confusion_matrix.sh | 2 +- egs/babel/s5c/local/generate_example_kws.sh | 2 +- egs/babel/s5c/local/generate_proxy_keywords.sh | 2 +- egs/babel/s5c/local/kws_combine.sh | 2 +- egs/babel/s5c/local/kws_data_prep.sh | 2 +- egs/babel/s5c/local/kws_data_prep_proxy.sh | 2 +- egs/babel/s5c/local/kws_gen_oracle_lattices.sh | 2 +- egs/babel/s5c/local/kws_oracle.sh | 2 +- egs/babel/s5c/local/kws_score_f4de.sh | 2 +- egs/babel/s5c/local/kws_search.sh | 2 +- egs/babel/s5c/local/kws_setup.sh | 2 +- egs/babel/s5c/local/lattice_to_ctm.sh | 2 +- egs/babel/s5c/local/make_L_align.sh | 2 +- egs/babel/s5c/local/make_corpus_subset.sh | 2 +- egs/babel/s5c/local/make_ecf_subset.sh | 2 +- egs/babel/s5c/local/make_lexicon_subset.sh | 2 +- egs/babel/s5c/local/nist_eval/create_compound_set.sh | 2 +- egs/babel/s5c/local/nist_eval/export_systems.sh | 2 +- egs/babel/s5c/local/nist_eval/make_release.sh | 2 +- egs/babel/s5c/local/nnet2/get_egs_semi_supervised.sh | 2 +- .../s5c/local/prepare_kaldi_lm_from_training_text.sh | 2 +- egs/babel/s5c/local/resegment/generate_segments.sh | 2 +- egs/babel/s5c/local/resegment/train_segmentation.sh | 2 +- egs/babel/s5c/local/run_kws_stt_task.sh | 2 +- egs/babel/s5c/local/score_combine.sh | 2 +- egs/babel/s5c/local/score_map.sh | 2 +- egs/babel/s5c/local/score_mbr.sh | 2 +- egs/babel/s5c/local/score_sctk_prune.sh | 2 +- egs/babel/s5c/local/score_stm.sh | 2 +- egs/babel/s5c/local/shadow_set_kws_search.sh | 2 +- egs/babel/s5c/local/show_lattice.sh | 2 +- egs/babel/s5c/local/split_ctms.sh | 2 +- egs/babel/s5c/local/syllab/ali_to_syllabs.sh | 2 +- egs/babel/s5c/local/syllab/generate_syllable_lang.sh | 2 +- egs/babel/s5c/local/train_g2p.sh | 2 +- egs/babel/s5c/local/train_lms_srilm.sh | 2 +- egs/babel/s5c/local/train_mmi_sgmm2.sh | 2 +- egs/babel/s5c/run-1-main-extend-lex.sh | 2 +- egs/babel/s5c/run-1-main.sh | 2 +- egs/babel/s5c/run-2-segmentation.sh | 2 +- egs/babel/s5c/run-2a-nnet-cpu.sh | 2 +- egs/babel/s5c/run-2a-nnet-ensemble-gpu.sh | 2 +- egs/babel/s5c/run-2a-nnet-gpu.sh | 2 +- egs/babel/s5c/run-2a-nnet-mpe.sh | 2 +- egs/babel/s5c/run-2b-bnf.sh | 2 +- egs/babel/s5c/run-3b-bnf-nnet.sh | 2 +- egs/babel/s5c/run-3b-bnf-sgmm.sh | 2 +- egs/babel/s5c/run-4-anydecode.sh | 2 +- egs/babel/s5c/run-6-combine.sh | 2 +- egs/babel/s5d/local/add_to_multilang.sh | 2 +- egs/babel/s5d/local/ali_to_rttm.sh | 2 +- egs/babel/s5d/local/apply_g2p.sh | 2 +- egs/babel/s5d/local/arpa2G.sh | 2 +- egs/babel/s5d/local/best_scores.sh | 2 +- egs/babel/s5d/local/best_scores_kws.sh | 2 +- egs/babel/s5d/local/chain/run_ivector_common.sh | 2 +- egs/babel/s5d/local/chain/tuning/run_tdnn.sh | 2 +- egs/babel/s5d/local/chain/tuning/run_tdnn_lstm.sh | 2 +- egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab1.sh | 2 +- egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab2.sh | 2 +- egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab3.sh | 2 +- egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab4.sh | 2 +- egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab5.sh | 2 +- egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab6.sh | 2 +- egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab7.sh | 2 +- egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab8.sh | 2 +- egs/babel/s5d/local/extend_lexicon.sh | 2 +- egs/babel/s5d/local/generate_confusion_matrix.sh | 2 +- egs/babel/s5d/local/generate_proxy_keywords.sh | 2 +- egs/babel/s5d/local/kws_combine.sh | 2 +- egs/babel/s5d/local/kws_data_prep.sh | 2 +- egs/babel/s5d/local/kws_data_prep_proxy.sh | 2 +- egs/babel/s5d/local/kws_oracle.sh | 2 +- egs/babel/s5d/local/kws_score_f4de.sh | 2 +- egs/babel/s5d/local/kws_search.sh | 2 +- egs/babel/s5d/local/kws_setup.sh | 2 +- egs/babel/s5d/local/lattice_to_ctm.sh | 2 +- egs/babel/s5d/local/make_L_align.sh | 2 +- egs/babel/s5d/local/make_corpus_subset.sh | 2 +- egs/babel/s5d/local/make_ecf_subset.sh | 2 +- egs/babel/s5d/local/make_lexicon_subset.sh | 2 +- egs/babel/s5d/local/nist_eval/create_compound_set.sh | 2 +- .../local/nist_eval/create_new_language_configs.FLP.sh | 2 +- .../local/nist_eval/create_new_language_configs.LLP.sh | 2 +- egs/babel/s5d/local/nist_eval/export_systems.sh | 2 +- egs/babel/s5d/local/nist_eval/make_release.sh | 2 +- egs/babel/s5d/local/nist_eval/split_compound_set.sh | 2 +- egs/babel/s5d/local/nnet2/get_egs_semi_supervised.sh | 2 +- egs/babel/s5d/local/prepare_extended_lexicon.sh | 2 +- egs/babel/s5d/local/reestimate_langp.sh | 2 +- egs/babel/s5d/local/resegment/generate_segments.sh | 2 +- egs/babel/s5d/local/resegment/train_segmentation.sh | 2 +- egs/babel/s5d/local/run_asr_segmentation.sh | 2 +- egs/babel/s5d/local/run_cleanup_segmentation.sh | 2 +- egs/babel/s5d/local/run_kws_stt_task.sh | 2 +- egs/babel/s5d/local/run_kws_stt_task2.sh | 2 +- egs/babel/s5d/local/score_combine.sh | 2 +- egs/babel/s5d/local/score_stm.sh | 2 +- egs/babel/s5d/local/search/combine.sh | 2 +- egs/babel/s5d/local/search/combine_special.sh | 2 +- egs/babel/s5d/local/search/compile_keywords.sh | 2 +- egs/babel/s5d/local/search/compile_proxy_keywords.sh | 2 +- egs/babel/s5d/local/search/normalize.sh | 2 +- egs/babel/s5d/local/search/rttm_to_hitlists.sh | 2 +- egs/babel/s5d/local/search/run_phn_search.sh | 2 +- egs/babel/s5d/local/search/run_search.sh | 2 +- egs/babel/s5d/local/search/run_syll_search.sh | 2 +- egs/babel/s5d/local/search/score.sh | 2 +- egs/babel/s5d/local/search/search.sh | 2 +- egs/babel/s5d/local/search/setup.sh | 2 +- egs/babel/s5d/local/search_index.sh | 2 +- .../local/segmentation/tuning/train_lstm_asr_sad_1a.sh | 2 +- .../local/segmentation/tuning/train_stats_asr_sad_1a.sh | 2 +- egs/babel/s5d/local/syllab/ali_to_syllabs.sh | 2 +- egs/babel/s5d/local/syllab/create_syll_datadir.sh | 2 +- egs/babel/s5d/local/syllab/generate_phone_lang.sh | 2 +- egs/babel/s5d/local/syllab/generate_syllable_lang.sh | 2 +- egs/babel/s5d/local/syllab/lattice_word2syll.sh | 2 +- egs/babel/s5d/local/syllab/run_phones.sh | 2 +- egs/babel/s5d/local/syllab/run_syllabs.sh | 2 +- egs/babel/s5d/local/train_g2p.sh | 2 +- egs/babel/s5d/local/train_lms_srilm.sh | 2 +- egs/babel/s5d/run-1-main-extend-lex.sh | 2 +- egs/babel/s5d/run-1-main-unicode-extend-lex.sh | 2 +- egs/babel/s5d/run-1-main-unicode.sh | 2 +- egs/babel/s5d/run-1-main.sh | 2 +- egs/babel/s5d/run-2-segmentation.sh | 2 +- egs/babel/s5d/run-4-anydecode.sh | 2 +- egs/babel_multilang/s5/local/make_corpus_subset.sh | 2 +- .../s5/local/nnet3/extract_ivector_lang.sh | 2 +- .../s5/local/nnet3/prepare_multilingual_egs.sh | 2 +- egs/babel_multilang/s5/local/nnet3/run_common_langs.sh | 2 +- egs/babel_multilang/s5/local/nnet3/run_decode_lang.sh | 2 +- .../s5/local/nnet3/run_multilingual_bnf.sh | 2 +- .../s5/local/nnet3/run_shared_ivector_extractor.sh | 2 +- .../s5/local/nnet3/run_tdnn_multilingual.sh | 2 +- egs/bentham/v1/local/chain/compare_wer.sh | 2 +- egs/bentham/v1/local/chain/tuning/run_cnn_e2eali_1a.sh | 2 +- egs/bentham/v1/local/chain/tuning/run_e2e_cnn_1a.sh | 2 +- egs/bentham/v1/local/create_splits.sh | 2 +- egs/bentham/v1/local/download_bentham_text.sh | 2 +- egs/bentham/v1/local/extract_features.sh | 2 +- egs/bentham/v1/local/prepare_data.sh | 2 +- egs/bentham/v1/local/score.sh | 2 +- egs/bentham/v1/local/train_lm.sh | 2 +- egs/bentham/v1/run_end2end.sh | 2 +- egs/bn_music_speech/v1/local/make_bn.sh | 2 +- egs/bn_music_speech/v1/run.sh | 2 +- .../v1/diarization/VB_resegmentation.sh | 2 +- egs/callhome_diarization/v1/diarization/cluster.sh | 2 +- .../v1/diarization/extract_ivectors.sh | 2 +- .../v1/diarization/nnet3/xvector/extract_xvectors.sh | 2 +- .../v1/diarization/nnet3/xvector/score_plda.sh | 2 +- egs/callhome_diarization/v1/diarization/score_plda.sh | 2 +- .../v1/diarization/train_ivector_extractor_diag.sh | 2 +- .../v1/diarization/vad_to_segments.sh | 2 +- egs/callhome_diarization/v1/local/make_callhome.sh | 2 +- egs/callhome_diarization/v1/local/make_sre.sh | 2 +- .../v1/local/nnet3/xvector/prepare_feats.sh | 2 +- .../v1/local/nnet3/xvector/prepare_feats_for_egs.sh | 2 +- .../v1/local/nnet3/xvector/tuning/run_xvector_1a.sh | 2 +- egs/callhome_diarization/v1/run.sh | 2 +- egs/callhome_diarization/v2/run.sh | 2 +- .../s5/local/callhome_create_test_lang.sh | 2 +- egs/callhome_egyptian/s5/local/callhome_data_prep.sh | 2 +- egs/callhome_egyptian/s5/local/callhome_train_lms.sh | 2 +- .../s5/local/nnet3/run_ivector_common.sh | 2 +- egs/callhome_egyptian/s5/local/nnet3/run_tdnn.sh | 2 +- egs/callhome_egyptian/s5/local/score.sh | 2 +- egs/callhome_egyptian/s5/run.sh | 2 +- egs/casia_hwdb/v1/local/augment_data.sh | 2 +- egs/casia_hwdb/v1/local/chain/compare_wer.sh | 2 +- egs/casia_hwdb/v1/local/chain/run_cnn_e2eali_1b.sh | 2 +- egs/casia_hwdb/v1/local/chain/run_flatstart_cnn1a.sh | 2 +- egs/casia_hwdb/v1/local/extract_database.sh | 2 +- egs/casia_hwdb/v1/local/extract_features.sh | 2 +- egs/casia_hwdb/v1/local/score.sh | 2 +- egs/casia_hwdb/v1/local/train_lm.sh | 2 +- egs/casia_hwdb/v1/local/train_lm_lr.sh | 2 +- egs/casia_hwdb/v1/run.sh | 2 +- egs/chime1/s5/local/chime1_prepare_data.sh | 2 +- egs/chime1/s5/local/chime1_prepare_dict.sh | 2 +- egs/chime1/s5/local/chime1_prepare_grammar.sh | 2 +- egs/chime1/s5/local/score.sh | 2 +- egs/chime1/s5/run.sh | 2 +- egs/chime2/s5/local/chime_format_data.sh | 2 +- egs/chime2/s5/local/clean_wsj0_data_prep.sh | 2 +- egs/chime2/s5/local/noisy_wsj0_data_prep.sh | 2 +- egs/chime2/s5/local/reverb_wsj0_data_prep.sh | 2 +- egs/chime2/s5/local/score.sh | 2 +- egs/chime2/s5/local/wsj_prepare_dict.sh | 2 +- egs/chime2/s5/run.sh | 2 +- egs/chime3/s5/local/bth_chime3_data_prep.sh | 2 +- egs/chime3/s5/local/chime3_beamform.sh | 2 +- egs/chime3/s5/local/chime3_calc_wers.sh | 2 +- egs/chime3/s5/local/chime3_calc_wers_smbr.sh | 2 +- egs/chime3/s5/local/chime3_train_lms.sh | 2 +- egs/chime3/s5/local/chime3_train_rnnlms.sh | 2 +- egs/chime3/s5/local/clean_chime3_format_data.sh | 2 +- egs/chime3/s5/local/clean_wsj0_data_prep.sh | 2 +- egs/chime3/s5/local/real_close_chime3_data_prep.sh | 2 +- egs/chime3/s5/local/real_enhan_chime3_data_prep.sh | 2 +- egs/chime3/s5/local/real_noisy_chime3_data_prep.sh | 2 +- egs/chime3/s5/local/run_dnn.sh | 2 +- egs/chime3/s5/local/run_gmm.sh | 2 +- egs/chime3/s5/local/run_init.sh | 2 +- egs/chime3/s5/local/run_lmrescore.sh | 2 +- egs/chime3/s5/local/score.sh | 2 +- egs/chime3/s5/local/simu_enhan_chime3_data_prep.sh | 2 +- egs/chime3/s5/local/simu_noisy_chime3_data_prep.sh | 2 +- egs/chime3/s5/local/wsj_prepare_dict.sh | 2 +- egs/chime3/s5/run.sh | 2 +- egs/chime4/s5_1ch/local/chain/compare_wer.sh | 2 +- egs/chime4/s5_1ch/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/chime4/s5_1ch/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/chime4/s5_1ch/local/chime4_calc_wers.sh | 2 +- egs/chime4/s5_1ch/local/chime4_calc_wers_looped.sh | 2 +- egs/chime4/s5_1ch/local/chime4_calc_wers_smbr.sh | 2 +- egs/chime4/s5_1ch/local/chime4_train_lms.sh | 2 +- egs/chime4/s5_1ch/local/chime4_train_rnnlms.sh | 2 +- egs/chime4/s5_1ch/local/clean_chime4_format_data.sh | 2 +- egs/chime4/s5_1ch/local/clean_wsj0_data_prep.sh | 2 +- egs/chime4/s5_1ch/local/compute_pesq.sh | 2 +- egs/chime4/s5_1ch/local/compute_stoi_estoi_sdr.sh | 2 +- egs/chime4/s5_1ch/local/download_se_eval_tool.sh | 2 +- egs/chime4/s5_1ch/local/nnet3/compare_wer.sh | 2 +- egs/chime4/s5_1ch/local/nnet3/run_ivector_common.sh | 2 +- egs/chime4/s5_1ch/local/real_enhan_chime4_data_prep.sh | 2 +- egs/chime4/s5_1ch/local/real_noisy_chime4_data_prep.sh | 2 +- egs/chime4/s5_1ch/local/rnnlm/run_lstm_back.sh | 2 +- egs/chime4/s5_1ch/local/rnnlm/tuning/run_lstm_1a.sh | 2 +- egs/chime4/s5_1ch/local/run_beamform_2ch_track.sh | 2 +- egs/chime4/s5_1ch/local/run_beamform_6ch_track.sh | 2 +- egs/chime4/s5_1ch/local/run_blstm_gev.sh | 2 +- egs/chime4/s5_1ch/local/run_gmm.sh | 2 +- egs/chime4/s5_1ch/local/run_init.sh | 2 +- egs/chime4/s5_1ch/local/run_lmrescore.sh | 2 +- egs/chime4/s5_1ch/local/run_lmrescore_tdnn.sh | 2 +- egs/chime4/s5_1ch/local/run_lmrescore_tdnn_lstm.sh | 2 +- egs/chime4/s5_1ch/local/run_nn-gev.sh | 2 +- egs/chime4/s5_1ch/local/score.sh | 2 +- egs/chime4/s5_1ch/local/simu_enhan_chime4_data_prep.sh | 2 +- egs/chime4/s5_1ch/local/simu_noisy_chime4_data_prep.sh | 2 +- egs/chime4/s5_1ch/local/write_se_results.sh | 2 +- egs/chime4/s5_1ch/local/wsj_prepare_dict.sh | 2 +- egs/chime4/s5_1ch/run.sh | 2 +- egs/chime4/s5_2ch/run.sh | 2 +- egs/chime5/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/chime5/s5/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/chime5/s5/local/nnet3/compare_wer.sh | 2 +- egs/chime5/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/chime5/s5/local/prepare_data.sh | 2 +- egs/chime5/s5/local/prepare_dict.sh | 2 +- egs/chime5/s5/local/run_beamformit.sh | 2 +- egs/chime5/s5/local/run_recog.sh | 2 +- egs/chime5/s5/local/run_wpe.sh | 2 +- egs/chime5/s5/local/score_for_submit.sh | 2 +- egs/chime5/s5/local/train_lms_srilm.sh | 2 +- egs/chime5/s5/run.sh | 2 +- egs/chime5/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1a.sh | 2 +- egs/chime5/s5b/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/chime5/s5b/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/chime5/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/chime5/s5b/local/copy_lat_dir_parallel.sh | 2 +- egs/chime5/s5b/local/extract_vad_weights.sh | 2 +- egs/chime5/s5b/local/nnet3/compare_wer.sh | 2 +- egs/chime5/s5b/local/nnet3/decode.sh | 2 +- egs/chime5/s5b/local/nnet3/run_ivector_common.sh | 2 +- egs/chime5/s5b/local/prepare_data.sh | 2 +- egs/chime5/s5b/local/prepare_dict.sh | 2 +- egs/chime5/s5b/local/reverberate_lat_dir.sh | 2 +- egs/chime5/s5b/local/run_beamformit.sh | 2 +- egs/chime5/s5b/local/run_recog.sh | 2 +- egs/chime5/s5b/local/run_wpe.sh | 2 +- egs/chime5/s5b/local/score_for_submit.sh | 2 +- egs/chime5/s5b/local/train_lms_srilm.sh | 2 +- egs/chime5/s5b/run.sh | 2 +- egs/chime6/s5_track1/local/add_location_to_uttid.sh | 2 +- egs/chime6/s5_track1/local/chain/compare_wer.sh | 2 +- egs/chime6/s5_track1/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/chime6/s5_track1/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/chime6/s5_track1/local/copy_lat_dir_parallel.sh | 2 +- egs/chime6/s5_track1/local/decode.sh | 2 +- egs/chime6/s5_track1/local/extract_vad_weights.sh | 2 +- egs/chime6/s5_track1/local/generate_chime6_data.sh | 2 +- egs/chime6/s5_track1/local/install_pb_chime5.sh | 2 +- egs/chime6/s5_track1/local/nnet3/compare_wer.sh | 2 +- egs/chime6/s5_track1/local/nnet3/decode.sh | 2 +- egs/chime6/s5_track1/local/nnet3/run_ivector_common.sh | 2 +- egs/chime6/s5_track1/local/prepare_data.sh | 2 +- egs/chime6/s5_track1/local/prepare_dict.sh | 2 +- egs/chime6/s5_track1/local/reverberate_lat_dir.sh | 2 +- egs/chime6/s5_track1/local/run_beamformit.sh | 2 +- egs/chime6/s5_track1/local/run_gss.sh | 2 +- egs/chime6/s5_track1/local/run_wpe.sh | 2 +- egs/chime6/s5_track1/local/score_for_submit.sh | 2 +- egs/chime6/s5_track1/local/train_lms_srilm.sh | 2 +- egs/chime6/s5_track1/run.sh | 2 +- egs/chime6/s5_track2/local/decode.sh | 2 +- egs/chime6/s5_track2/local/decode_diarized.sh | 2 +- egs/chime6/s5_track2/local/diarize.sh | 2 +- egs/chime6/s5_track2/local/multispeaker_score.sh | 2 +- egs/chime6/s5_track2/local/nnet3/xvector/prepare_feats.sh | 2 +- .../local/nnet3/xvector/prepare_feats_for_egs.sh | 2 +- .../local/nnet3/xvector/tuning/run_xvector_1a.sh | 2 +- egs/chime6/s5_track2/local/prepare_data.sh | 2 +- egs/chime6/s5_track2/local/score_for_submit.sh | 2 +- .../local/segmentation/detect_speech_activity.sh | 2 +- .../local/segmentation/tuning/train_lstm_sad_1a.sh | 2 +- .../local/segmentation/tuning/train_stats_sad_1a.sh | 2 +- egs/chime6/s5_track2/local/train_diarizer.sh | 2 +- egs/chime6/s5_track2/local/train_sad.sh | 2 +- egs/chime6/s5_track2/run.sh | 2 +- egs/cifar/v1/image/copy_data_dir.sh | 2 +- egs/cifar/v1/image/fix_data_dir.sh | 2 +- egs/cifar/v1/image/validate_data_dir.sh | 2 +- egs/cifar/v1/local/nnet3/compare.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_cnn_1a.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_cnn_1b.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_cnn_1c.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_cnn_1d.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_cnn_1e.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1a.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1b.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1c.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1d.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_resnet_1a.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_resnet_1b.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_resnet_1c.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_resnet_1d.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_resnet_1e.sh | 2 +- egs/cifar/v1/local/nnet3/tuning/run_resnet_1f.sh | 2 +- egs/cifar/v1/local/prepare_data.sh | 2 +- egs/cifar/v1/run.sh | 2 +- egs/cmu_cslu_kids/s5/local/chain/compare_wer.sh | 2 +- egs/cmu_cslu_kids/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/cmu_cslu_kids/s5/local/download_cmu_dict.sh | 2 +- egs/cmu_cslu_kids/s5/local/download_lm.sh | 2 +- egs/cmu_cslu_kids/s5/local/format_lms.sh | 2 +- egs/cmu_cslu_kids/s5/local/nnet3/compare_wer.sh | 2 +- egs/cmu_cslu_kids/s5/local/nnet3/run_ivector_common.sh | 2 +- .../s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh | 2 +- .../s5/local/nnet3/tuning/run_tdnn_lstm_1b.sh | 2 +- .../s5/local/nnet3/tuning/run_tdnn_lstm_1c.sh | 2 +- egs/cmu_cslu_kids/s5/local/prepare_grammar.sh | 2 +- egs/cmu_cslu_kids/s5/local/score.sh | 2 +- egs/cmu_cslu_kids/s5/local/subset_dataset.sh | 2 +- egs/cmu_cslu_kids/s5/local/train_lms.sh | 2 +- egs/cmu_cslu_kids/s5/local/vtln.sh | 2 +- egs/cnceleb/v1/local/make_cnceleb.sh | 2 +- egs/cnceleb/v1/run.sh | 2 +- egs/commonvoice/s5/local/chain/compare_wer.sh | 2 +- egs/commonvoice/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/commonvoice/s5/local/download_and_untar.sh | 2 +- egs/commonvoice/s5/local/nnet3/compare_wer.sh | 2 +- egs/commonvoice/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/commonvoice/s5/local/prepare_dict.sh | 2 +- egs/commonvoice/s5/local/prepare_lm.sh | 2 +- egs/commonvoice/s5/run.sh | 2 +- egs/csj/s5/local/chain/compare_wer.sh | 2 +- egs/csj/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/csj/s5/local/csj_data_prep.sh | 2 +- egs/csj/s5/local/csj_eval_data_prep.sh | 2 +- egs/csj/s5/local/csj_prepare_dict.sh | 2 +- egs/csj/s5/local/csj_run_rnnlm.sh | 2 +- egs/csj/s5/local/nnet/run_dnn.sh | 2 +- egs/csj/s5/local/nnet/run_dnn_tandem_uc.sh | 2 +- egs/csj/s5/local/nnet/run_lstm.sh | 2 +- egs/csj/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/csj/s5/local/nnet3/run_tdnn.sh | 2 +- egs/csj/s5/local/run_mmi.sh | 2 +- egs/csj/s5/local/run_sgmm2.sh | 2 +- egs/csj/s5/local/score_csj.sh | 2 +- egs/csj/s5/run.sh | 2 +- egs/dihard_2018/v1/local/make_dihard_2018_dev.sh | 2 +- egs/dihard_2018/v1/local/make_dihard_2018_eval.sh | 2 +- egs/dihard_2018/v1/local/prepare_feats.sh | 2 +- egs/dihard_2018/v1/run.sh | 2 +- egs/dihard_2018/v2/local/nnet3/xvector/prepare_feats.sh | 2 +- .../v2/local/nnet3/xvector/prepare_feats_for_egs.sh | 2 +- .../v2/local/nnet3/xvector/tuning/run_xvector_1a.sh | 2 +- egs/dihard_2018/v2/run.sh | 2 +- egs/fame/s5/local/fame_data_prep.sh | 2 +- egs/fame/s5/local/fame_dict_prep.sh | 2 +- egs/fame/s5/local/nnet/run_dnn.sh | 2 +- egs/fame/s5/local/nnet/run_dnn_fbank.sh | 2 +- egs/fame/s5/run.sh | 2 +- egs/fame/v1/local/dnn/run_nnet2_common.sh | 2 +- egs/fame/v1/local/dnn/run_nnet2_multisplice.sh | 2 +- egs/fame/v1/local/dnn/train_dnn.sh | 2 +- egs/fame/v1/local/fame_data_prep.sh | 2 +- egs/fame/v1/local/fame_dict_prep.sh | 2 +- egs/fame/v1/local/plda_scoring.sh | 2 +- egs/fame/v1/local/prepare_train.sh | 2 +- egs/fame/v1/local/scoring_common.sh | 2 +- egs/fame/v1/run.sh | 2 +- egs/fame/v2/run.sh | 2 +- egs/farsdat/s5/local/farsdat_data_prep.sh | 2 +- egs/farsdat/s5/local/farsdat_format_data.sh | 2 +- egs/farsdat/s5/local/farsdat_norm_trans.sh | 2 +- egs/farsdat/s5/local/farsdat_prepare_dict.sh | 2 +- egs/farsdat/s5/local/farsdat_prepare_lm.sh | 2 +- egs/farsdat/s5/local/nnet/run_dnn.sh | 2 +- egs/farsdat/s5/local/score_sclite.sh | 2 +- egs/farsdat/s5/run.sh | 2 +- .../s5/local/callhome_data_prep.sh | 2 +- egs/fisher_callhome_spanish/s5/local/chain/run_tdnn_1g.sh | 2 +- .../s5/local/fsp_create_test_lang.sh | 2 +- egs/fisher_callhome_spanish/s5/local/fsp_data_prep.sh | 2 +- egs/fisher_callhome_spanish/s5/local/fsp_train_lms.sh | 2 +- .../s5/local/nnet3/run_ivector_common.sh | 2 +- egs/fisher_callhome_spanish/s5/local/rnnlm/train_rnnlm.sh | 2 +- egs/fisher_callhome_spanish/s5/local/run_sgmm2x.sh | 2 +- egs/fisher_callhome_spanish/s5/local/subset_data_prep.sh | 2 +- egs/fisher_callhome_spanish/s5/run.sh | 2 +- egs/fisher_english/s5/local/chain/compare_wer_general.sh | 2 +- egs/fisher_english/s5/local/chain/run_tdnn.sh | 2 +- egs/fisher_english/s5/local/fisher_create_test_lang.sh | 2 +- egs/fisher_english/s5/local/fisher_data_prep.sh | 2 +- egs/fisher_english/s5/local/fisher_prepare_dict.sh | 2 +- egs/fisher_english/s5/local/fisher_train_lms.sh | 2 +- egs/fisher_english/s5/local/fisher_train_lms_pocolm.sh | 2 +- egs/fisher_english/s5/local/nnet2/run_6c_gpu.sh | 2 +- egs/fisher_english/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/fisher_english/s5/local/online/run_nnet2.sh | 2 +- egs/fisher_english/s5/local/online/run_nnet2_b.sh | 2 +- egs/fisher_english/s5/local/online/run_nnet2_common.sh | 2 +- .../s5/local/online/run_nnet2_discriminative.sh | 2 +- .../s5/local/online/run_nnet2_multisplice.sh | 2 +- egs/fisher_english/s5/local/run_data_cleaning.sh | 2 +- egs/fisher_english/s5/local/run_nnet2.sh | 2 +- egs/fisher_english/s5/local/run_unk_model.sh | 2 +- .../chain/tuning/run_tdnn_100k_semisupervised_1a.sh | 2 +- .../s5/local/semisup/chain/tuning/run_tdnn_1a.sh | 2 +- .../chain/tuning/run_tdnn_50k_semisupervised_1a.sh | 2 +- egs/fisher_english/s5/local/semisup/run_100k.sh | 2 +- egs/fisher_english/s5/local/semisup/run_50k.sh | 2 +- egs/fisher_english/s5/run.sh | 2 +- egs/fisher_swbd/s5/local/chain/run_blstm_6h.sh | 2 +- egs/fisher_swbd/s5/local/chain/run_blstm_6j.sh | 2 +- egs/fisher_swbd/s5/local/chain/run_tdnn_7b.sh | 2 +- egs/fisher_swbd/s5/local/chain/run_tdnn_7c.sh | 2 +- egs/fisher_swbd/s5/local/chain/run_tdnn_7d.sh | 2 +- egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1a.sh | 2 +- egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1a_svd.sh | 2 +- egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1b.sh | 2 +- egs/fisher_swbd/s5/local/chain/run_tdnn_opgru_1a.sh | 2 +- egs/fisher_swbd/s5/local/chain/run_tdnn_opgru_1b.sh | 2 +- egs/fisher_swbd/s5/local/eval2000_data_prep.sh | 2 +- egs/fisher_swbd/s5/local/fisher_create_test_lang.sh | 2 +- egs/fisher_swbd/s5/local/fisher_create_test_lang_fsh.sh | 2 +- egs/fisher_swbd/s5/local/fisher_data_prep.sh | 2 +- egs/fisher_swbd/s5/local/fisher_prepare_dict.sh | 2 +- egs/fisher_swbd/s5/local/fisher_swbd_prepare_dict.sh | 2 +- egs/fisher_swbd/s5/local/fisher_train_lms.sh | 2 +- egs/fisher_swbd/s5/local/fisher_train_lms_fsh.sh | 2 +- egs/fisher_swbd/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/fisher_swbd/s5/local/online/run_nnet2_common.sh | 2 +- egs/fisher_swbd/s5/local/online/run_nnet2_ms.sh | 2 +- egs/fisher_swbd/s5/local/rt03_data_prep.sh | 2 +- egs/fisher_swbd/s5/local/score.sh | 2 +- egs/fisher_swbd/s5/local/score_basic.sh | 2 +- egs/fisher_swbd/s5/local/score_sclite.sh | 2 +- egs/fisher_swbd/s5/local/score_sclite_conf.sh | 2 +- egs/fisher_swbd/s5/local/swbd1_data_download.sh | 2 +- egs/fisher_swbd/s5/local/swbd1_data_prep.sh | 2 +- egs/fisher_swbd/s5/local/swbd1_prepare_dict.sh | 2 +- egs/fisher_swbd/s5/run.sh | 2 +- egs/formosa/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/formosa/s5/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/formosa/s5/local/chain/tuning/run_tdnn_1c.sh | 2 +- egs/formosa/s5/local/chain/tuning/run_tdnn_1d.sh | 2 +- egs/formosa/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/formosa/s5/local/nnet3/run_tdnn.sh | 2 +- egs/formosa/s5/local/prepare_data.sh | 2 +- egs/formosa/s5/local/prepare_dict.sh | 2 +- egs/formosa/s5/local/prepare_lm.sh | 2 +- egs/formosa/s5/local/run_cleanup_segmentation.sh | 2 +- egs/formosa/s5/local/score.sh | 2 +- egs/formosa/s5/local/train_lms.sh | 2 +- egs/formosa/s5/run.sh | 2 +- egs/gale_arabic/s5/local/gale_data_prep_txt.sh | 2 +- egs/gale_arabic/s5/local/gale_format_data.sh | 2 +- egs/gale_arabic/s5/local/gale_prep_dict.sh | 2 +- egs/gale_arabic/s5/local/gale_train_lms.sh | 2 +- egs/gale_arabic/s5/local/nnet/run_lstm.sh | 2 +- egs/gale_arabic/s5/local/online/run_nnet2.sh | 2 +- egs/gale_arabic/s5/local/run_sgmm.sh | 2 +- egs/gale_arabic/s5/local/score.sh | 2 +- egs/gale_arabic/s5/local/score_combine.sh | 2 +- egs/gale_arabic/s5/local/score_mbr.sh | 2 +- egs/gale_arabic/s5/local/split_wer.sh | 2 +- egs/gale_arabic/s5/local/split_wer_per_corpus.sh | 2 +- egs/gale_arabic/s5/run.sh | 2 +- egs/gale_arabic/s5b/local/chain/compare_wer.sh | 2 +- egs/gale_arabic/s5b/local/chain/run_chain_common.sh | 2 +- egs/gale_arabic/s5b/local/chain/tuning/run_tdnn_1a.sh | 2 +- .../s5b/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/gale_arabic/s5b/local/nnet3/run_ivector_common.sh | 2 +- egs/gale_arabic/s5b/local/nnet3/tuning/run_lstm_1a.sh | 2 +- egs/gale_arabic/s5b/local/nnet3/tuning/run_tdnn_1a.sh | 2 +- egs/gale_arabic/s5b/local/prepare_lm.sh | 2 +- egs/gale_arabic/s5b/local/score.sh | 2 +- egs/gale_arabic/s5b/local/split_wer.sh | 2 +- egs/gale_arabic/s5c/local/chain/compare_wer.sh | 2 +- egs/gale_arabic/s5c/local/chain/run_chain_common.sh | 2 +- egs/gale_arabic/s5c/local/chain/tuning/run_tdnn_1a.sh | 2 +- .../s5c/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/gale_arabic/s5c/local/nnet3/run_ivector_common.sh | 2 +- egs/gale_arabic/s5c/local/nnet3/tuning/run_lstm_1a.sh | 2 +- egs/gale_arabic/s5c/local/nnet3/tuning/run_tdnn_1a.sh | 2 +- egs/gale_arabic/s5c/local/prepare_lm.sh | 2 +- egs/gale_arabic/s5c/local/prepare_lm_subword.sh | 2 +- egs/gale_arabic/s5c/local/score.sh | 2 +- egs/gale_arabic/s5c/local/split_wer.sh | 2 +- egs/gale_arabic/s5d/local/chain/compare_wer.sh | 2 +- egs/gale_arabic/s5d/local/chain/run_chain_common.sh | 2 +- egs/gale_arabic/s5d/local/chain/tuning/run_tdnn_1a.sh | 2 +- .../s5d/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/gale_arabic/s5d/local/gale_train_lms.sh | 2 +- egs/gale_arabic/s5d/local/nnet3/run_ivector_common.sh | 2 +- egs/gale_arabic/s5d/local/nnet3/tuning/run_lstm_1a.sh | 2 +- egs/gale_arabic/s5d/local/nnet3/tuning/run_tdnn_1a.sh | 2 +- egs/gale_arabic/s5d/local/prepare_arabic_giga.sh | 2 +- egs/gale_arabic/s5d/local/prepare_lm.sh | 2 +- egs/gale_arabic/s5d/local/prepare_lm_pocolm.sh | 2 +- egs/gale_arabic/s5d/local/rnnlm/run_tdnn_lstm.sh | 2 +- egs/gale_arabic/s5d/local/score.sh | 2 +- egs/gale_arabic/s5d/local/split_wer.sh | 2 +- egs/gale_mandarin/s5/local/gale_data_prep_audio.sh | 2 +- egs/gale_mandarin/s5/local/gale_data_prep_split.sh | 2 +- egs/gale_mandarin/s5/local/gale_data_prep_txt.sh | 2 +- egs/gale_mandarin/s5/local/gale_format_data.sh | 2 +- egs/gale_mandarin/s5/local/gale_prep_dict.sh | 2 +- egs/gale_mandarin/s5/local/gale_train_lms.sh | 2 +- egs/gale_mandarin/s5/local/nnet/run_dnn.sh | 2 +- egs/gale_mandarin/s5/local/score_combine.sh | 2 +- egs/gale_mandarin/s5/local/score_mbr.sh | 2 +- egs/gale_mandarin/s5/local/split_wer_per_corpus.sh | 2 +- egs/gale_mandarin/s5/run.sh | 2 +- egs/gop/s5/local/make_testcase.sh | 2 +- egs/gop/s5/run.sh | 2 +- egs/gp/s1/install.sh | 2 +- egs/gp/s1/local/gp_train_multi_ubm.sh | 2 +- egs/gp/s1/steps/align_deltas.sh | 2 +- egs/gp/s1/steps/decode_deltas.sh | 2 +- egs/gp/s1/steps/train_deltas.sh | 2 +- egs/gp/s1/steps/train_mono.sh | 2 +- egs/gp/s1/steps/train_trees.sh | 2 +- egs/gp/s1/steps/train_ubm_deltas.sh | 2 +- egs/gp/s1/utils/lmrescore.sh | 2 +- egs/gp/s1/utils/mkgraph.sh | 2 +- egs/gp/s1/utils/score_lats.sh | 2 +- egs/gp/s1/utils/score_sclite.sh | 2 +- egs/gp/s1/utils/score_text.sh | 2 +- egs/gp/s1/utils/split_data.sh | 2 +- egs/gp/s5/local/gp_install.sh | 2 +- egs/gp/s5/local/score.sh | 2 +- egs/heroico/s5/local/chain/compare_wer.sh | 2 +- egs/heroico/s5/local/chain/tuning/run_cnn_tdnn_1a.sh | 2 +- egs/heroico/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/heroico/s5/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/heroico/s5/local/get_wav_list.sh | 2 +- egs/heroico/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/heroico/s5/local/prepare_data.sh | 2 +- egs/heroico/s5/local/prepare_lm.sh | 2 +- egs/heroico/s5/local/subs_download.sh | 2 +- egs/heroico/s5/run.sh | 2 +- egs/hkust/s5/local/chain/compare_wer.sh | 2 +- egs/hkust/s5/local/chain/tuning/run_tdnn_2a.sh | 2 +- egs/hkust/s5/local/ext/score.sh | 2 +- egs/hkust/s5/local/ext/score_basic_ext.sh | 2 +- egs/hkust/s5/local/hkust_data_prep.sh | 2 +- egs/hkust/s5/local/hkust_format_data.sh | 2 +- egs/hkust/s5/local/hkust_prepare_dict.sh | 2 +- egs/hkust/s5/local/hkust_train_lms.sh | 2 +- egs/hkust/s5/local/nnet/run_cnn.sh | 2 +- egs/hkust/s5/local/nnet/run_dnn.sh | 2 +- egs/hkust/s5/local/nnet/run_lstm.sh | 2 +- egs/hkust/s5/local/nnet2/run_5d.sh | 2 +- egs/hkust/s5/local/nnet2/run_convnet.sh | 2 +- egs/hkust/s5/local/nnet3/compare_wer.sh | 2 +- egs/hkust/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/hkust/s5/local/nnet3/run_lstm.sh | 2 +- egs/hkust/s5/local/nnet3/tuning/run_tdnn_2a.sh | 2 +- egs/hkust/s5/local/online/run_nnet2_common.sh | 2 +- egs/hkust/s5/local/online/run_nnet2_ms.sh | 2 +- egs/hkust/s5/local/run_discriminative.sh | 2 +- egs/hkust/s5/local/run_sgmm.sh | 2 +- egs/hkust/s5/local/score.sh | 2 +- egs/hkust/s5/run.sh | 2 +- .../s5/local/data_prep/prepare_1996_bn_data.sh | 2 +- .../s5/local/data_prep/prepare_1997_bn_data.sh | 2 +- egs/hub4_english/s5/local/format_lms.sh | 2 +- egs/hub4_english/s5/local/prepare_dict.sh | 2 +- egs/hub4_english/s5/local/run_cleanup_segmentation.sh | 2 +- egs/hub4_english/s5/local/run_segmentation_wsj.sh | 2 +- egs/hub4_english/s5/local/score_sclite.sh | 2 +- egs/hub4_english/s5/local/train_lm.sh | 2 +- egs/hub4_english/s5/run.sh | 2 +- egs/hub4_spanish/s5/local/chain/compare_wer.sh | 2 +- egs/hub4_spanish/s5/local/chain/tuning/run_cnn_tdnn_1a.sh | 2 +- egs/hub4_spanish/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/hub4_spanish/s5/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/hub4_spanish/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/hub4_spanish/s5/local/prepare_data.sh | 2 +- egs/hub4_spanish/s5/local/prepare_lexicon.sh | 2 +- egs/hub4_spanish/s5/local/reestimate_langp.sh | 2 +- egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_1a.sh | 2 +- egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_1b.sh | 2 +- egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_tdnn.sh | 2 +- egs/hub4_spanish/s5/local/run_sgmm2.sh | 2 +- egs/hub4_spanish/s5/local/train_lms_srilm.sh | 2 +- egs/hub4_spanish/s5/run.sh | 2 +- egs/iam/v1/local/augment_data.sh | 2 +- egs/iam/v1/local/chain/compare_wer.sh | 2 +- egs/iam/v1/local/chain/tuning/run_cnn_1a.sh | 2 +- egs/iam/v1/local/chain/tuning/run_cnn_chainali_1a.sh | 2 +- egs/iam/v1/local/chain/tuning/run_cnn_chainali_1b.sh | 2 +- egs/iam/v1/local/chain/tuning/run_cnn_chainali_1c.sh | 2 +- egs/iam/v1/local/chain/tuning/run_cnn_chainali_1d.sh | 2 +- egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1a.sh | 2 +- egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1b.sh | 2 +- egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1c.sh | 2 +- egs/iam/v1/local/chain/tuning/run_e2e_cnn_1a.sh | 2 +- egs/iam/v1/local/extract_features.sh | 2 +- egs/iam/v1/local/prepare_data.sh | 2 +- egs/iam/v1/local/score.sh | 2 +- egs/iam/v1/local/train_lm.sh | 2 +- egs/iam/v1/run.sh | 2 +- egs/iam/v1/run_end2end.sh | 2 +- egs/iam/v2/local/augment_data.sh | 2 +- egs/iam/v2/local/chain/compare_wer.sh | 2 +- egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1a.sh | 2 +- egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1b.sh | 2 +- egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1c.sh | 2 +- egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1d.sh | 2 +- egs/iam/v2/local/chain/tuning/run_e2e_cnn_1a.sh | 2 +- egs/iam/v2/local/chain/tuning/run_e2e_cnn_1b.sh | 2 +- egs/iam/v2/local/extract_features.sh | 2 +- egs/iam/v2/local/prepare_data.sh | 2 +- egs/iam/v2/local/score.sh | 2 +- egs/iam/v2/local/train_lm.sh | 2 +- egs/iam/v2/run_end2end.sh | 2 +- egs/iban/s5/local/arpa2G.sh | 2 +- egs/iban/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/iban/s5/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/iban/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/iban/s5/local/nnet3/tuning/run_tdnn_1a.sh | 2 +- egs/iban/s5/local/prepare_data.sh | 2 +- egs/iban/s5/local/prepare_dict.sh | 2 +- egs/iban/s5/local/prepare_lm.sh | 2 +- egs/iban/s5/local/train_lms_srilm.sh | 2 +- egs/iban/s5/run.sh | 2 +- egs/ifnenit/v1/local/chain/compare_wer.sh | 2 +- egs/ifnenit/v1/local/chain/run_cnn_1a.sh | 2 +- egs/ifnenit/v1/local/chain/run_cnn_chainali_1a.sh | 2 +- egs/ifnenit/v1/local/ienit_initialize.sh | 2 +- egs/ifnenit/v1/local/prepare_data.sh | 2 +- egs/ifnenit/v1/local/prepare_dict.sh | 2 +- egs/ifnenit/v1/path.sh | 2 +- egs/ifnenit/v1/run.sh | 2 +- egs/librispeech/s5/local/chain/compare_wer.sh | 2 +- egs/librispeech/s5/local/chain/run_chain_common.sh | 2 +- egs/librispeech/s5/local/chain/run_tdnn_discriminative.sh | 2 +- egs/librispeech/s5/local/chain/tuning/run_cnn_tdnn_1a.sh | 2 +- egs/librispeech/s5/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/librispeech/s5/local/chain/tuning/run_tdnn_1c.sh | 2 +- egs/librispeech/s5/local/chain/tuning/run_tdnn_1d.sh | 2 +- egs/librispeech/s5/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/librispeech/s5/local/chain/tuning/run_tdnn_lstm_1b.sh | 2 +- egs/librispeech/s5/local/data_prep.sh | 2 +- egs/librispeech/s5/local/decode_example.sh | 2 +- egs/librispeech/s5/local/download_and_untar.sh | 2 +- egs/librispeech/s5/local/download_lm.sh | 2 +- egs/librispeech/s5/local/format_data.sh | 2 +- egs/librispeech/s5/local/format_lms.sh | 2 +- egs/librispeech/s5/local/g2p.sh | 2 +- egs/librispeech/s5/local/g2p/train_g2p.sh | 2 +- egs/librispeech/s5/local/lm/install_festival.sh | 2 +- egs/librispeech/s5/local/lm/normalize_text.sh | 2 +- egs/librispeech/s5/local/lm/train_lm.sh | 2 +- egs/librispeech/s5/local/nnet2/run_5a_clean_100.sh | 2 +- egs/librispeech/s5/local/nnet2/run_5c.sh | 2 +- egs/librispeech/s5/local/nnet2/run_6a_clean_460.sh | 2 +- egs/librispeech/s5/local/nnet2/run_7a_960.sh | 2 +- egs/librispeech/s5/local/nnet3/compare_wer.sh | 2 +- egs/librispeech/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/librispeech/s5/local/nnet3/run_tdnn_discriminative.sh | 2 +- egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1a.sh | 2 +- egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1b.sh | 2 +- egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1c.sh | 2 +- egs/librispeech/s5/local/online/run_nnet2.sh | 2 +- egs/librispeech/s5/local/online/run_nnet2_common.sh | 2 +- egs/librispeech/s5/local/online/run_nnet2_disc.sh | 2 +- egs/librispeech/s5/local/online/run_nnet2_ms.sh | 2 +- egs/librispeech/s5/local/online/run_nnet2_ms_disc.sh | 2 +- egs/librispeech/s5/local/online_pitch/run_nnet2_common.sh | 2 +- egs/librispeech/s5/local/online_pitch/run_nnet2_ms.sh | 2 +- egs/librispeech/s5/local/prepare_dict.sh | 2 +- egs/librispeech/s5/local/prepare_example_data.sh | 2 +- egs/librispeech/s5/local/rnnlm/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/librispeech/s5/local/run_cleanup_segmentation.sh | 2 +- egs/librispeech/s5/local/run_data_cleaning.sh | 2 +- egs/librispeech/s5/local/run_nnet2.sh | 2 +- egs/librispeech/s5/local/run_nnet2_clean_100.sh | 2 +- egs/librispeech/s5/local/run_nnet2_clean_460.sh | 2 +- egs/librispeech/s5/local/run_rnnlm.sh | 2 +- egs/librispeech/s5/local/score.sh | 2 +- egs/librispeech/s5/run.sh | 2 +- egs/lre/v1/lid/extract_ivectors.sh | 2 +- egs/lre/v1/lid/get_vtln_warps.sh | 2 +- egs/lre/v1/lid/train_diag_ubm.sh | 2 +- egs/lre/v1/lid/train_full_ubm.sh | 2 +- egs/lre/v1/lid/train_ivector_extractor.sh | 2 +- egs/lre/v1/lid/train_lvtln_model.sh | 2 +- egs/lre/v1/local/split_long_utts.sh | 2 +- egs/lre/v1/run.sh | 2 +- egs/lre/v1/run_logistic_regression.sh | 2 +- egs/lre07/v1/lid/extract_ivectors.sh | 2 +- egs/lre07/v1/lid/extract_ivectors_dnn.sh | 2 +- egs/lre07/v1/lid/get_vtln_warps.sh | 2 +- egs/lre07/v1/lid/init_full_ubm_from_dnn.sh | 2 +- egs/lre07/v1/lid/nnet2/get_egs2.sh | 2 +- egs/lre07/v1/lid/nnet2/get_lda.sh | 2 +- egs/lre07/v1/lid/nnet2/train_multisplice_accel2.sh | 2 +- egs/lre07/v1/lid/run_logistic_regression.sh | 2 +- egs/lre07/v1/lid/train_diag_ubm.sh | 2 +- egs/lre07/v1/lid/train_full_ubm.sh | 2 +- egs/lre07/v1/lid/train_ivector_extractor.sh | 2 +- egs/lre07/v1/lid/train_ivector_extractor_dnn.sh | 2 +- egs/lre07/v1/lid/train_lvtln_model.sh | 2 +- egs/lre07/v1/local/lre07_eval/lre07_eval.sh | 2 +- egs/lre07/v1/local/split_long_utts.sh | 2 +- egs/lre07/v1/run.sh | 2 +- egs/lre07/v2/local/dnn/fisher_data_prep.sh | 2 +- egs/lre07/v2/local/dnn/fisher_prepare_dict.sh | 2 +- egs/lre07/v2/local/dnn/fisher_train_lms.sh | 2 +- egs/lre07/v2/local/dnn/remove_dup_utts.sh | 2 +- egs/lre07/v2/local/dnn/run_nnet2_common.sh | 2 +- egs/lre07/v2/local/dnn/run_nnet2_multisplice.sh | 2 +- egs/lre07/v2/local/dnn/train_dnn.sh | 2 +- egs/lre07/v2/local/lre07_eval/lre07_eval.sh | 2 +- egs/lre07/v2/local/split_long_utts.sh | 2 +- egs/lre07/v2/run.sh | 2 +- egs/madcat_ar/v1/local/chain/compare_wer.sh | 2 +- egs/madcat_ar/v1/local/chain/tuning/run_cnn_1a.sh | 2 +- .../v1/local/chain/tuning/run_cnn_chainali_1a.sh | 2 +- egs/madcat_ar/v1/local/chain/tuning/run_cnn_e2eali_1a.sh | 2 +- egs/madcat_ar/v1/local/chain/tuning/run_cnn_e2eali_1b.sh | 2 +- egs/madcat_ar/v1/local/chain/tuning/run_e2e_cnn_1a.sh | 2 +- egs/madcat_ar/v1/local/extract_features.sh | 2 +- egs/madcat_ar/v1/local/extract_lines.sh | 2 +- egs/madcat_ar/v1/local/prepare_data.sh | 2 +- egs/madcat_ar/v1/local/score.sh | 2 +- egs/madcat_ar/v1/local/tl/augment_data.sh | 2 +- egs/madcat_ar/v1/local/tl/chain/run_cnn_e2eali.sh | 2 +- egs/madcat_ar/v1/local/tl/chain/run_e2e_cnn.sh | 2 +- egs/madcat_ar/v1/local/tl/run_text_localization.sh | 2 +- egs/madcat_ar/v1/local/tl/train_lm.sh | 2 +- egs/madcat_ar/v1/local/train_lm.sh | 2 +- egs/madcat_ar/v1/run.sh | 2 +- egs/madcat_ar/v1/run_end2end.sh | 2 +- egs/madcat_zh/v1/local/chain/compare_wer.sh | 2 +- egs/madcat_zh/v1/local/chain/tuning/run_cnn_1a.sh | 2 +- .../v1/local/chain/tuning/run_cnn_chainali_1a.sh | 2 +- .../v1/local/chain/tuning/run_cnn_chainali_1b.sh | 2 +- egs/madcat_zh/v1/local/chain/tuning/run_e2e_cnn_1a.sh | 2 +- egs/madcat_zh/v1/local/extract_features.sh | 2 +- egs/madcat_zh/v1/local/extract_lines.sh | 2 +- egs/madcat_zh/v1/local/prepare_data.sh | 2 +- egs/madcat_zh/v1/local/score.sh | 2 +- egs/madcat_zh/v1/local/train_lm.sh | 2 +- egs/madcat_zh/v1/run.sh | 2 +- egs/madcat_zh/v1/run_end2end.sh | 2 +- egs/malach/s5/local/chain/compare_wer_general.sh | 2 +- egs/malach/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/malach/s5/local/malach_data_prep.sh | 2 +- egs/malach/s5/local/malach_prepare_dict.sh | 2 +- egs/malach/s5/local/malach_scoring_data_prep.sh | 2 +- egs/malach/s5/local/malach_text_prep.sh | 2 +- egs/malach/s5/local/malach_train_lms.sh | 2 +- egs/malach/s5/local/nnet3/prepare_lores_feats.sh | 2 +- egs/malach/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_1a.sh | 2 +- egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_1b.sh | 2 +- egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh | 2 +- egs/malach/s5/local/run_cleanup_segmentation.sh | 2 +- egs/malach/s5/local/score.sh | 2 +- egs/malach/s5/local/score_asclite.sh | 2 +- egs/malach/s5/run.sh | 2 +- egs/mandarin_bn_bc/s5/local/chain/run_chain_common.sh | 2 +- egs/mandarin_bn_bc/s5/local/chain/tuning/run_tdnn_1d.sh | 2 +- egs/mandarin_bn_bc/s5/local/check_oov_rate.sh | 2 +- egs/mandarin_bn_bc/s5/local/gale_data_prep_audio.sh | 2 +- egs/mandarin_bn_bc/s5/local/gale_data_prep_split.sh | 2 +- egs/mandarin_bn_bc/s5/local/gale_data_prep_txt.sh | 2 +- egs/mandarin_bn_bc/s5/local/gigaword_prep_txt.sh | 2 +- egs/mandarin_bn_bc/s5/local/mandarin_format_lms.sh | 2 +- egs/mandarin_bn_bc/s5/local/mandarin_merge_dict.sh | 2 +- egs/mandarin_bn_bc/s5/local/mandarin_mix_lm.sh | 2 +- egs/mandarin_bn_bc/s5/local/mandarin_prepare_dict.sh | 2 +- egs/mandarin_bn_bc/s5/local/mandarin_prepare_lm.sh | 2 +- egs/mandarin_bn_bc/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/mandarin_bn_bc/s5/local/rnnlm/run_tdnn_lstm_1a.sh | 2 +- egs/mandarin_bn_bc/s5/local/score.sh | 2 +- egs/mandarin_bn_bc/s5/local/tdt_cleanup.sh | 2 +- .../s5/local/tdt_mandarin_data_prep_audio.sh | 2 +- .../s5/local/tdt_mandarin_data_prep_filter.sh | 2 +- egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_txt.sh | 2 +- egs/mandarin_bn_bc/s5/local/train_lms.sh | 2 +- egs/mandarin_bn_bc/s5/run.sh | 2 +- egs/material/s5/local/chain/decode_test.sh | 2 +- egs/material/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/material/s5/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/material/s5/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/material/s5/local/g2p/apply_g2p.sh | 2 +- egs/material/s5/local/g2p/train_g2p.sh | 2 +- egs/material/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/material/s5/local/prepare_audio_data.sh | 2 +- egs/material/s5/local/prepare_dict.sh | 2 +- egs/material/s5/local/prepare_text_data.sh | 2 +- egs/material/s5/local/preprocess_external_text.sh | 2 +- egs/material/s5/local/rnnlm/run_tdnn_lstm.sh | 2 +- egs/material/s5/local/rnnlm/run_tdnn_lstm_2.sh | 2 +- egs/material/s5/local/score.sh | 2 +- egs/material/s5/local/score_segments.sh | 2 +- egs/material/s5/local/score_stm.sh | 2 +- egs/material/s5/local/score_wer_segments.sh | 2 +- egs/material/s5/local/semisup/chain/decode_test.sh | 2 +- egs/material/s5/local/semisup/chain/tuning/run_tdnn_1a.sh | 2 +- .../semisup/chain/tuning/run_tdnn_semisupervised_1a.sh | 2 +- egs/material/s5/local/semisup/rnnlm/run_tdnn_lstm.sh | 2 +- egs/material/s5/local/semisup/run.sh | 2 +- egs/material/s5/local/train_lms_srilm.sh | 2 +- egs/material/s5/run.sh | 2 +- egs/mgb2_arabic/s5/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- .../s5/local/chain/tuning/run_tdnn_lstm_1a_disc.sh | 2 +- egs/mgb2_arabic/s5/local/graphgeme_mgb_prep_dict.sh | 2 +- egs/mgb2_arabic/s5/local/mgb_data_prep.sh | 2 +- egs/mgb2_arabic/s5/local/mgb_format_data.sh | 2 +- egs/mgb2_arabic/s5/local/mgb_prep_full_data.sh | 2 +- egs/mgb2_arabic/s5/local/mgb_prep_original_data.sh | 2 +- egs/mgb2_arabic/s5/local/mgb_train_lms.sh | 2 +- egs/mgb2_arabic/s5/local/mgb_train_lms_extra.sh | 2 +- egs/mgb2_arabic/s5/local/mgb_train_lms_extra_pocolm.sh | 2 +- egs/mgb2_arabic/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/mgb2_arabic/s5/local/run_cleanup_segmentation.sh | 2 +- egs/mgb2_arabic/s5/local/score.sh | 2 +- egs/mgb2_arabic/s5/local/score_combine.sh | 2 +- egs/mgb2_arabic/s5/local/score_mbr.sh | 2 +- egs/mgb2_arabic/s5/local/score_sclite.sh | 2 +- egs/mgb2_arabic/s5/run.sh | 2 +- egs/mgb5/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/mgb5/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/mgb5/s5/local/prepare_data.sh | 2 +- egs/mgb5/s5/local/prepare_lm.sh | 2 +- egs/mgb5/s5/local/score.sh | 2 +- egs/mgb5/s5/local/train_lms_srilm.sh | 2 +- egs/mgb5/s5/run.sh | 2 +- egs/mini_librispeech/s5/local/chain/compare_wer.sh | 2 +- .../s5/local/chain/tuning/run_cnn_tdnn_1a.sh | 2 +- .../s5/local/chain/tuning/run_cnn_tdnn_1b.sh | 2 +- egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1c.sh | 2 +- .../s5/local/chain/tuning/run_tdnn_1c_discriminative.sh | 2 +- egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1d.sh | 2 +- egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1e.sh | 2 +- egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1f.sh | 2 +- egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1g.sh | 2 +- .../s5/local/chain/tuning/run_tdnn_1g20.sh | 2 +- egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1h.sh | 2 +- egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1i.sh | 2 +- egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1j.sh | 2 +- egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1k.sh | 2 +- egs/mini_librispeech/s5/local/download_and_untar.sh | 2 +- egs/mini_librispeech/s5/local/download_lm.sh | 2 +- egs/mini_librispeech/s5/local/kws/compile_keywords.sh | 2 +- egs/mini_librispeech/s5/local/kws/create_hitlist.sh | 2 +- egs/mini_librispeech/s5/local/kws/make_L_align.sh | 2 +- egs/mini_librispeech/s5/local/kws/run_kws.sh | 2 +- egs/mini_librispeech/s5/local/kws/score.sh | 2 +- egs/mini_librispeech/s5/local/kws/search.sh | 2 +- egs/mini_librispeech/s5/local/nnet3/compare_wer.sh | 2 +- egs/mini_librispeech/s5/local/nnet3/run_ivector_common.sh | 2 +- .../s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh | 2 +- .../s5/local/nnet3/tuning/run_tdnn_lstm_1b.sh | 2 +- .../s5/local/nnet3/tuning/run_tdnn_lstm_1c.sh | 2 +- egs/mini_librispeech/s5/local/score.sh | 2 +- egs/mini_librispeech/s5/local/subset_dataset.sh | 2 +- egs/mini_librispeech/s5/run.sh | 2 +- egs/multi_cn/s5/local/aidatatang_data_prep.sh | 2 +- egs/multi_cn/s5/local/aidatatang_download_and_untar.sh | 2 +- egs/multi_cn/s5/local/aishell_data_prep.sh | 2 +- egs/multi_cn/s5/local/aishell_download_and_untar.sh | 2 +- egs/multi_cn/s5/local/chain/compare_cer.sh | 2 +- egs/multi_cn/s5/local/chain/run_chain_common.sh | 2 +- egs/multi_cn/s5/local/chain/run_ivector_common.sh | 2 +- egs/multi_cn/s5/local/chain/tuning/run_cnn_tdnn_1a.sh | 2 +- egs/multi_cn/s5/local/chain/tuning/run_cnn_tdnn_1b.sh | 2 +- egs/multi_cn/s5/local/magicdata_data_prep.sh | 2 +- egs/multi_cn/s5/local/magicdata_download_and_untar.sh | 2 +- egs/multi_cn/s5/local/prepare_dict.sh | 2 +- egs/multi_cn/s5/local/primewords_data_prep.sh | 2 +- egs/multi_cn/s5/local/primewords_download_and_untar.sh | 2 +- egs/multi_cn/s5/local/run_cleanup_segmentation.sh | 2 +- egs/multi_cn/s5/local/score.sh | 2 +- egs/multi_cn/s5/local/stcmds_data_prep.sh | 2 +- egs/multi_cn/s5/local/stcmds_download_and_untar.sh | 2 +- egs/multi_cn/s5/local/thchs-30_data_prep.sh | 2 +- egs/multi_cn/s5/local/thchs_download_and_untar.sh | 2 +- egs/multi_cn/s5/local/train_corpus_lm.sh | 2 +- egs/multi_cn/s5/local/train_lms.sh | 2 +- egs/multi_cn/s5/run.sh | 2 +- egs/multi_en/s5/local/ami_ihm_data_prep.sh | 2 +- egs/multi_en/s5/local/ami_sdm_data_prep.sh | 2 +- egs/multi_en/s5/local/ami_text_prep.sh | 2 +- egs/multi_en/s5/local/ami_xml2text.sh | 2 +- egs/multi_en/s5/local/chain/run_blstm_6h.sh | 2 +- egs/multi_en/s5/local/chain/tuning/run_tdnn_5b.sh | 2 +- egs/multi_en/s5/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/multi_en/s5/local/chain/tuning/run_tdnn_opgru_1a.sh | 2 +- egs/multi_en/s5/local/chain/tuning/run_tdnn_opgru_1b.sh | 2 +- egs/multi_en/s5/local/cmu_tedlium_prepare_dict.sh | 2 +- egs/multi_en/s5/local/eval2000_data_prep.sh | 2 +- egs/multi_en/s5/local/fisher_data_prep.sh | 2 +- egs/multi_en/s5/local/hub4_96_data_prep.sh | 4 ++-- egs/multi_en/s5/local/hub4_97_data_prep.sh | 2 +- egs/multi_en/s5/local/hub4_en_data_prep.sh | 2 +- egs/multi_en/s5/local/librispeech_data_prep.sh | 2 +- egs/multi_en/s5/local/librispeech_lm_decode.sh | 2 +- egs/multi_en/s5/local/make_partitions.sh | 2 +- egs/multi_en/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/multi_en/s5/local/nnet3/run_tdnn.sh | 2 +- egs/multi_en/s5/local/prepare_dict.sh | 2 +- egs/multi_en/s5/local/rt03_data_prep.sh | 2 +- egs/multi_en/s5/local/score.sh | 2 +- egs/multi_en/s5/local/score_sclite.sh | 2 +- egs/multi_en/s5/local/swbd1_data_download.sh | 2 +- egs/multi_en/s5/local/swbd1_data_prep.sh | 2 +- egs/multi_en/s5/local/swbd1_prepare_dict.sh | 2 +- egs/multi_en/s5/local/tedlium_lm_decode.sh | 2 +- egs/multi_en/s5/local/tedlium_prepare_data.sh | 2 +- egs/multi_en/s5/local/train_lms.sh | 2 +- egs/multi_en/s5/local/wsj_data_prep.sh | 2 +- egs/multi_en/s5/local/wsj_format_data.sh | 2 +- egs/multi_en/s5/run.sh | 2 +- egs/ptb/s5/local/rnnlm/download_ptb.sh | 2 +- egs/ptb/s5/local/rnnlm/prepare_rnnlm_data.sh | 2 +- egs/ptb/s5/local/rnnlm/train_backoff_lm.sh | 2 +- egs/ptb/s5/local/rnnlm/train_backoff_lm2.sh | 2 +- egs/ptb/s5/local/rnnlm/tuning/run_tdnn_a.sh | 2 +- egs/ptb/s5/run.sh | 2 +- egs/reverb/s5/local/chain/compare_wer.sh | 2 +- egs/reverb/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/reverb/s5/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/reverb/s5/local/compute_se_scores.sh | 2 +- egs/reverb/s5/local/download_se_eval_tool.sh | 2 +- egs/reverb/s5/local/generate_data.sh | 2 +- egs/reverb/s5/local/get_results.sh | 2 +- egs/reverb/s5/local/nnet3/compare_wer.sh | 2 +- egs/reverb/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/reverb/s5/local/prepare_real_data.sh | 2 +- egs/reverb/s5/local/prepare_simu_data.sh | 2 +- egs/reverb/s5/local/run_beamform.sh | 2 +- egs/reverb/s5/local/run_wpe.sh | 2 +- egs/reverb/s5/local/score.sh | 2 +- egs/reverb/s5/local/wsj_prepare_beep_dict.sh | 2 +- egs/reverb/s5/local/wsjcam0_data_prep.sh | 2 +- egs/reverb/s5/local/wsjcam0_format_data.sh | 2 +- egs/reverb/s5/run.sh | 2 +- egs/rimes/v1/local/chain/compare_wer.sh | 2 +- egs/rimes/v1/local/chain/tuning/run_cnn_e2eali_1a.sh | 2 +- egs/rimes/v1/local/chain/tuning/run_e2e_cnn_1a.sh | 2 +- egs/rimes/v1/local/extract_features.sh | 2 +- egs/rimes/v1/local/prepare_data.sh | 2 +- egs/rimes/v1/local/score.sh | 2 +- egs/rimes/v1/local/score_paragraph.sh | 2 +- egs/rimes/v1/local/train_lm.sh | 2 +- egs/rimes/v1/run_end2end.sh | 2 +- egs/rm/s5/local/chain/tuning/run_tdnn_5g.sh | 2 +- egs/rm/s5/local/chain/tuning/run_tdnn_5n.sh | 2 +- egs/rm/s5/local/chain/tuning/run_tdnn_5o.sh | 2 +- egs/rm/s5/local/chain/tuning/run_tdnn_5p.sh | 2 +- egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1a.sh | 2 +- egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1b.sh | 2 +- egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1c.sh | 2 +- egs/rm/s5/local/nnet/run_autoencoder.sh | 2 +- egs/rm/s5/local/nnet/run_blocksoftmax.sh | 2 +- egs/rm/s5/local/nnet/run_blstm.sh | 2 +- egs/rm/s5/local/nnet/run_cnn.sh | 2 +- egs/rm/s5/local/nnet/run_cnn2d.sh | 2 +- egs/rm/s5/local/nnet/run_dnn.sh | 2 +- egs/rm/s5/local/nnet/run_dnn_fbank.sh | 2 +- egs/rm/s5/local/nnet/run_dnn_fbank_relu.sh | 2 +- egs/rm/s5/local/nnet/run_dummy_ivec.sh | 2 +- egs/rm/s5/local/nnet/run_lstm.sh | 2 +- egs/rm/s5/local/nnet/run_multilingual.sh | 2 +- egs/rm/s5/local/nnet2/run_4a.sh | 2 +- egs/rm/s5/local/nnet2/run_4b.sh | 2 +- egs/rm/s5/local/nnet2/run_4b_gpu.sh | 2 +- egs/rm/s5/local/nnet2/run_4c.sh | 2 +- egs/rm/s5/local/nnet2/run_4d.sh | 2 +- egs/rm/s5/local/nnet2/run_4d2.sh | 2 +- egs/rm/s5/local/nnet2/run_4d3.sh | 2 +- egs/rm/s5/local/nnet2/run_4e.sh | 2 +- egs/rm/s5/local/nnet2/run_4e_gpu.sh | 2 +- egs/rm/s5/local/nnet2/run_5c.sh | 2 +- egs/rm/s5/local/nnet2/run_5c_gpu.sh | 2 +- egs/rm/s5/local/nnet2/run_5d.sh | 2 +- egs/rm/s5/local/nnet2/run_5d_gpu.sh | 2 +- egs/rm/s5/local/nnet2/run_5e_gpu.sh | 2 +- egs/rm/s5/local/online/run_gmm.sh | 2 +- egs/rm/s5/local/online/run_gmm_pitch.sh | 2 +- egs/rm/s5/local/online/run_nnet2.sh | 2 +- egs/rm/s5/local/online/run_nnet2_baseline.sh | 2 +- egs/rm/s5/local/online/run_nnet2_common.sh | 2 +- egs/rm/s5/local/online/run_nnet2_multisplice.sh | 2 +- egs/rm/s5/local/online/run_nnet2_multisplice_disc.sh | 2 +- egs/rm/s5/local/online/run_nnet2_perturbed.sh | 2 +- egs/rm/s5/local/online/run_nnet2_wsj.sh | 2 +- egs/rm/s5/local/online/run_nnet2_wsj_joint.sh | 2 +- egs/rm/s5/local/online/run_nnet2_wsj_joint_disc.sh | 2 +- egs/rm/s5/local/prepare_wsj_rm_lang.sh | 2 +- egs/rm/s5/local/rm_data_prep.sh | 2 +- egs/rm/s5/local/rm_prepare_grammar.sh | 2 +- egs/rm/s5/local/rm_prepare_grammar_ug.sh | 2 +- egs/rm/s5/local/run_dnn_convert_nnet2.sh | 2 +- egs/rm/s5/local/run_nnet2.sh | 2 +- egs/rm/s5/local/run_pitch.sh | 2 +- egs/rm/s5/local/run_raw_fmllr.sh | 2 +- egs/rm/s5/local/run_sgmm2.sh | 2 +- egs/rm/s5/local/run_sgmm2x.sh | 2 +- egs/rm/s5/local/run_sgmm_multiling.sh | 2 +- egs/rm/s5/local/run_vtln.sh | 2 +- egs/rm/s5/local/run_vtln2.sh | 2 +- egs/rm/s5/local/test_decoders.sh | 2 +- egs/rm/s5/run.sh | 2 +- egs/sitw/v1/local/make_sitw.sh | 2 +- egs/sitw/v1/local/nnet3/xvector/prepare_feats_for_egs.sh | 2 +- egs/sitw/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh | 2 +- egs/sitw/v1/run.sh | 2 +- egs/sitw/v2/run.sh | 2 +- egs/spanish_dimex100/s5/local/data_prep.sh | 2 +- egs/spanish_dimex100/s5/local/lang_prep.sh | 2 +- egs/spanish_dimex100/s5/local/lm_prep.sh | 2 +- egs/spanish_dimex100/s5/local/score.sh | 2 +- egs/spanish_dimex100/s5/run.sh | 2 +- egs/sprakbanken/s5/local/chain/compare_wer_general.sh | 2 +- egs/sprakbanken/s5/local/chain/tuning/run_lstm_1a.sh | 2 +- egs/sprakbanken/s5/local/chain/tuning/run_lstm_1b.sh | 2 +- egs/sprakbanken/s5/local/chain/tuning/run_lstm_1c.sh | 2 +- egs/sprakbanken/s5/local/chain/tuning/run_lstm_1d.sh | 2 +- egs/sprakbanken/s5/local/chain/tuning/run_lstm_1e.sh | 2 +- egs/sprakbanken/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/sprakbanken/s5/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/sprakbanken/s5/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/sprakbanken/s5/local/copy_dict.sh | 2 +- egs/sprakbanken/s5/local/create_datasets.sh | 2 +- egs/sprakbanken/s5/local/dict_prep.sh | 2 +- egs/sprakbanken/s5/local/nnet/run_dnn.sh | 2 +- egs/sprakbanken/s5/local/nnet2/run_5b.sh | 2 +- egs/sprakbanken/s5/local/nnet2/run_5b_gpu.sh | 2 +- egs/sprakbanken/s5/local/nnet2/run_5c.sh | 2 +- egs/sprakbanken/s5/local/nnet2/run_5c2_gpu.sh | 2 +- egs/sprakbanken/s5/local/nnet2/run_5c_gpu.sh | 2 +- egs/sprakbanken/s5/local/nnet2/run_5d_gpu.sh | 2 +- egs/sprakbanken/s5/local/nnet2/run_6c_gpu.sh | 2 +- egs/sprakbanken/s5/local/nnet2/sprak_run_5c.sh | 2 +- egs/sprakbanken/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/sprakbanken/s5/local/nnet3/run_lstm.sh | 2 +- egs/sprakbanken/s5/local/nnet3/run_tdnn.sh | 2 +- egs/sprakbanken/s5/local/norm_dk/expand_abbr_medical.sh | 2 +- egs/sprakbanken/s5/local/norm_dk/expand_dates.sh | 2 +- egs/sprakbanken/s5/local/norm_dk/format_punct.sh | 2 +- egs/sprakbanken/s5/local/norm_dk/format_text.sh | 2 +- egs/sprakbanken/s5/local/norm_dk/remove_annotation.sh | 2 +- egs/sprakbanken/s5/local/norm_dk/sent_split.sh | 2 +- egs/sprakbanken/s5/local/norm_dk/write_out_formatting.sh | 2 +- egs/sprakbanken/s5/local/norm_dk/write_punct.sh | 2 +- egs/sprakbanken/s5/local/run_nnet2.sh | 2 +- egs/sprakbanken/s5/local/run_rnnlms_sgmm5b.sh | 2 +- egs/sprakbanken/s5/local/run_rnnlms_tri3b.sh | 2 +- egs/sprakbanken/s5/local/run_sgmm2.sh | 2 +- egs/sprakbanken/s5/local/score.sh | 2 +- egs/sprakbanken/s5/local/score_combine.sh | 2 +- egs/sprakbanken/s5/local/score_mbr.sh | 2 +- egs/sprakbanken/s5/local/sprak_data_prep.sh | 2 +- egs/sprakbanken/s5/local/sprak_prep_lm.sh | 2 +- egs/sprakbanken/s5/local/sprak_prepare_dict.sh | 2 +- egs/sprakbanken/s5/local/sprak_run_nnet_cpu.sh | 2 +- egs/sprakbanken/s5/local/sprak_run_rnnlms_tri3b.sh | 2 +- egs/sprakbanken/s5/local/sprak_run_sgmm2.sh | 2 +- egs/sprakbanken/s5/local/sprak_train_irstlm.sh | 2 +- egs/sprakbanken/s5/local/train_irstlm.sh | 2 +- egs/sprakbanken/s5/run.sh | 2 +- egs/sprakbanken_swe/s5/local/copy_dict.sh | 2 +- egs/sprakbanken_swe/s5/local/create_datasets.sh | 2 +- egs/sprakbanken_swe/s5/local/sprak_data_prep.sh | 2 +- egs/sprakbanken_swe/s5/local/sprak_run_5c.sh | 2 +- egs/sprakbanken_swe/s5/local/sprak_run_nnet_cpu.sh | 2 +- egs/sprakbanken_swe/s5/local/train_irstlm.sh | 2 +- egs/sprakbanken_swe/s5/run.sh | 2 +- egs/sre08/v1/local/det_curve_example.sh | 2 +- egs/sre08/v1/local/make_fisher.sh | 2 +- egs/sre08/v1/local/make_sre_2008_test.sh | 2 +- egs/sre08/v1/local/run_more_data.sh | 2 +- egs/sre08/v1/local/score_sre08.sh | 2 +- egs/sre08/v1/run.sh | 2 +- egs/sre08/v1/sid/compute_vad_decision_gmm.sh | 2 +- egs/sre08/v1/sid/extract_ivectors.sh | 2 +- egs/sre08/v1/sid/extract_ivectors_dnn.sh | 2 +- egs/sre08/v1/sid/gender_id.sh | 2 +- egs/sre08/v1/sid/init_full_ubm_from_dnn.sh | 2 +- egs/sre08/v1/sid/music_id.sh | 2 +- egs/sre08/v1/sid/nnet2/get_egs2.sh | 2 +- egs/sre08/v1/sid/nnet2/get_lda.sh | 2 +- egs/sre08/v1/sid/nnet2/train_multisplice_accel2.sh | 2 +- egs/sre08/v1/sid/nnet3/xvector/extract_xvectors.sh | 2 +- egs/sre08/v1/sid/nnet3/xvector/get_egs.sh | 2 +- egs/sre08/v1/sid/train_diag_ubm.sh | 2 +- egs/sre08/v1/sid/train_full_ubm.sh | 2 +- egs/sre08/v1/sid/train_ivector_extractor.sh | 2 +- egs/sre08/v1/sid/train_ivector_extractor_dnn.sh | 2 +- egs/sre10/v1/local/cosine_scoring.sh | 2 +- egs/sre10/v1/local/det_curve_example.sh | 2 +- egs/sre10/v1/local/dnn/fisher_create_test_lang.sh | 2 +- egs/sre10/v1/local/dnn/fisher_data_prep.sh | 2 +- egs/sre10/v1/local/dnn/fisher_prepare_dict.sh | 2 +- egs/sre10/v1/local/dnn/fisher_train_lms.sh | 2 +- egs/sre10/v1/local/dnn/remove_dup_utts.sh | 2 +- egs/sre10/v1/local/dnn/run_nnet2_common.sh | 2 +- egs/sre10/v1/local/dnn/run_nnet2_multisplice.sh | 2 +- egs/sre10/v1/local/dnn/train_dnn.sh | 2 +- egs/sre10/v1/local/lda_scoring.sh | 2 +- egs/sre10/v1/local/make_sre.sh | 2 +- egs/sre10/v1/local/plda_scoring.sh | 2 +- egs/sre10/v1/local/scoring_common.sh | 2 +- egs/sre10/v1/run.sh | 2 +- egs/sre10/v2/run.sh | 2 +- egs/sre16/v1/local/make_mx6.sh | 2 +- egs/sre16/v1/local/make_sre.sh | 2 +- egs/sre16/v1/local/nnet3/xvector/prepare_feats_for_egs.sh | 2 +- egs/sre16/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh | 2 +- egs/sre16/v1/run.sh | 2 +- egs/sre16/v2/run.sh | 2 +- egs/svhn/v1/local/nnet3/compare.sh | 2 +- egs/svhn/v1/local/nnet3/tuning/run_cnn_1a.sh | 2 +- egs/svhn/v1/local/nnet3/tuning/run_cnn_aug_1a.sh | 2 +- egs/svhn/v1/local/nnet3/tuning/run_cnn_aug_1b.sh | 2 +- egs/svhn/v1/local/nnet3/tuning/run_resnet_1b.sh | 2 +- egs/svhn/v1/local/nnet3/tuning/run_resnet_1c.sh | 2 +- egs/svhn/v1/local/nnet3/tuning/run_resnet_1d.sh | 2 +- egs/svhn/v1/local/prepare_data.sh | 2 +- egs/svhn/v1/run.sh | 2 +- egs/swahili/s5/local/prepare_data.sh | 2 +- egs/swahili/s5/local/prepare_dict.sh | 2 +- egs/swahili/s5/local/prepare_lm.sh | 2 +- egs/swahili/s5/local/score.sh | 2 +- egs/swahili/s5/local/score_combine.sh | 2 +- egs/swahili/s5/local/score_mbr.sh | 2 +- egs/swahili/s5/path.sh | 2 +- egs/swahili/s5/run.sh | 2 +- egs/swbd/s5/local/eval1997_data_prep_edin.sh | 2 +- egs/swbd/s5/local/eval2000_data_prep.sh | 2 +- egs/swbd/s5/local/eval2000_data_prep_edin.sh | 2 +- egs/swbd/s5/local/eval2001_data_prep_edin.sh | 2 +- egs/swbd/s5/local/run_sgmm2.sh | 2 +- egs/swbd/s5/local/run_tandem_uc.sh | 2 +- egs/swbd/s5/local/score.sh | 2 +- egs/swbd/s5/local/score_basic.sh | 2 +- egs/swbd/s5/local/score_sclite.sh | 2 +- egs/swbd/s5/local/score_sclite_conf.sh | 2 +- egs/swbd/s5/local/swbd1_data_prep_edin.sh | 2 +- egs/swbd/s5/local/swbd1_prepare_dict.sh | 2 +- egs/swbd/s5/local/swbd1_train_lms_edin.sh | 2 +- egs/swbd/s5/local/swbd_p1_data_prep.sh | 2 +- egs/swbd/s5/local/swbd_p1_format_data.sh | 2 +- egs/swbd/s5/local/swbd_p1_prepare_dict.sh | 2 +- egs/swbd/s5/local/swbd_p1_train_lms.sh | 2 +- egs/swbd/s5/run.sh | 2 +- egs/swbd/s5/run_edin.sh | 2 +- egs/swbd/s5b/local/eval1997_data_prep.sh | 2 +- egs/swbd/s5b/local/eval2000_data_prep.sh | 2 +- egs/swbd/s5b/local/nnet/run_dnn.sh | 2 +- egs/swbd/s5b/local/nnet/run_dnn_tandem_uc.sh | 2 +- egs/swbd/s5b/local/nnet2/run_5a.sh | 2 +- egs/swbd/s5b/local/nnet2/run_5a_gpu.sh | 2 +- egs/swbd/s5b/local/nnet2/run_5b_gpu.sh | 2 +- egs/swbd/s5b/local/nnet2/run_5c_gpu.sh | 2 +- egs/swbd/s5b/local/nnet2/run_5d_gpu.sh | 2 +- egs/swbd/s5b/local/nnet2/run_5e_gpu.sh | 2 +- egs/swbd/s5b/local/nnet2/run_5f_gpu.sh | 2 +- egs/swbd/s5b/local/nnet2/run_6a_gpu.sh | 2 +- egs/swbd/s5b/local/nnet2/run_6c_gpu.sh | 2 +- egs/swbd/s5b/local/online/run_nnet2.sh | 2 +- egs/swbd/s5b/local/online/run_nnet2_baseline.sh | 2 +- egs/swbd/s5b/local/online/run_nnet2_common.sh | 2 +- egs/swbd/s5b/local/online/run_nnet2_fisher.sh | 2 +- egs/swbd/s5b/local/online/run_nnet2_ms.sh | 2 +- egs/swbd/s5b/local/online/run_nnet2_ms_disc.sh | 2 +- egs/swbd/s5b/local/online/run_nnet2_perturb_speed.sh | 2 +- egs/swbd/s5b/local/run_nnet2.sh | 2 +- egs/swbd/s5b/local/run_raw_fmllr.sh | 2 +- egs/swbd/s5b/local/run_resegment.sh | 2 +- egs/swbd/s5b/local/run_sgmm2.sh | 2 +- egs/swbd/s5b/local/run_vtln.sh | 2 +- egs/swbd/s5b/local/score.sh | 2 +- egs/swbd/s5b/local/score_basic.sh | 2 +- egs/swbd/s5b/local/score_sclite.sh | 2 +- egs/swbd/s5b/local/score_sclite_conf.sh | 2 +- egs/swbd/s5b/local/swbd1_data_prep.sh | 2 +- egs/swbd/s5b/local/swbd1_prepare_dict.sh | 2 +- egs/swbd/s5b/local/swbd1_train_lms.sh | 2 +- egs/swbd/s5b/run.sh | 2 +- egs/swbd/s5c/local/chain/compare_wer_tdnn.sh | 2 +- egs/swbd/s5c/local/chain/multi_condition/run_tdnn_7f.sh | 2 +- egs/swbd/s5c/local/chain/multi_condition/run_tdnn_7k.sh | 2 +- .../s5c/local/chain/multi_condition/run_tdnn_aug_1a.sh | 2 +- egs/swbd/s5c/local/chain/show_wer.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_blstm_6h.sh | 2 +- .../s5c/local/chain/tuning/run_blstm_6h_discriminative.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_blstm_6i.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_blstm_6j.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_blstm_6k.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_blstm_6l.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_blstm_6m.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_blstm_6n.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_blstm_6o.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_cnn_tdnn_1a.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_lstm_6h.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_lstm_6i.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_lstm_6j.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_lstm_6k.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_lstm_6l.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_lstm_d.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2a.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2b.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2c.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2d.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2e.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2f.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2g.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2h.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2i.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2j.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2k.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2l.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2m.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2n.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2o.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2p.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2q.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2r.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2s.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2t.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2u.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2v.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2w.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2x.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_2y.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3c.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3d.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3e.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3f.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3g.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3h.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3i.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3j.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3k.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3k2.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3l.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3m.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3n.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3o.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3p.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3q.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3r.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3s.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3t.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3u.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3v.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3w.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3x.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3y.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_3z.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4a.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4b.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4c.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4d.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4e.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4f.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4g.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4n.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4p.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4q.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4r.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4s.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4t.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4u.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4v.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4w.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_4x.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5a.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5b.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5c.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5d.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5e.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5f.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5g.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5h.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5i.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5j.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5k.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5l.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5m.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5n.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5o.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5p.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5q.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5r.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5s.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5t.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5u.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5v.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5w.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5x.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5y.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_5z.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6a.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6b.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6c.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6d.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6e.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6f.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6g.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6h.sh | 2 +- .../s5c/local/chain/tuning/run_tdnn_6h_discriminative.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6h_py.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6i.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6j.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6k.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6l.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6m.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6n.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6o.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6p.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6q.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6r.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6s.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6t.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6u.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6v.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6w.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6x.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6y.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_6z.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7a.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7b.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7c.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7d.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7e.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7f.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7g.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7h.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7i.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7j.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7k.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7l.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7m.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7m25l.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7n.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7o.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7p.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7q.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_7r.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_a.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_a2.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_attention_1a.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_b.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1a.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1b.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1c.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1d.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_c.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_d.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_e.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_f.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_g.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_h.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_i.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_j.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_k.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_l.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1b.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1c.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1d.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1e.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1f.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1g.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1h.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1i.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1j.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1k.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1l.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1m.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1n.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_m.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_n.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_o.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_opgru_1a.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_opgru_1b.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_p.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_q.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_r.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_s.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_t.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_u.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_v.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_w.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_x.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_y.sh | 2 +- egs/swbd/s5c/local/chain/tuning/run_tdnn_z.sh | 2 +- egs/swbd/s5c/local/confidence_calibration.sh | 2 +- egs/swbd/s5c/local/eval1997_data_prep.sh | 2 +- egs/swbd/s5c/local/eval2000_data_prep.sh | 2 +- egs/swbd/s5c/local/nnet/run_dnn.sh | 2 +- egs/swbd/s5c/local/nnet/run_dnn_tandem_uc.sh | 2 +- egs/swbd/s5c/local/nnet2/run_nnet2.sh | 2 +- egs/swbd/s5c/local/nnet3/compare_wer_general.sh | 2 +- .../s5c/local/nnet3/multi_condition/run_aug_common.sh | 2 +- egs/swbd/s5c/local/nnet3/run_blstm_discriminative.sh | 2 +- egs/swbd/s5c/local/nnet3/run_ivector_common.sh | 2 +- egs/swbd/s5c/local/nnet3/run_lstm.sh | 2 +- egs/swbd/s5c/local/nnet3/tuning/run_tdnn_a.sh | 2 +- egs/swbd/s5c/local/nnet3/tuning/run_tdnn_b.sh | 2 +- egs/swbd/s5c/local/nnet3/tuning/run_tdnn_c.sh | 2 +- egs/swbd/s5c/local/nnet3/tuning/run_tdnn_d.sh | 2 +- egs/swbd/s5c/local/nnet3/tuning/run_tdnn_d_disc.sh | 2 +- egs/swbd/s5c/local/nnet3/tuning/run_tdnn_e.sh | 2 +- egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1a.sh | 2 +- egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1b.sh | 2 +- egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1c.sh | 2 +- egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1c_disc.sh | 2 +- egs/swbd/s5c/local/online/run_nnet2_common.sh | 2 +- egs/swbd/s5c/local/online/run_nnet2_ms.sh | 2 +- egs/swbd/s5c/local/online/run_nnet2_ms_perturbed.sh | 2 +- egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1b.sh | 2 +- egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1c.sh | 2 +- egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1d.sh | 2 +- egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1e.sh | 2 +- egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_back_1e.sh | 2 +- egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_swbd.sh | 2 +- egs/swbd/s5c/local/rt03_data_prep.sh | 2 +- egs/swbd/s5c/local/run_asr_segmentation.sh | 2 +- egs/swbd/s5c/local/run_cleanup_segmentation.sh | 2 +- egs/swbd/s5c/local/run_raw_fmllr.sh | 2 +- egs/swbd/s5c/local/run_resegment.sh | 2 +- egs/swbd/s5c/local/run_sgmm2.sh | 2 +- egs/swbd/s5c/local/score.sh | 2 +- egs/swbd/s5c/local/score_basic.sh | 2 +- egs/swbd/s5c/local/score_sclite.sh | 2 +- egs/swbd/s5c/local/score_sclite_conf.sh | 2 +- .../local/segmentation/tuning/train_lstm_asr_sad_1a.sh | 2 +- .../local/segmentation/tuning/train_stats_asr_sad_1a.sh | 2 +- egs/swbd/s5c/local/swbd1_data_download.sh | 2 +- egs/swbd/s5c/local/swbd1_data_prep.sh | 2 +- egs/swbd/s5c/local/swbd1_prepare_dict.sh | 2 +- egs/swbd/s5c/local/swbd1_train_lms.sh | 2 +- egs/swbd/s5c/run.sh | 2 +- egs/tedlium/s5/local/chain/run_tdnn.sh | 2 +- egs/tedlium/s5/local/confidence_calibration.sh | 2 +- egs/tedlium/s5/local/download_data.sh | 2 +- egs/tedlium/s5/local/nnet/run_dnn.sh | 2 +- egs/tedlium/s5/local/nnet/run_dnn_bn.sh | 2 +- egs/tedlium/s5/local/nnet/run_dnn_fbank.sh | 2 +- egs/tedlium/s5/local/nnet/run_lstm.sh | 2 +- egs/tedlium/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/tedlium/s5/local/nnet3/run_tdnn.sh | 2 +- egs/tedlium/s5/local/nnet3/run_tdnn_discriminative.sh | 2 +- egs/tedlium/s5/local/online/run_nnet2_common.sh | 2 +- egs/tedlium/s5/local/online/run_nnet2_ensemble.sh | 2 +- egs/tedlium/s5/local/online/run_nnet2_ms.sh | 2 +- egs/tedlium/s5/local/online/run_nnet2_ms_disc.sh | 2 +- egs/tedlium/s5/local/online/run_nnet2_ms_perturbed.sh | 2 +- egs/tedlium/s5/local/prepare_data.sh | 2 +- egs/tedlium/s5/local/prepare_dict.sh | 2 +- egs/tedlium/s5/local/prepare_lm.sh | 2 +- egs/tedlium/s5/local/score_basic.sh | 2 +- egs/tedlium/s5/local/score_sclite.sh | 2 +- egs/tedlium/s5/run.sh | 2 +- egs/tedlium/s5_r2/local/chain/compare_wer_general.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_blstm_1a.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1a.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1b.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1c.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1d.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1e.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1c.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1d.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1e.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1f.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1g.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1b.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1c.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1d.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1e.sh | 2 +- .../s5_r2/local/chain/tuning/run_tdnn_lstm_1e_disc.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1f.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1g.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1h.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1i.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1j.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1k.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1l.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1m.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1n.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1o.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1r.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1s.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1t.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1u.sh | 2 +- egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1v.sh | 2 +- .../local/chain/tuning/run_tdnn_lstm_attention_1a.sh | 2 +- .../local/chain/tuning/run_tdnn_lstm_attention_bs_1a.sh | 2 +- .../local/chain/tuning/run_tdnn_lstm_attention_bs_1b.sh | 2 +- egs/tedlium/s5_r2/local/download_data.sh | 2 +- egs/tedlium/s5_r2/local/format_lms.sh | 2 +- egs/tedlium/s5_r2/local/nnet3/compare_wer.sh | 2 +- egs/tedlium/s5_r2/local/nnet3/run_ivector_common.sh | 2 +- egs/tedlium/s5_r2/local/nnet3/tuning/run_lstm_1a.sh | 2 +- egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1a.sh | 2 +- egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1b.sh | 2 +- egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1c.sh | 2 +- egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lfr_1a.sh | 2 +- egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1a.sh | 2 +- .../s5_r2/local/nnet3/tuning/run_tdnn_lstm_1a_disc.sh | 2 +- egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1b.sh | 2 +- .../s5_r2/local/nnet3/tuning/run_tdnn_lstm_1b_disc.sh | 2 +- egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1c.sh | 2 +- .../s5_r2/local/nnet3/tuning/run_tdnn_lstm_lfr_1a.sh | 2 +- egs/tedlium/s5_r2/local/prepare_data.sh | 2 +- egs/tedlium/s5_r2/local/prepare_data_iwslt.sh | 2 +- egs/tedlium/s5_r2/local/prepare_dict.sh | 2 +- egs/tedlium/s5_r2/local/rnnlm/prepare_rnnlm_data.sh | 2 +- egs/tedlium/s5_r2/local/rnnlm/tuning/run_lstm_tdnn.sh | 2 +- .../s5_r2/local/rnnlm/tuning/run_lstm_tdnn_with_lm1b.sh | 2 +- egs/tedlium/s5_r2/local/run_cleanup_segmentation.sh | 2 +- egs/tedlium/s5_r2/local/run_segmentation_long_utts.sh | 2 +- egs/tedlium/s5_r2/local/run_unk_model.sh | 2 +- egs/tedlium/s5_r2/local/score_basic.sh | 2 +- egs/tedlium/s5_r2/local/score_sclite.sh | 2 +- egs/tedlium/s5_r2/local/ted_download_lm.sh | 2 +- egs/tedlium/s5_r2/local/ted_train_lm.sh | 2 +- egs/tedlium/s5_r2/results.sh | 2 +- egs/tedlium/s5_r2/run.sh | 2 +- egs/tedlium/s5_r2_wsj/local/format_lms.sh | 2 +- egs/tedlium/s5_r2_wsj/local/prepare_data.sh | 2 +- egs/tedlium/s5_r2_wsj/local/prepare_dict.sh | 2 +- egs/tedlium/s5_r2_wsj/local/score_basic.sh | 2 +- egs/tedlium/s5_r2_wsj/local/score_sclite.sh | 2 +- egs/tedlium/s5_r2_wsj/local/train_lm.sh | 2 +- egs/tedlium/s5_r2_wsj/local/wsj_data_prep.sh | 2 +- egs/tedlium/s5_r2_wsj/local/wsj_format_data.sh | 2 +- egs/tedlium/s5_r2_wsj/results.sh | 2 +- egs/tedlium/s5_r2_wsj/run.sh | 2 +- egs/tedlium/s5_r3/local/chain/compare_wer_general.sh | 2 +- egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1c.sh | 2 +- egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1d.sh | 2 +- egs/tedlium/s5_r3/local/download_data.sh | 2 +- egs/tedlium/s5_r3/local/format_lms.sh | 2 +- egs/tedlium/s5_r3/local/nnet3/run_ivector_common.sh | 2 +- egs/tedlium/s5_r3/local/prepare_data.sh | 2 +- egs/tedlium/s5_r3/local/prepare_dict.sh | 2 +- egs/tedlium/s5_r3/local/rnnlm/average_rnnlm.sh | 2 +- egs/tedlium/s5_r3/local/rnnlm/prepare_rnnlm_data.sh | 2 +- egs/tedlium/s5_r3/local/rnnlm/tuning/run_lstm_tdnn_a.sh | 2 +- egs/tedlium/s5_r3/local/run_cleanup_segmentation.sh | 2 +- egs/tedlium/s5_r3/local/score_basic.sh | 2 +- egs/tedlium/s5_r3/local/score_sclite.sh | 2 +- egs/tedlium/s5_r3/local/ted_download_lm.sh | 2 +- egs/tedlium/s5_r3/local/ted_download_rnnlm.sh | 2 +- egs/tedlium/s5_r3/local/ted_train_lm.sh | 2 +- egs/tedlium/s5_r3/results.sh | 2 +- egs/tedlium/s5_r3/run.sh | 2 +- egs/thchs30/s5/local/dae/run_dae.sh | 2 +- egs/thchs30/s5/local/download_and_untar.sh | 2 +- egs/thchs30/s5/local/nnet/run_dnn.sh | 2 +- egs/thchs30/s5/local/thchs-30_data_prep.sh | 2 +- egs/thchs30/s5/local/thchs-30_decode.sh | 2 +- egs/thchs30/s5/run.sh | 2 +- egs/tidigits/s5/local/score.sh | 2 +- egs/tidigits/s5/local/tidigits_data_prep.sh | 2 +- egs/tidigits/s5/local/tidigits_prepare_lang.sh | 2 +- egs/tidigits/s5/run.sh | 2 +- egs/timit/s5/local/nnet/run_autoencoder.sh | 2 +- egs/timit/s5/local/nnet/run_dnn.sh | 2 +- egs/timit/s5/local/score_basic.sh | 2 +- egs/timit/s5/local/score_combine.sh | 2 +- egs/timit/s5/local/score_sclite.sh | 2 +- egs/timit/s5/local/timit_data_prep.sh | 2 +- egs/timit/s5/local/timit_format_data.sh | 2 +- egs/timit/s5/local/timit_prepare_dict.sh | 2 +- egs/timit/s5/run.sh | 2 +- egs/tunisian_msa/s5/local/chain/compare_wer.sh | 2 +- egs/tunisian_msa/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/tunisian_msa/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/tunisian_msa/s5/local/prepare_lm.sh | 2 +- egs/tunisian_msa/s5/local/qcri_buckwalter2utf8.sh | 2 +- egs/tunisian_msa/s5/local/subs_download.sh | 2 +- egs/tunisian_msa/s5/local/tamsa_download.sh | 2 +- egs/uw3/v1/local/chain/compare_wer.sh | 2 +- egs/uw3/v1/local/chain/run_cnn_1a.sh | 2 +- egs/uw3/v1/local/prepare_data.sh | 2 +- egs/uw3/v1/local/prepare_dict.sh | 2 +- egs/uw3/v1/local/score.sh | 2 +- egs/uw3/v1/local/train_lm.sh | 2 +- egs/uw3/v1/run.sh | 2 +- .../v1/local/nnet3/xvector/prepare_feats_for_egs.sh | 2 +- .../v1/local/nnet3/xvector/tuning/run_xvector_1a.sh | 2 +- egs/voxceleb/v1/run.sh | 2 +- egs/voxceleb/v2/run.sh | 2 +- egs/voxforge/gst_demo/run-simulated.sh | 2 +- egs/voxforge/online_demo/run.sh | 2 +- egs/voxforge/s5/getdata.sh | 2 +- egs/voxforge/s5/local/run_mmi_tri2b.sh | 2 +- egs/voxforge/s5/local/run_mmi_tri4b.sh | 2 +- egs/voxforge/s5/local/run_sgmm2.sh | 2 +- egs/voxforge/s5/local/run_sgmm2x.sh | 2 +- egs/voxforge/s5/local/score.sh | 2 +- egs/voxforge/s5/local/voxforge_data_prep.sh | 2 +- egs/voxforge/s5/local/voxforge_format_data.sh | 2 +- egs/voxforge/s5/local/voxforge_map_anonymous.sh | 2 +- egs/voxforge/s5/local/voxforge_prepare_dict.sh | 2 +- egs/voxforge/s5/local/voxforge_prepare_lm.sh | 2 +- egs/voxforge/s5/local/voxforge_select.sh | 2 +- egs/voxforge/s5/run.sh | 2 +- egs/vystadial_cz/online_demo/display_gmm_latgen.sh | 2 +- egs/vystadial_cz/online_demo/path.sh | 2 +- egs/vystadial_cz/online_demo/run_live-demo.sh | 2 +- .../online_demo/run_online-latgen-recogniser.sh | 2 +- .../online_demo/run_pyonline-latgen-recogniser.sh | 2 +- egs/vystadial_cz/s5/env_voip_cs.sh | 2 +- egs/vystadial_cz/s5/local/backup.sh | 2 +- egs/vystadial_cz/s5/local/create_G.sh | 2 +- egs/vystadial_cz/s5/local/create_LMs.sh | 2 +- egs/vystadial_cz/s5/local/create_phone_lists.sh | 2 +- egs/vystadial_cz/s5/local/create_sample.sh | 2 +- egs/vystadial_cz/s5/local/data_split.sh | 2 +- egs/vystadial_cz/s5/local/download_cs_data.sh | 2 +- egs/vystadial_cz/s5/local/export_models.sh | 2 +- egs/vystadial_cz/s5/local/prepare_cs_transcription.sh | 2 +- egs/vystadial_cz/s5/local/save_check.sh | 2 +- egs/vystadial_cz/s5/local/score.sh | 2 +- egs/vystadial_cz/s5/run.sh | 2 +- egs/vystadial_cz/s5b/local/chain/compare_wer.sh | 2 +- egs/vystadial_cz/s5b/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/vystadial_cz/s5b/local/nnet3/run_ivector_common.sh | 2 +- egs/vystadial_cz/s5b/run.sh | 2 +- egs/vystadial_en/s5/env_voip_en.sh | 2 +- egs/vystadial_en/s5/local/backup.sh | 2 +- egs/vystadial_en/s5/local/create_G.sh | 2 +- egs/vystadial_en/s5/local/create_LMs.sh | 2 +- egs/vystadial_en/s5/local/create_phone_lists.sh | 2 +- egs/vystadial_en/s5/local/create_sample.sh | 2 +- egs/vystadial_en/s5/local/data_split.sh | 2 +- egs/vystadial_en/s5/local/download_en_data.sh | 2 +- egs/vystadial_en/s5/local/export_models.sh | 2 +- egs/vystadial_en/s5/local/prepare_en_transcription.sh | 2 +- egs/vystadial_en/s5/local/save_check.sh | 2 +- egs/vystadial_en/s5/local/score.sh | 2 +- egs/vystadial_en/s5/run.sh | 2 +- egs/wsj/s5/local/append_utterances.sh | 2 +- egs/wsj/s5/local/chain/compare_wer.sh | 2 +- egs/wsj/s5/local/chain/e2e/run_tdnn_flatstart.sh | 2 +- egs/wsj/s5/local/chain/e2e/run_tdnn_lstm_flatstart.sh | 2 +- .../local/chain/e2e/tuning/run_tdnnf_flatstart_char1a.sh | 2 +- .../local/chain/e2e/tuning/run_tdnnf_flatstart_char1b.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1a.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1b.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1c.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_tdnn_1b.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_tdnn_1c.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_tdnn_1d.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_tdnn_1e.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_tdnn_1f.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_tdnn_1g.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_tdnn_1h.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_tdnn_1i.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/wsj/s5/local/chain/tuning/run_tdnn_lstm_1b.sh | 2 +- egs/wsj/s5/local/cstr_wsj_data_prep.sh | 2 +- egs/wsj/s5/local/cstr_wsj_extend_dict.sh | 2 +- egs/wsj/s5/local/e2e/run_end2end_char.sh | 2 +- egs/wsj/s5/local/e2e/run_end2end_phone.sh | 2 +- egs/wsj/s5/local/generate_example_kws.sh | 2 +- egs/wsj/s5/local/kws_data_prep.sh | 2 +- egs/wsj/s5/local/nnet/run_dnn.sh | 2 +- egs/wsj/s5/local/nnet2/run_5b.sh | 2 +- egs/wsj/s5/local/nnet2/run_5b_gpu.sh | 2 +- egs/wsj/s5/local/nnet2/run_5c.sh | 2 +- egs/wsj/s5/local/nnet2/run_5c2_gpu.sh | 2 +- egs/wsj/s5/local/nnet2/run_5d.sh | 2 +- egs/wsj/s5/local/nnet2/run_5e_gpu.sh | 2 +- egs/wsj/s5/local/nnet2/run_6c_gpu.sh | 2 +- egs/wsj/s5/local/nnet2/run_6d.sh | 2 +- egs/wsj/s5/local/nnet2/run_6d_gpu.sh | 2 +- egs/wsj/s5/local/nnet2/run_bnf.sh | 2 +- egs/wsj/s5/local/nnet2/run_pnorm_bnf.sh | 2 +- egs/wsj/s5/local/nnet3/compare_wer.sh | 2 +- egs/wsj/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/wsj/s5/local/nnet3/run_tdnn_discriminative.sh | 2 +- egs/wsj/s5/local/nnet3/tuning/run_tdnn_1a.sh | 2 +- egs/wsj/s5/local/nnet3/tuning/run_tdnn_1b.sh | 2 +- egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh | 2 +- egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_1a_disc.sh | 2 +- egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_lfr_1a.sh | 2 +- egs/wsj/s5/local/online/run_nnet2.sh | 2 +- egs/wsj/s5/local/online/run_nnet2_baseline.sh | 2 +- egs/wsj/s5/local/online/run_nnet2_common.sh | 2 +- egs/wsj/s5/local/online/run_nnet2_discriminative.sh | 2 +- egs/wsj/s5/local/online/run_nnet2_perturb_speed.sh | 2 +- egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_1a.sh | 2 +- egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_1b.sh | 2 +- egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh | 2 +- egs/wsj/s5/local/rnnlm/tuning/run_tdnn_a.sh | 2 +- egs/wsj/s5/local/run_basis_fmllr.sh | 2 +- egs/wsj/s5/local/run_bnf.sh | 2 +- egs/wsj/s5/local/run_bnf_sgmm.sh | 2 +- egs/wsj/s5/local/run_deltas.sh | 2 +- egs/wsj/s5/local/run_gender_dep.sh | 2 +- egs/wsj/s5/local/run_mmi_tri4b.sh | 2 +- egs/wsj/s5/local/run_nnet2.sh | 2 +- egs/wsj/s5/local/run_raw_fmllr.sh | 2 +- egs/wsj/s5/local/run_rnnlms.sh | 2 +- egs/wsj/s5/local/run_segmentation.sh | 2 +- egs/wsj/s5/local/run_segmentation_long_utts.sh | 2 +- egs/wsj/s5/local/run_sgmm2.sh | 2 +- egs/wsj/s5/local/run_vtln.sh | 2 +- egs/wsj/s5/local/run_vtln2.sh | 2 +- egs/wsj/s5/local/score_combine.sh | 2 +- egs/wsj/s5/local/score_mbr.sh | 2 +- egs/wsj/s5/local/wsj_data_prep.sh | 2 +- egs/wsj/s5/local/wsj_extend_char_dict.sh | 2 +- egs/wsj/s5/local/wsj_extend_dict.sh | 2 +- egs/wsj/s5/local/wsj_format_data.sh | 2 +- egs/wsj/s5/local/wsj_format_local_lms.sh | 2 +- egs/wsj/s5/local/wsj_prepare_char_dict.sh | 2 +- egs/wsj/s5/local/wsj_prepare_dict.sh | 2 +- egs/wsj/s5/local/wsj_train_lms.sh | 2 +- egs/wsj/s5/local/wsj_train_rnnlms.sh | 2 +- egs/wsj/s5/run.sh | 2 +- egs/wsj/s5/steps/align_basis_fmllr.sh | 2 +- egs/wsj/s5/steps/align_basis_fmllr_lats.sh | 2 +- egs/wsj/s5/steps/align_fmllr.sh | 2 +- egs/wsj/s5/steps/align_fmllr_lats.sh | 2 +- egs/wsj/s5/steps/align_lvtln.sh | 2 +- egs/wsj/s5/steps/align_raw_fmllr.sh | 2 +- egs/wsj/s5/steps/align_sgmm2.sh | 2 +- egs/wsj/s5/steps/align_si.sh | 2 +- egs/wsj/s5/steps/best_path_weights.sh | 2 +- egs/wsj/s5/steps/cleanup/clean_and_segment_data.sh | 2 +- egs/wsj/s5/steps/cleanup/clean_and_segment_data_nnet3.sh | 2 +- egs/wsj/s5/steps/cleanup/debug_lexicon.sh | 2 +- egs/wsj/s5/steps/cleanup/decode_fmllr_segmentation.sh | 2 +- egs/wsj/s5/steps/cleanup/decode_segmentation.sh | 2 +- egs/wsj/s5/steps/cleanup/decode_segmentation_nnet3.sh | 2 +- egs/wsj/s5/steps/cleanup/find_bad_utts.sh | 2 +- egs/wsj/s5/steps/cleanup/find_bad_utts_nnet.sh | 2 +- egs/wsj/s5/steps/cleanup/make_biased_lm_graphs.sh | 2 +- egs/wsj/s5/steps/cleanup/make_segmentation_data_dir.sh | 2 +- egs/wsj/s5/steps/cleanup/make_segmentation_graph.sh | 2 +- egs/wsj/s5/steps/cleanup/make_utterance_graph.sh | 2 +- egs/wsj/s5/steps/cleanup/segment_long_utterances.sh | 2 +- egs/wsj/s5/steps/cleanup/segment_long_utterances_nnet3.sh | 2 +- egs/wsj/s5/steps/cleanup/split_long_utterance.sh | 2 +- egs/wsj/s5/steps/combine_ali_dirs.sh | 2 +- egs/wsj/s5/steps/combine_trans_dirs.sh | 2 +- egs/wsj/s5/steps/compare_alignments.sh | 2 +- egs/wsj/s5/steps/compute_cmvn_stats.sh | 2 +- egs/wsj/s5/steps/conf/apply_calibration.sh | 2 +- egs/wsj/s5/steps/conf/get_ctm_conf.sh | 2 +- egs/wsj/s5/steps/conf/lattice_depth_per_frame.sh | 2 +- egs/wsj/s5/steps/conf/train_calibration.sh | 2 +- egs/wsj/s5/steps/copy_ali_dir.sh | 2 +- egs/wsj/s5/steps/copy_lat_dir.sh | 2 +- egs/wsj/s5/steps/copy_trans_dir.sh | 2 +- egs/wsj/s5/steps/data/make_musan.sh | 2 +- egs/wsj/s5/steps/decode.sh | 2 +- egs/wsj/s5/steps/decode_basis_fmllr.sh | 2 +- egs/wsj/s5/steps/decode_biglm.sh | 2 +- egs/wsj/s5/steps/decode_combine.sh | 2 +- egs/wsj/s5/steps/decode_fmllr.sh | 2 +- egs/wsj/s5/steps/decode_fmllr_extra.sh | 2 +- egs/wsj/s5/steps/decode_fmmi.sh | 2 +- egs/wsj/s5/steps/decode_fromlats.sh | 2 +- egs/wsj/s5/steps/decode_lvtln.sh | 2 +- egs/wsj/s5/steps/decode_nolats.sh | 2 +- egs/wsj/s5/steps/decode_raw_fmllr.sh | 2 +- egs/wsj/s5/steps/decode_sgmm2.sh | 2 +- egs/wsj/s5/steps/decode_sgmm2_fromlats.sh | 2 +- egs/wsj/s5/steps/decode_sgmm2_rescore.sh | 2 +- egs/wsj/s5/steps/decode_sgmm2_rescore_project.sh | 2 +- egs/wsj/s5/steps/decode_with_map.sh | 2 +- egs/wsj/s5/steps/diagnostic/analyze_alignments.sh | 2 +- egs/wsj/s5/steps/diagnostic/analyze_lats.sh | 2 +- egs/wsj/s5/steps/dict/apply_g2p.sh | 2 +- egs/wsj/s5/steps/dict/apply_g2p_phonetisaurus.sh | 2 +- egs/wsj/s5/steps/dict/train_g2p.sh | 2 +- egs/wsj/s5/steps/dict/train_g2p_phonetisaurus.sh | 2 +- egs/wsj/s5/steps/get_ctm.sh | 2 +- egs/wsj/s5/steps/get_ctm_conf_fast.sh | 2 +- egs/wsj/s5/steps/get_ctm_fast.sh | 2 +- egs/wsj/s5/steps/get_fmllr_basis.sh | 2 +- egs/wsj/s5/steps/get_lexicon_probs.sh | 2 +- egs/wsj/s5/steps/get_prons.sh | 2 +- egs/wsj/s5/steps/get_train_ctm.sh | 2 +- egs/wsj/s5/steps/lmrescore.sh | 2 +- egs/wsj/s5/steps/lmrescore_const_arpa.sh | 2 +- egs/wsj/s5/steps/lmrescore_const_arpa_undeterminized.sh | 2 +- egs/wsj/s5/steps/lmrescore_rnnlm_lat.sh | 2 +- egs/wsj/s5/steps/make_denlats.sh | 2 +- egs/wsj/s5/steps/make_denlats_sgmm2.sh | 2 +- egs/wsj/s5/steps/make_fbank.sh | 2 +- egs/wsj/s5/steps/make_fbank_pitch.sh | 2 +- egs/wsj/s5/steps/make_index.sh | 2 +- egs/wsj/s5/steps/make_mfcc.sh | 2 +- egs/wsj/s5/steps/make_mfcc_pitch.sh | 2 +- egs/wsj/s5/steps/make_mfcc_pitch_online.sh | 2 +- egs/wsj/s5/steps/make_phone_graph.sh | 2 +- egs/wsj/s5/steps/make_plp.sh | 2 +- egs/wsj/s5/steps/make_plp_pitch.sh | 2 +- egs/wsj/s5/steps/nnet/align.sh | 2 +- egs/wsj/s5/steps/nnet/decode.sh | 2 +- egs/wsj/s5/steps/nnet/ivector/extract_ivectors.sh | 2 +- egs/wsj/s5/steps/nnet/ivector/train_diag_ubm.sh | 2 +- egs/wsj/s5/steps/nnet/ivector/train_ivector_extractor.sh | 2 +- egs/wsj/s5/steps/nnet/make_bn_feats.sh | 2 +- egs/wsj/s5/steps/nnet/make_denlats.sh | 2 +- egs/wsj/s5/steps/nnet/make_fmllr_feats.sh | 2 +- egs/wsj/s5/steps/nnet/make_fmmi_feats.sh | 2 +- egs/wsj/s5/steps/nnet/pretrain_dbn.sh | 2 +- egs/wsj/s5/steps/nnet/train.sh | 2 +- egs/wsj/s5/steps/nnet/train_mmi.sh | 2 +- egs/wsj/s5/steps/nnet/train_mpe.sh | 2 +- egs/wsj/s5/steps/nnet/train_scheduler.sh | 2 +- egs/wsj/s5/steps/nnet2/adjust_priors.sh | 2 +- egs/wsj/s5/steps/nnet2/align.sh | 2 +- egs/wsj/s5/steps/nnet2/check_ivectors_compatible.sh | 2 +- egs/wsj/s5/steps/nnet2/convert_lda_to_raw.sh | 2 +- egs/wsj/s5/steps/nnet2/convert_nnet1_to_nnet2.sh | 2 +- egs/wsj/s5/steps/nnet2/create_appended_model.sh | 2 +- egs/wsj/s5/steps/nnet2/decode.sh | 2 +- egs/wsj/s5/steps/nnet2/dump_bottleneck_features.sh | 2 +- egs/wsj/s5/steps/nnet2/get_egs.sh | 2 +- egs/wsj/s5/steps/nnet2/get_egs2.sh | 2 +- egs/wsj/s5/steps/nnet2/get_egs_discriminative2.sh | 2 +- egs/wsj/s5/steps/nnet2/get_ivector_id.sh | 2 +- egs/wsj/s5/steps/nnet2/get_lda.sh | 2 +- egs/wsj/s5/steps/nnet2/get_lda_block.sh | 2 +- egs/wsj/s5/steps/nnet2/get_perturbed_feats.sh | 2 +- egs/wsj/s5/steps/nnet2/make_denlats.sh | 2 +- egs/wsj/s5/steps/nnet2/relabel_egs.sh | 2 +- egs/wsj/s5/steps/nnet2/relabel_egs2.sh | 2 +- egs/wsj/s5/steps/nnet2/remove_egs.sh | 2 +- egs/wsj/s5/steps/nnet2/retrain_fast.sh | 2 +- egs/wsj/s5/steps/nnet2/retrain_simple2.sh | 2 +- egs/wsj/s5/steps/nnet2/retrain_tanh.sh | 2 +- egs/wsj/s5/steps/nnet2/train_block.sh | 2 +- egs/wsj/s5/steps/nnet2/train_convnet_accel2.sh | 2 +- egs/wsj/s5/steps/nnet2/train_discriminative.sh | 2 +- egs/wsj/s5/steps/nnet2/train_discriminative2.sh | 2 +- egs/wsj/s5/steps/nnet2/train_discriminative_multilang2.sh | 2 +- egs/wsj/s5/steps/nnet2/train_more.sh | 2 +- egs/wsj/s5/steps/nnet2/train_more2.sh | 2 +- egs/wsj/s5/steps/nnet2/train_multilang2.sh | 2 +- egs/wsj/s5/steps/nnet2/train_multisplice_accel2.sh | 2 +- egs/wsj/s5/steps/nnet2/train_multisplice_ensemble.sh | 2 +- egs/wsj/s5/steps/nnet2/train_pnorm.sh | 2 +- egs/wsj/s5/steps/nnet2/train_pnorm_accel2.sh | 2 +- egs/wsj/s5/steps/nnet2/train_pnorm_bottleneck_fast.sh | 2 +- egs/wsj/s5/steps/nnet2/train_pnorm_ensemble.sh | 2 +- egs/wsj/s5/steps/nnet2/train_pnorm_fast.sh | 2 +- egs/wsj/s5/steps/nnet2/train_pnorm_multisplice.sh | 2 +- egs/wsj/s5/steps/nnet2/train_pnorm_multisplice2.sh | 2 +- egs/wsj/s5/steps/nnet2/train_pnorm_simple.sh | 2 +- egs/wsj/s5/steps/nnet2/train_pnorm_simple2.sh | 2 +- egs/wsj/s5/steps/nnet2/train_tanh.sh | 2 +- egs/wsj/s5/steps/nnet2/train_tanh_bottleneck.sh | 2 +- egs/wsj/s5/steps/nnet2/train_tanh_fast.sh | 2 +- egs/wsj/s5/steps/nnet2/update_nnet.sh | 2 +- egs/wsj/s5/steps/nnet3/adjust_priors.sh | 2 +- egs/wsj/s5/steps/nnet3/align.sh | 2 +- egs/wsj/s5/steps/nnet3/align_lats.sh | 2 +- egs/wsj/s5/steps/nnet3/chain/build_tree.sh | 2 +- .../s5/steps/nnet3/chain/build_tree_multiple_sources.sh | 2 +- egs/wsj/s5/steps/nnet3/chain/e2e/get_egs_e2e.sh | 2 +- egs/wsj/s5/steps/nnet3/chain/e2e/prepare_e2e.sh | 2 +- egs/wsj/s5/steps/nnet3/chain/get_egs.sh | 2 +- egs/wsj/s5/steps/nnet3/chain/get_phone_post.sh | 2 +- egs/wsj/s5/steps/nnet3/chain/make_weighted_den_fst.sh | 2 +- egs/wsj/s5/steps/nnet3/chain/multilingual/combine_egs.sh | 2 +- egs/wsj/s5/steps/nnet3/chain/train_tdnn.sh | 2 +- egs/wsj/s5/steps/nnet3/compute_output.sh | 2 +- egs/wsj/s5/steps/nnet3/decode.sh | 2 +- egs/wsj/s5/steps/nnet3/decode_grammar.sh | 2 +- egs/wsj/s5/steps/nnet3/decode_looped.sh | 2 +- egs/wsj/s5/steps/nnet3/decode_score_fusion.sh | 2 +- egs/wsj/s5/steps/nnet3/decode_semisup.sh | 2 +- egs/wsj/s5/steps/nnet3/get_degs.sh | 2 +- egs/wsj/s5/steps/nnet3/get_egs.sh | 2 +- egs/wsj/s5/steps/nnet3/get_egs_discriminative.sh | 2 +- egs/wsj/s5/steps/nnet3/get_egs_targets.sh | 2 +- egs/wsj/s5/steps/nnet3/lstm/train.sh | 2 +- egs/wsj/s5/steps/nnet3/make_bottleneck_features.sh | 2 +- egs/wsj/s5/steps/nnet3/make_denlats.sh | 2 +- egs/wsj/s5/steps/nnet3/multilingual/combine_egs.sh | 2 +- egs/wsj/s5/steps/nnet3/nnet3_to_dot.sh | 2 +- egs/wsj/s5/steps/nnet3/tdnn/train.sh | 2 +- egs/wsj/s5/steps/nnet3/tdnn/train_raw_nnet.sh | 2 +- egs/wsj/s5/steps/nnet3/train_discriminative.sh | 2 +- egs/wsj/s5/steps/nnet3/train_tdnn.sh | 2 +- egs/wsj/s5/steps/online/decode.sh | 2 +- egs/wsj/s5/steps/online/nnet2/align.sh | 2 +- egs/wsj/s5/steps/online/nnet2/copy_data_dir.sh | 2 +- egs/wsj/s5/steps/online/nnet2/copy_ivector_dir.sh | 2 +- egs/wsj/s5/steps/online/nnet2/decode.sh | 2 +- egs/wsj/s5/steps/online/nnet2/dump_nnet_activations.sh | 2 +- egs/wsj/s5/steps/online/nnet2/extract_ivectors.sh | 2 +- egs/wsj/s5/steps/online/nnet2/extract_ivectors_online.sh | 2 +- egs/wsj/s5/steps/online/nnet2/get_egs.sh | 2 +- egs/wsj/s5/steps/online/nnet2/get_egs2.sh | 2 +- egs/wsj/s5/steps/online/nnet2/get_egs_discriminative2.sh | 2 +- egs/wsj/s5/steps/online/nnet2/get_pca_transform.sh | 2 +- egs/wsj/s5/steps/online/nnet2/make_denlats.sh | 2 +- egs/wsj/s5/steps/online/nnet2/prepare_online_decoding.sh | 2 +- .../steps/online/nnet2/prepare_online_decoding_retrain.sh | 2 +- .../online/nnet2/prepare_online_decoding_transfer.sh | 2 +- egs/wsj/s5/steps/online/nnet2/train_diag_ubm.sh | 2 +- egs/wsj/s5/steps/online/nnet2/train_ivector_extractor.sh | 2 +- egs/wsj/s5/steps/online/nnet3/decode.sh | 2 +- egs/wsj/s5/steps/online/nnet3/prepare_online_decoding.sh | 2 +- egs/wsj/s5/steps/online/prepare_online_decoding.sh | 2 +- egs/wsj/s5/steps/oracle_wer.sh | 2 +- egs/wsj/s5/steps/paste_feats.sh | 2 +- egs/wsj/s5/steps/resegment_data.sh | 2 +- egs/wsj/s5/steps/resegment_text.sh | 2 +- egs/wsj/s5/steps/rnnlmrescore.sh | 2 +- egs/wsj/s5/steps/scoring/score_kaldi_cer.sh | 2 +- egs/wsj/s5/steps/scoring/score_kaldi_compare.sh | 2 +- egs/wsj/s5/steps/scoring/score_kaldi_wer.sh | 2 +- egs/wsj/s5/steps/search_index.sh | 2 +- egs/wsj/s5/steps/segmentation/ali_to_targets.sh | 2 +- egs/wsj/s5/steps/segmentation/combine_targets_dirs.sh | 2 +- .../convert_targets_dir_to_whole_recording.sh | 2 +- egs/wsj/s5/steps/segmentation/copy_targets_dir.sh | 2 +- egs/wsj/s5/steps/segmentation/decode_sad.sh | 2 +- egs/wsj/s5/steps/segmentation/detect_speech_activity.sh | 2 +- .../steps/segmentation/get_targets_for_out_of_segments.sh | 2 +- egs/wsj/s5/steps/segmentation/lats_to_targets.sh | 2 +- egs/wsj/s5/steps/segmentation/merge_targets_dirs.sh | 2 +- .../s5/steps/segmentation/post_process_sad_to_segments.sh | 2 +- egs/wsj/s5/steps/segmentation/resample_targets_dir.sh | 2 +- egs/wsj/s5/steps/segmentation/validate_targets_dir.sh | 2 +- egs/wsj/s5/steps/select_feats.sh | 2 +- egs/wsj/s5/steps/shift_feats.sh | 2 +- egs/wsj/s5/steps/subset_ali_dir.sh | 2 +- egs/wsj/s5/steps/tandem/align_fmllr.sh | 2 +- egs/wsj/s5/steps/tandem/align_sgmm2.sh | 2 +- egs/wsj/s5/steps/tandem/align_si.sh | 2 +- egs/wsj/s5/steps/tandem/decode.sh | 2 +- egs/wsj/s5/steps/tandem/decode_fmllr.sh | 2 +- egs/wsj/s5/steps/tandem/decode_sgmm2.sh | 2 +- egs/wsj/s5/steps/tandem/make_denlats.sh | 2 +- egs/wsj/s5/steps/tandem/make_denlats_sgmm2.sh | 2 +- egs/wsj/s5/steps/tandem/mk_aslf_lda_mllt.sh | 2 +- egs/wsj/s5/steps/tandem/mk_aslf_sgmm2.sh | 2 +- egs/wsj/s5/steps/tandem/train_deltas.sh | 2 +- egs/wsj/s5/steps/tandem/train_lda_mllt.sh | 2 +- egs/wsj/s5/steps/tandem/train_mllt.sh | 2 +- egs/wsj/s5/steps/tandem/train_mmi.sh | 2 +- egs/wsj/s5/steps/tandem/train_mmi_sgmm2.sh | 2 +- egs/wsj/s5/steps/tandem/train_mono.sh | 2 +- egs/wsj/s5/steps/tandem/train_sat.sh | 2 +- egs/wsj/s5/steps/tandem/train_sgmm2.sh | 2 +- egs/wsj/s5/steps/tandem/train_ubm.sh | 2 +- egs/wsj/s5/steps/tfrnnlm/check_tensorflow_installed.sh | 2 +- egs/wsj/s5/steps/tfrnnlm/lmrescore_rnnlm_lat.sh | 2 +- egs/wsj/s5/steps/tfrnnlm/lmrescore_rnnlm_lat_pruned.sh | 2 +- egs/wsj/s5/steps/train_deltas.sh | 2 +- egs/wsj/s5/steps/train_diag_ubm.sh | 2 +- egs/wsj/s5/steps/train_lda_mllt.sh | 2 +- egs/wsj/s5/steps/train_lvtln.sh | 2 +- egs/wsj/s5/steps/train_map.sh | 2 +- egs/wsj/s5/steps/train_mmi.sh | 2 +- egs/wsj/s5/steps/train_mmi_fmmi.sh | 2 +- egs/wsj/s5/steps/train_mmi_fmmi_indirect.sh | 2 +- egs/wsj/s5/steps/train_mmi_sgmm2.sh | 2 +- egs/wsj/s5/steps/train_mono.sh | 2 +- egs/wsj/s5/steps/train_mpe.sh | 2 +- egs/wsj/s5/steps/train_quick.sh | 2 +- egs/wsj/s5/steps/train_raw_sat.sh | 2 +- egs/wsj/s5/steps/train_sat.sh | 2 +- egs/wsj/s5/steps/train_sat_basis.sh | 2 +- egs/wsj/s5/steps/train_segmenter.sh | 2 +- egs/wsj/s5/steps/train_sgmm2.sh | 2 +- egs/wsj/s5/steps/train_sgmm2_group.sh | 2 +- egs/wsj/s5/steps/train_smbr.sh | 2 +- egs/wsj/s5/steps/train_ubm.sh | 2 +- egs/wsj/s5/steps/word_align_lattices.sh | 2 +- egs/wsj/s5/utils/best_wer.sh | 2 +- egs/wsj/s5/utils/build_const_arpa_lm.sh | 2 +- egs/wsj/s5/utils/combine_data.sh | 2 +- egs/wsj/s5/utils/convert_slf_parallel.sh | 2 +- egs/wsj/s5/utils/copy_data_dir.sh | 2 +- egs/wsj/s5/utils/data/combine_short_segments.sh | 2 +- egs/wsj/s5/utils/data/extract_wav_segments_data_dir.sh | 2 +- egs/wsj/s5/utils/data/get_frame_shift.sh | 2 +- egs/wsj/s5/utils/data/get_num_frames.sh | 2 +- egs/wsj/s5/utils/data/get_reco2dur.sh | 2 +- egs/wsj/s5/utils/data/get_segments_for_data.sh | 2 +- egs/wsj/s5/utils/data/get_utt2dur.sh | 2 +- egs/wsj/s5/utils/data/limit_feature_dim.sh | 2 +- egs/wsj/s5/utils/data/modify_speaker_info.sh | 2 +- egs/wsj/s5/utils/data/modify_speaker_info_to_recording.sh | 2 +- egs/wsj/s5/utils/data/perturb_data_dir_speed_3way.sh | 2 +- egs/wsj/s5/utils/data/perturb_data_dir_volume.sh | 2 +- egs/wsj/s5/utils/data/remove_dup_utts.sh | 2 +- egs/wsj/s5/utils/data/shift_and_combine_feats.sh | 2 +- egs/wsj/s5/utils/data/shift_feats.sh | 2 +- egs/wsj/s5/utils/data/subsegment_data_dir.sh | 2 +- egs/wsj/s5/utils/dict_dir_add_pronprobs.sh | 2 +- egs/wsj/s5/utils/fix_data_dir.sh | 2 +- egs/wsj/s5/utils/format_lm_sri.sh | 2 +- egs/wsj/s5/utils/lang/adjust_unk_graph.sh | 2 +- egs/wsj/s5/utils/lang/bpe/add_final_optional_silence.sh | 2 +- egs/wsj/s5/utils/lang/check_phones_compatible.sh | 2 +- egs/wsj/s5/utils/lang/extend_lang.sh | 2 +- egs/wsj/s5/utils/lang/internal/apply_unk_lm.sh | 2 +- egs/wsj/s5/utils/lang/make_phone_bigram_lang.sh | 2 +- egs/wsj/s5/utils/lang/make_unk_lm.sh | 2 +- egs/wsj/s5/utils/make_absolute.sh | 2 +- egs/wsj/s5/utils/mkgraph.sh | 2 +- egs/wsj/s5/utils/nnet/subset_data_tr_cv.sh | 2 +- egs/wsj/s5/utils/parallel/limit_num_gpus.sh | 2 +- egs/wsj/s5/utils/parse_options.sh | 2 +- egs/wsj/s5/utils/perturb_data_dir_speed.sh | 2 +- egs/wsj/s5/utils/prepare_extended_lang.sh | 2 +- egs/wsj/s5/utils/prepare_lang.sh | 2 +- egs/wsj/s5/utils/prepare_online_nnet_dist_build.sh | 2 +- egs/wsj/s5/utils/remove_data_links.sh | 2 +- egs/wsj/s5/utils/rnnlm_compute_scores.sh | 2 +- egs/wsj/s5/utils/show_lattice.sh | 2 +- egs/wsj/s5/utils/split_data.sh | 2 +- egs/wsj/s5/utils/subset_data_dir.sh | 2 +- egs/wsj/s5/utils/subword/prepare_lang_subword.sh | 2 +- egs/wsj/s5/utils/subword/prepare_subword_text.sh | 2 +- egs/wsj/s5/utils/validate_data_dir.sh | 2 +- egs/yesno/s5/local/prepare_data.sh | 2 +- egs/yesno/s5/local/prepare_dict.sh | 2 +- egs/yesno/s5/local/prepare_lm.sh | 2 +- egs/yesno/s5/run.sh | 2 +- egs/yomdle_fa/v1/local/augment_data.sh | 2 +- egs/yomdle_fa/v1/local/chain/compare_wer.sh | 2 +- egs/yomdle_fa/v1/local/chain/run_cnn_e2eali_1b.sh | 2 +- egs/yomdle_fa/v1/local/chain/run_flatstart_cnn1a.sh | 2 +- egs/yomdle_fa/v1/local/create_download.sh | 2 +- egs/yomdle_fa/v1/local/extract_features.sh | 2 +- egs/yomdle_fa/v1/local/score.sh | 2 +- egs/yomdle_fa/v1/local/train_lm.sh | 2 +- egs/yomdle_fa/v1/local/train_lm_lr.sh | 2 +- egs/yomdle_fa/v1/run.sh | 2 +- egs/yomdle_korean/v1/local/augment_data.sh | 2 +- egs/yomdle_korean/v1/local/chain/compare_wer.sh | 2 +- egs/yomdle_korean/v1/local/chain/run_e2e_cnn.sh | 2 +- .../v1/local/chain/tuning/run_cnn_e2eali_1a.sh | 2 +- .../v1/local/chain/tuning/run_cnn_e2eali_1b.sh | 2 +- egs/yomdle_korean/v1/local/extract_features.sh | 2 +- egs/yomdle_korean/v1/local/score.sh | 2 +- .../semisup/chain/run_cnn_chainali_semisupervised_1a.sh | 2 +- .../semisup/chain/run_cnn_chainali_semisupervised_1b.sh | 2 +- egs/yomdle_korean/v1/local/semisup/run_semisup.sh | 2 +- egs/yomdle_korean/v1/local/train_lm.sh | 2 +- egs/yomdle_korean/v1/run_end2end.sh | 2 +- egs/yomdle_russian/v1/local/chain/compare_wer.sh | 2 +- egs/yomdle_russian/v1/local/chain/run_e2e_cnn.sh | 2 +- .../v1/local/chain/tuning/run_cnn_e2eali_1a.sh | 2 +- egs/yomdle_russian/v1/local/extract_features.sh | 2 +- egs/yomdle_russian/v1/local/score.sh | 2 +- egs/yomdle_russian/v1/local/train_lm.sh | 2 +- egs/yomdle_russian/v1/run_end2end.sh | 2 +- egs/yomdle_tamil/v1/local/augment_data.sh | 2 +- egs/yomdle_tamil/v1/local/chain/compare_wer.sh | 2 +- egs/yomdle_tamil/v1/local/chain/run_e2e_cnn.sh | 2 +- .../v1/local/chain/tuning/run_cnn_e2eali_1a.sh | 2 +- .../v1/local/chain/tuning/run_cnn_e2eali_1b.sh | 2 +- egs/yomdle_tamil/v1/local/extract_features.sh | 2 +- egs/yomdle_tamil/v1/local/score.sh | 2 +- .../semisup/chain/run_cnn_chainali_semisupervised_1a.sh | 2 +- .../semisup/chain/run_cnn_chainali_semisupervised_1b.sh | 2 +- egs/yomdle_tamil/v1/local/semisup/run_semisup.sh | 2 +- egs/yomdle_tamil/v1/local/train_lm.sh | 2 +- egs/yomdle_tamil/v1/local/yomdle/create_download_dir.sh | 2 +- .../yomdle/normalized_scoring/baseline_text_detect.sh | 2 +- .../local/yomdle/normalized_scoring/eval_text_detect.sh | 2 +- .../local/yomdle/normalized_scoring/normalized_score.sh | 2 +- egs/yomdle_tamil/v1/run_end2end.sh | 2 +- egs/yomdle_zh/v1/local/augment_data.sh | 2 +- egs/yomdle_zh/v1/local/chain/compare_wer.sh | 2 +- egs/yomdle_zh/v1/local/chain/run_cnn_e2eali_1b.sh | 2 +- egs/yomdle_zh/v1/local/chain/run_flatstart_cnn1a.sh | 2 +- egs/yomdle_zh/v1/local/create_download.sh | 2 +- egs/yomdle_zh/v1/local/extract_features.sh | 2 +- egs/yomdle_zh/v1/local/score.sh | 2 +- egs/yomdle_zh/v1/local/train_lm.sh | 2 +- egs/yomdle_zh/v1/local/train_lm_lr.sh | 2 +- egs/yomdle_zh/v1/run.sh | 2 +- egs/zeroth_korean/s5/local/chain/compare_wer.sh | 2 +- egs/zeroth_korean/s5/local/chain/tuning/run_tdnn_1a.sh | 2 +- .../s5/local/chain/tuning/run_tdnn_opgru_1a.sh | 2 +- egs/zeroth_korean/s5/local/data_prep.sh | 2 +- egs/zeroth_korean/s5/local/download_and_untar.sh | 2 +- egs/zeroth_korean/s5/local/format_lms.sh | 2 +- egs/zeroth_korean/s5/local/nnet3/run_ivector_common.sh | 2 +- egs/zeroth_korean/s5/local/prepare_dict.sh | 2 +- egs/zeroth_korean/s5/local/score.sh | 2 +- egs/zeroth_korean/s5/local/update_segmentation.sh | 2 +- egs/zeroth_korean/s5/run.sh | 2 +- misc/htk_conversion/convert_htk.sh | 2 +- misc/htk_graph_creation_example/test.sh | 2 +- misc/maintenance/find_missing_dependencies.sh | 2 +- misc/maintenance/fix_apache_headers.sh | 2 +- misc/maintenance/fix_bash_shebang.sh | 8 ++++++++ misc/maintenance/fix_cpplint_whitespace.sh | 2 +- misc/maintenance/svnignore.sh | 2 +- misc/papers/icassp12_lat/examples.sh | 2 +- scripts/rnnlm/compute_perplexity.sh | 2 +- scripts/rnnlm/compute_sentence_scores.sh | 2 +- scripts/rnnlm/compute_sentence_scores_back.sh | 2 +- scripts/rnnlm/get_num_splits.sh | 2 +- scripts/rnnlm/lmrescore.sh | 2 +- scripts/rnnlm/lmrescore_back.sh | 2 +- scripts/rnnlm/lmrescore_nbest.sh | 2 +- scripts/rnnlm/lmrescore_nbest_back.sh | 2 +- scripts/rnnlm/lmrescore_pruned.sh | 2 +- src/doc/get_version_info.sh | 2 +- src/doc/make_tools.sh | 2 +- tools/extras/check_for_rnnlm.sh | 2 +- tools/extras/install_beamformit.sh | 2 +- tools/extras/install_cffi.sh | 2 +- tools/extras/install_chainer.sh | 2 +- tools/extras/install_faster_rnnlm.sh | 2 +- tools/extras/install_ffv.sh | 2 +- tools/extras/install_irstlm.sh | 2 +- tools/extras/install_jieba.sh | 2 +- tools/extras/install_kaldi_io.sh | 2 +- tools/extras/install_kaldi_lm.sh | 2 +- tools/extras/install_liblbfgs.sh | 2 +- tools/extras/install_mikolov_rnnlm.sh | 2 +- tools/extras/install_miniconda.sh | 2 +- tools/extras/install_mkl.sh | 2 +- tools/extras/install_mmseg.sh | 2 +- tools/extras/install_morfessor.sh | 2 +- tools/extras/install_mpg123.sh | 2 +- tools/extras/install_nkf.sh | 2 +- tools/extras/install_openblas.sh | 2 +- tools/extras/install_pfile_utils.sh | 2 +- tools/extras/install_phonetisaurus.sh | 2 +- tools/extras/install_pocolm.sh | 2 +- tools/extras/install_portaudio.sh | 2 +- tools/extras/install_sacc.sh | 2 +- tools/extras/install_sctk_patched.sh | 2 +- tools/extras/install_sequitur.sh | 2 +- tools/extras/install_speex.sh | 2 +- tools/extras/install_srilm.sh | 2 +- tools/extras/install_tensorflow_cc.sh | 2 +- tools/extras/install_tensorflow_py.sh | 2 +- tools/extras/install_wpe.sh | 2 +- tools/extras/travis_install_bindeps.sh | 2 +- tools/extras/travis_script.sh | 2 +- tools/extras/travis_show_failures.sh | 2 +- 2514 files changed, 2527 insertions(+), 2519 deletions(-) create mode 100755 misc/maintenance/fix_bash_shebang.sh diff --git a/egs/aidatatang_200zh/s5/local/chain/compare_wer.sh b/egs/aidatatang_200zh/s5/local/chain/compare_wer.sh index 71e6fbe106d..c365a8ab780 100755 --- a/egs/aidatatang_200zh/s5/local/chain/compare_wer.sh +++ b/egs/aidatatang_200zh/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Emotech LTD (Author: Xuechen Liu) # compare wer between diff. models in aidatatang_200zh chain directory diff --git a/egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_1a.sh index 0be0e2c79c6..9af9622d301 100644 --- a/egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on run_tdnn_7h.sh in swbd chain recipe. diff --git a/egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_2a.sh b/egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_2a.sh index 78dd4000e58..0aead9a7103 100644 --- a/egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_2a.sh +++ b/egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_2a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on run_tdnn_1a.sh. # This setup used online pitch to train the neural network. diff --git a/egs/aidatatang_200zh/s5/local/data_prep.sh b/egs/aidatatang_200zh/s5/local/data_prep.sh index bb278a7d904..1e4bf127b28 100644 --- a/egs/aidatatang_200zh/s5/local/data_prep.sh +++ b/egs/aidatatang_200zh/s5/local/data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Xingyu Na # Apache 2.0 diff --git a/egs/aidatatang_200zh/s5/local/download_and_untar.sh b/egs/aidatatang_200zh/s5/local/download_and_untar.sh index 39f9ac01ff7..1056ead6d1a 100644 --- a/egs/aidatatang_200zh/s5/local/download_and_untar.sh +++ b/egs/aidatatang_200zh/s5/local/download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # 2017 Xingyu Na diff --git a/egs/aidatatang_200zh/s5/local/format_data.sh b/egs/aidatatang_200zh/s5/local/format_data.sh index 47af9dd9dfd..2198bae3fe7 100644 --- a/egs/aidatatang_200zh/s5/local/format_data.sh +++ b/egs/aidatatang_200zh/s5/local/format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # . ./path.sh diff --git a/egs/aidatatang_200zh/s5/local/nnet3/compare_wer.sh b/egs/aidatatang_200zh/s5/local/nnet3/compare_wer.sh index 2d85626c356..35c1330aab4 100755 --- a/egs/aidatatang_200zh/s5/local/nnet3/compare_wer.sh +++ b/egs/aidatatang_200zh/s5/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Emotech LTD (Author: Xuechen Liu) # compare wer between diff. models in aidatatang_200zh nnet3 directory diff --git a/egs/aidatatang_200zh/s5/local/nnet3/run_ivector_common.sh b/egs/aidatatang_200zh/s5/local/nnet3/run_ivector_common.sh index 0fe55ecf000..f3ed8623495 100644 --- a/egs/aidatatang_200zh/s5/local/nnet3/run_ivector_common.sh +++ b/egs/aidatatang_200zh/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/aidatatang_200zh/s5/local/nnet3/tuning/run_tdnn.sh b/egs/aidatatang_200zh/s5/local/nnet3/tuning/run_tdnn.sh index 2bcded42ed1..ca396e50542 100644 --- a/egs/aidatatang_200zh/s5/local/nnet3/tuning/run_tdnn.sh +++ b/egs/aidatatang_200zh/s5/local/nnet3/tuning/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on aishell/s5/local/nnet3/tuning/run_tdnn_1a.sh diff --git a/egs/aidatatang_200zh/s5/local/prepare_dict.sh b/egs/aidatatang_200zh/s5/local/prepare_dict.sh index aa72bcd48d2..8096c45be34 100644 --- a/egs/aidatatang_200zh/s5/local/prepare_dict.sh +++ b/egs/aidatatang_200zh/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #Copyright 2016 LeSpeech (Author: Xingyu Na) # prepare dictionary for aidatatang diff --git a/egs/aidatatang_200zh/s5/local/score.sh b/egs/aidatatang_200zh/s5/local/score.sh index a9786169973..d283ceb68dc 100644 --- a/egs/aidatatang_200zh/s5/local/score.sh +++ b/egs/aidatatang_200zh/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail set -x diff --git a/egs/aidatatang_200zh/s5/local/train_lms.sh b/egs/aidatatang_200zh/s5/local/train_lms.sh index bc52f8acb20..96da93d3e9f 100644 --- a/egs/aidatatang_200zh/s5/local/train_lms.sh +++ b/egs/aidatatang_200zh/s5/local/train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/aidatatang_200zh/s5/run.sh b/egs/aidatatang_200zh/s5/run.sh index 47e46a660cd..3bd20469006 100644 --- a/egs/aidatatang_200zh/s5/run.sh +++ b/egs/aidatatang_200zh/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Beijing DataTang Tech. Co. Ltd. (Author: Liyuan Wang) # 2017 Hui Bu diff --git a/egs/aishell/s5/local/aishell_data_prep.sh b/egs/aishell/s5/local/aishell_data_prep.sh index 4747e4f4d82..3be62708db2 100755 --- a/egs/aishell/s5/local/aishell_data_prep.sh +++ b/egs/aishell/s5/local/aishell_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Xingyu Na # Apache 2.0 diff --git a/egs/aishell/s5/local/aishell_prepare_dict.sh b/egs/aishell/s5/local/aishell_prepare_dict.sh index c4cabb24de4..28ab5e2122f 100755 --- a/egs/aishell/s5/local/aishell_prepare_dict.sh +++ b/egs/aishell/s5/local/aishell_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Xingyu Na # Apache 2.0 diff --git a/egs/aishell/s5/local/aishell_train_lms.sh b/egs/aishell/s5/local/aishell_train_lms.sh index 9b6cdad2960..eaca5e2fafa 100755 --- a/egs/aishell/s5/local/aishell_train_lms.sh +++ b/egs/aishell/s5/local/aishell_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/aishell/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/aishell/s5/local/chain/tuning/run_tdnn_1a.sh index b38fa4d9c7a..79b2023ab7e 100755 --- a/egs/aishell/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/aishell/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on run_tdnn_7h.sh in swbd chain recipe. diff --git a/egs/aishell/s5/local/chain/tuning/run_tdnn_2a.sh b/egs/aishell/s5/local/chain/tuning/run_tdnn_2a.sh index 6b7223785d9..669a014e8cf 100755 --- a/egs/aishell/s5/local/chain/tuning/run_tdnn_2a.sh +++ b/egs/aishell/s5/local/chain/tuning/run_tdnn_2a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on run_tdnn_1a.sh. # This setup used online pitch to train the neural network. diff --git a/egs/aishell/s5/local/download_and_untar.sh b/egs/aishell/s5/local/download_and_untar.sh index 58a278241d7..9c70836bf46 100755 --- a/egs/aishell/s5/local/download_and_untar.sh +++ b/egs/aishell/s5/local/download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # 2017 Xingyu Na diff --git a/egs/aishell/s5/local/nnet3/run_ivector_common.sh b/egs/aishell/s5/local/nnet3/run_ivector_common.sh index af0ae122372..8f73deb145b 100755 --- a/egs/aishell/s5/local/nnet3/run_ivector_common.sh +++ b/egs/aishell/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/aishell/s5/local/nnet3/tuning/run_tdnn_1a.sh b/egs/aishell/s5/local/nnet3/tuning/run_tdnn_1a.sh index 3cb8cd861a3..db434b2b24b 100755 --- a/egs/aishell/s5/local/nnet3/tuning/run_tdnn_1a.sh +++ b/egs/aishell/s5/local/nnet3/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on swbd/s5c/local/nnet3/run_tdnn.sh diff --git a/egs/aishell/s5/local/nnet3/tuning/run_tdnn_2a.sh b/egs/aishell/s5/local/nnet3/tuning/run_tdnn_2a.sh index 603149585f2..a5b129be31c 100755 --- a/egs/aishell/s5/local/nnet3/tuning/run_tdnn_2a.sh +++ b/egs/aishell/s5/local/nnet3/tuning/run_tdnn_2a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on aishell/s5/local/nnet3/tuning/run_tdnn_1a.sh diff --git a/egs/aishell/s5/local/score.sh b/egs/aishell/s5/local/score.sh index a9786169973..d283ceb68dc 100755 --- a/egs/aishell/s5/local/score.sh +++ b/egs/aishell/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail set -x diff --git a/egs/aishell/s5/run.sh b/egs/aishell/s5/run.sh index a99cb51c656..b49edc48aaa 100755 --- a/egs/aishell/s5/run.sh +++ b/egs/aishell/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Beijing Shell Shell Tech. Co. Ltd. (Authors: Hui Bu) # 2017 Jiayu Du diff --git a/egs/aishell/v1/local/aishell_data_prep.sh b/egs/aishell/v1/local/aishell_data_prep.sh index 11d131dcdb1..022276cf2b6 100755 --- a/egs/aishell/v1/local/aishell_data_prep.sh +++ b/egs/aishell/v1/local/aishell_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Xingyu Na # Apache 2.0 diff --git a/egs/aishell/v1/local/download_and_untar.sh b/egs/aishell/v1/local/download_and_untar.sh index 3578a1c0835..b0636a8cd86 100755 --- a/egs/aishell/v1/local/download_and_untar.sh +++ b/egs/aishell/v1/local/download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # 2017 Xingyu Na diff --git a/egs/aishell/v1/run.sh b/egs/aishell/v1/run.sh index 0aaa6d493d6..b16939bd37a 100755 --- a/egs/aishell/v1/run.sh +++ b/egs/aishell/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Beijing Shell Shell Tech. Co. Ltd. (Authors: Hui Bu) # 2017 Jiayu Du # 2017 Chao Li diff --git a/egs/aishell2/s5/local/chain/compare_wer.sh b/egs/aishell2/s5/local/chain/compare_wer.sh index c66a861c3f3..e5730df9848 100755 --- a/egs/aishell2/s5/local/chain/compare_wer.sh +++ b/egs/aishell2/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Emotech LTD (Author: Xuechen LIU) # Apache 2.0 diff --git a/egs/aishell2/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/aishell2/s5/local/chain/tuning/run_tdnn_1a.sh index 86c9becac5b..c1cc56ea3c6 100755 --- a/egs/aishell2/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/aishell2/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is the original baseline scripts, which is supposed to be deprecated. diff --git a/egs/aishell2/s5/local/chain/tuning/run_tdnn_1b.sh b/egs/aishell2/s5/local/chain/tuning/run_tdnn_1b.sh index d8560e63909..f1bfaf8d373 100755 --- a/egs/aishell2/s5/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/aishell2/s5/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _1b is as _1a, but with pitch feats, i-vector and dropout schedule added, referenced from wsj diff --git a/egs/aishell2/s5/local/nnet3/compare_wer.sh b/egs/aishell2/s5/local/nnet3/compare_wer.sh index 84dda2fda14..66c1f640704 100755 --- a/egs/aishell2/s5/local/nnet3/compare_wer.sh +++ b/egs/aishell2/s5/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Emotech LTD (Author: Xuechen LIU) # Apache 2.0 diff --git a/egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1a.sh b/egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1a.sh index 34ca1f0f224..130aee3cb5e 100755 --- a/egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1a.sh +++ b/egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on swbd/s5c/local/nnet3/run_tdnn.sh diff --git a/egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1b.sh b/egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1b.sh index ea3a59e90ee..a6fa46f1444 100755 --- a/egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1b.sh +++ b/egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on run_tdnn_1a.sh, but with pitch features applied diff --git a/egs/aishell2/s5/local/prepare_all.sh b/egs/aishell2/s5/local/prepare_all.sh index 3928eb95ca3..b9b9bb271ec 100755 --- a/egs/aishell2/s5/local/prepare_all.sh +++ b/egs/aishell2/s5/local/prepare_all.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG) # 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU) diff --git a/egs/aishell2/s5/local/prepare_data.sh b/egs/aishell2/s5/local/prepare_data.sh index 4be9664ac31..6e0538155bb 100755 --- a/egs/aishell2/s5/local/prepare_data.sh +++ b/egs/aishell2/s5/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG) # 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU) # Apache 2.0 diff --git a/egs/aishell2/s5/local/prepare_dict.sh b/egs/aishell2/s5/local/prepare_dict.sh index 56ab885ae94..9df3d73f972 100755 --- a/egs/aishell2/s5/local/prepare_dict.sh +++ b/egs/aishell2/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG) # 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU) # Apache 2.0 diff --git a/egs/aishell2/s5/local/run_gmm.sh b/egs/aishell2/s5/local/run_gmm.sh index 569e5ab570a..f32dde55348 100755 --- a/egs/aishell2/s5/local/run_gmm.sh +++ b/egs/aishell2/s5/local/run_gmm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG) # 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU) # 2018 Emotech LTD (Author: Xuechen LIU) diff --git a/egs/aishell2/s5/local/score.sh b/egs/aishell2/s5/local/score.sh index a9786169973..d283ceb68dc 100755 --- a/egs/aishell2/s5/local/score.sh +++ b/egs/aishell2/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail set -x diff --git a/egs/aishell2/s5/local/train_lms.sh b/egs/aishell2/s5/local/train_lms.sh index 179a7b78e14..0efeb2d2fd4 100755 --- a/egs/aishell2/s5/local/train_lms.sh +++ b/egs/aishell2/s5/local/train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG) # 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU) # Apache 2.0 diff --git a/egs/aishell2/s5/run.sh b/egs/aishell2/s5/run.sh index 8afdd3ed310..ffa4268081b 100755 --- a/egs/aishell2/s5/run.sh +++ b/egs/aishell2/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG) # 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU) diff --git a/egs/ami/s5/local/ami_beamform.sh b/egs/ami/s5/local/ami_beamform.sh index b5ff8c23ba8..dd4cf22ac7b 100755 --- a/egs/ami/s5/local/ami_beamform.sh +++ b/egs/ami/s5/local/ami_beamform.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski) # Apache 2.0 diff --git a/egs/ami/s5/local/ami_download.sh b/egs/ami/s5/local/ami_download.sh index cba130c8467..8c48a16ae7a 100755 --- a/egs/ami/s5/local/ami_download.sh +++ b/egs/ami/s5/local/ami_download.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski, Jonathan Kilgour) # Copyright 2015, Brno University of Technology (Author: Karel Vesely) @@ -56,7 +56,7 @@ wgetfile=$wdir/wget_$mic.sh manifest="wget --continue -O $adir/MANIFEST.TXT http://groups.inf.ed.ac.uk/ami/download/temp/amiBuild-0153-Tue-Oct-2-2018.manifest.txt" -echo "#!/bin/bash" > $wgetfile +echo "#!/usr/bin/env bash" > $wgetfile echo $manifest >> $wgetfile while read line; do diff --git a/egs/ami/s5/local/ami_format_data.sh b/egs/ami/s5/local/ami_format_data.sh index b69583850ab..c8c5ff0946d 100755 --- a/egs/ami/s5/local/ami_format_data.sh +++ b/egs/ami/s5/local/ami_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # if [ -f path.sh ]; then . ./path.sh; fi diff --git a/egs/ami/s5/local/ami_ihm_data_prep.sh b/egs/ami/s5/local/ami_ihm_data_prep.sh index 16949aef9b8..1a31ee0c233 100755 --- a/egs/ami/s5/local/ami_ihm_data_prep.sh +++ b/egs/ami/s5/local/ami_ihm_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski) # AMI Corpus training data preparation diff --git a/egs/ami/s5/local/ami_ihm_scoring_data_prep.sh b/egs/ami/s5/local/ami_ihm_scoring_data_prep.sh index 7112e0259a0..b8f9614c907 100755 --- a/egs/ami/s5/local/ami_ihm_scoring_data_prep.sh +++ b/egs/ami/s5/local/ami_ihm_scoring_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski) # AMI Corpus dev/eval data preparation diff --git a/egs/ami/s5/local/ami_mdm_data_prep.sh b/egs/ami/s5/local/ami_mdm_data_prep.sh index 22cebd1ea11..427bf49cd0b 100755 --- a/egs/ami/s5/local/ami_mdm_data_prep.sh +++ b/egs/ami/s5/local/ami_mdm_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski) # AMI Corpus dev/eval data preparation diff --git a/egs/ami/s5/local/ami_mdm_scoring_data_prep.sh b/egs/ami/s5/local/ami_mdm_scoring_data_prep.sh index 9c4b55308f2..c05e80169c2 100755 --- a/egs/ami/s5/local/ami_mdm_scoring_data_prep.sh +++ b/egs/ami/s5/local/ami_mdm_scoring_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski) # AMI Corpus dev/eval data preparation diff --git a/egs/ami/s5/local/ami_prepare_dict.sh b/egs/ami/s5/local/ami_prepare_dict.sh index 1834cfd112b..26f75e83e1d 100755 --- a/egs/ami/s5/local/ami_prepare_dict.sh +++ b/egs/ami/s5/local/ami_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #adapted from fisher dict preparation script, Author: Pawel Swietojanski diff --git a/egs/ami/s5/local/ami_sdm_data_prep.sh b/egs/ami/s5/local/ami_sdm_data_prep.sh index ea92055e089..055dd61aaa2 100755 --- a/egs/ami/s5/local/ami_sdm_data_prep.sh +++ b/egs/ami/s5/local/ami_sdm_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski) # AMI Corpus dev/eval data preparation diff --git a/egs/ami/s5/local/ami_sdm_scoring_data_prep.sh b/egs/ami/s5/local/ami_sdm_scoring_data_prep.sh index 815e1b2d270..ec6b7933df7 100755 --- a/egs/ami/s5/local/ami_sdm_scoring_data_prep.sh +++ b/egs/ami/s5/local/ami_sdm_scoring_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski) # AMI Corpus dev/eval data preparation diff --git a/egs/ami/s5/local/ami_text_prep.sh b/egs/ami/s5/local/ami_text_prep.sh index 777c3d8b086..eace6dfc1c7 100755 --- a/egs/ami/s5/local/ami_text_prep.sh +++ b/egs/ami/s5/local/ami_text_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Brno University of Technology (Author: Karel Vesely) # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski), 2014, Apache 2.0 diff --git a/egs/ami/s5/local/ami_train_lms.sh b/egs/ami/s5/local/ami_train_lms.sh index 493a3edb5da..54ad87880a4 100755 --- a/egs/ami/s5/local/ami_train_lms.sh +++ b/egs/ami/s5/local/ami_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal, Pawel Swietojanski diff --git a/egs/ami/s5/local/ami_xml2text.sh b/egs/ami/s5/local/ami_xml2text.sh index c4b90a33702..6ccf28c12b8 100755 --- a/egs/ami/s5/local/ami_xml2text.sh +++ b/egs/ami/s5/local/ami_xml2text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright, University of Edinburgh (Pawel Swietojanski and Jonathan Kilgour) diff --git a/egs/ami/s5/local/beamformit.sh b/egs/ami/s5/local/beamformit.sh index f50716d8872..563b303ecc0 100755 --- a/egs/ami/s5/local/beamformit.sh +++ b/egs/ami/s5/local/beamformit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski) diff --git a/egs/ami/s5/local/chain/run_blstm_ami_5.sh b/egs/ami/s5/local/chain/run_blstm_ami_5.sh index 53221a2bd53..aade87d9a61 100755 --- a/egs/ami/s5/local/chain/run_blstm_ami_5.sh +++ b/egs/ami/s5/local/chain/run_blstm_ami_5.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ### diff --git a/egs/ami/s5/local/chain/run_chain_common.sh b/egs/ami/s5/local/chain/run_chain_common.sh index a7ed2a8dbab..f74ba71e2a0 100755 --- a/egs/ami/s5/local/chain/run_chain_common.sh +++ b/egs/ami/s5/local/chain/run_chain_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script has common stages shared across AMI chain recipes set -e diff --git a/egs/ami/s5/local/chain/run_tdnn_ami_5.sh b/egs/ami/s5/local/chain/run_tdnn_ami_5.sh index df635316127..b63987d1534 100755 --- a/egs/ami/s5/local/chain/run_tdnn_ami_5.sh +++ b/egs/ami/s5/local/chain/run_tdnn_ami_5.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #adapted from swbd's local/chain/6z.sh script. We change the TDNN config # These are the other modifications: diff --git a/egs/ami/s5/local/confidence_calibration.sh b/egs/ami/s5/local/confidence_calibration.sh index d1217afe0d0..87be0061803 100755 --- a/egs/ami/s5/local/confidence_calibration.sh +++ b/egs/ami/s5/local/confidence_calibration.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh . ./path.sh diff --git a/egs/ami/s5/local/nnet/prepare_ivectors.sh b/egs/ami/s5/local/nnet/prepare_ivectors.sh index 5be120d600e..8b62bcc11bb 100755 --- a/egs/ami/s5/local/nnet/prepare_ivectors.sh +++ b/egs/ami/s5/local/nnet/prepare_ivectors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016, Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/ami/s5/local/nnet3/prepare_parallel_datadirs.sh b/egs/ami/s5/local/nnet3/prepare_parallel_datadirs.sh index cbf47682b1e..189f1b69cd8 100755 --- a/egs/ami/s5/local/nnet3/prepare_parallel_datadirs.sh +++ b/egs/ami/s5/local/nnet3/prepare_parallel_datadirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script creates a new data directory data/$new_mic # where the train, dev and eval directories are copied from $original_mic diff --git a/egs/ami/s5/local/nnet3/prepare_parallel_perturbed_alignments.sh b/egs/ami/s5/local/nnet3/prepare_parallel_perturbed_alignments.sh index 458d31c200a..520a2bc9d84 100755 --- a/egs/ami/s5/local/nnet3/prepare_parallel_perturbed_alignments.sh +++ b/egs/ami/s5/local/nnet3/prepare_parallel_perturbed_alignments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script creates the parallel data dir based on ihm data, # creates speed perturbed versions of this parallel data diff --git a/egs/ami/s5/local/nnet3/prepare_perturbed_alignments.sh b/egs/ami/s5/local/nnet3/prepare_perturbed_alignments.sh index 70c429041ca..f9fe0a85ab3 100755 --- a/egs/ami/s5/local/nnet3/prepare_perturbed_alignments.sh +++ b/egs/ami/s5/local/nnet3/prepare_perturbed_alignments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script creates speed perturbed versions of the training data # and generates the corresponding alignments diff --git a/egs/ami/s5/local/nnet3/run_ivector_common.sh b/egs/ami/s5/local/nnet3/run_ivector_common.sh index 649f87f33d8..6eedd3df00d 100755 --- a/egs/ami/s5/local/nnet3/run_ivector_common.sh +++ b/egs/ami/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script contains some common (shared) parts of the run_nnet*.sh scripts. # speed perturbation is done for the training data diff --git a/egs/ami/s5/local/nnet3/run_lstm.sh b/egs/ami/s5/local/nnet3/run_lstm.sh index b920482252a..d0b3aec1a3c 100755 --- a/egs/ami/s5/local/nnet3/run_lstm.sh +++ b/egs/ami/s5/local/nnet3/run_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (Author: Daniel Povey). # 2015 Vijayaditya Peddinti diff --git a/egs/ami/s5/local/nnet3/run_tdnn.sh b/egs/ami/s5/local/nnet3/run_tdnn.sh index 2175d3bcc66..6c2dd913670 100755 --- a/egs/ami/s5/local/nnet3/run_tdnn.sh +++ b/egs/ami/s5/local/nnet3/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is the standard "tdnn" system, built in nnet3; it's what we use to # call multi-splice. diff --git a/egs/ami/s5/local/online/run_nnet2_common.sh b/egs/ami/s5/local/online/run_nnet2_common.sh index d03c491f805..ccaeb024e36 100755 --- a/egs/ami/s5/local/online/run_nnet2_common.sh +++ b/egs/ami/s5/local/online/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script contains some common (shared) parts of the run_nnet*.sh scripts. diff --git a/egs/ami/s5/local/online/run_nnet2_ms_perturbed.sh b/egs/ami/s5/local/online/run_nnet2_ms_perturbed.sh index a6c2d02b7af..0f229fb5e7e 100755 --- a/egs/ami/s5/local/online/run_nnet2_ms_perturbed.sh +++ b/egs/ami/s5/local/online/run_nnet2_ms_perturbed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (author: Daniel Povey) # 2014 Tom Ko diff --git a/egs/ami/s5/local/online/run_nnet2_ms_sp_disc.sh b/egs/ami/s5/local/online/run_nnet2_ms_sp_disc.sh index 9b8d7effd95..7811ef889f6 100755 --- a/egs/ami/s5/local/online/run_nnet2_ms_sp_disc.sh +++ b/egs/ami/s5/local/online/run_nnet2_ms_sp_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script does discriminative training on top of the online, multi-splice diff --git a/egs/ami/s5/local/score.sh b/egs/ami/s5/local/score.sh index 6a077c39644..9819a0f56cc 100755 --- a/egs/ami/s5/local/score.sh +++ b/egs/ami/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012 # Copyright University of Edinburgh (Author: Pawel Swietojanski) 2014 diff --git a/egs/ami/s5/local/score_asclite.sh b/egs/ami/s5/local/score_asclite.sh index 741591005a5..4c937a94ef2 100755 --- a/egs/ami/s5/local/score_asclite.sh +++ b/egs/ami/s5/local/score_asclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # 2014, University of Edinburgh, (Author: Pawel Swietojanski) # 2015, Brno University of Technology (Author: Karel Vesely) diff --git a/egs/ami/s5/local/tfrnnlm/rnnlm_data_prep.sh b/egs/ami/s5/local/tfrnnlm/rnnlm_data_prep.sh index 3456a77ca55..de5fa8ee7ff 100755 --- a/egs/ami/s5/local/tfrnnlm/rnnlm_data_prep.sh +++ b/egs/ami/s5/local/tfrnnlm/rnnlm_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script prepares the data directory used for TensorFlow based RNNLM traiing # it prepares the following files in the output-directory diff --git a/egs/ami/s5/local/tfrnnlm/run_lstm.sh b/egs/ami/s5/local/tfrnnlm/run_lstm.sh index d68fadb10f3..58986991271 100755 --- a/egs/ami/s5/local/tfrnnlm/run_lstm.sh +++ b/egs/ami/s5/local/tfrnnlm/run_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash mic=ihm ngram_order=4 # this option when used, the rescoring binary makes an approximation # to merge the states of the FST generated from RNNLM. e.g. if ngram-order = 4 diff --git a/egs/ami/s5/local/tfrnnlm/run_lstm_fast.sh b/egs/ami/s5/local/tfrnnlm/run_lstm_fast.sh index 4cc71b55b5c..ae4f26e9cc4 100755 --- a/egs/ami/s5/local/tfrnnlm/run_lstm_fast.sh +++ b/egs/ami/s5/local/tfrnnlm/run_lstm_fast.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash mic=ihm ngram_order=3 # this option when used, the rescoring binary makes an approximation # to merge the states of the FST generated from RNNLM. e.g. if ngram-order = 4 diff --git a/egs/ami/s5/local/tfrnnlm/run_vanilla_rnnlm.sh b/egs/ami/s5/local/tfrnnlm/run_vanilla_rnnlm.sh index 7a95f38ba1e..32b6e0ae2c7 100755 --- a/egs/ami/s5/local/tfrnnlm/run_vanilla_rnnlm.sh +++ b/egs/ami/s5/local/tfrnnlm/run_vanilla_rnnlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash mic=ihm ngram_order=4 # this option when used, the rescoring binary makes an approximation # to merge the states of the FST generated from RNNLM. e.g. if ngram-order = 4 diff --git a/egs/ami/s5b/local/ami_beamform.sh b/egs/ami/s5b/local/ami_beamform.sh index 3397bcf2ab0..ea8ec02af52 100755 --- a/egs/ami/s5b/local/ami_beamform.sh +++ b/egs/ami/s5b/local/ami_beamform.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski) # Apache 2.0 diff --git a/egs/ami/s5b/local/ami_download.sh b/egs/ami/s5b/local/ami_download.sh index ef7b684df2b..bae72d1716a 100755 --- a/egs/ami/s5b/local/ami_download.sh +++ b/egs/ami/s5b/local/ami_download.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski, Jonathan Kilgour) # 2015 Brno University of Technology (Author: Karel Vesely) @@ -59,7 +59,7 @@ wgetfile=$wdir/wget_$mic.sh manifest="wget --continue -O $adir/MANIFEST.TXT http://groups.inf.ed.ac.uk/ami/download/temp/amiBuild-04237-Sun-Jun-15-2014.manifest.txt" license="wget --continue -O $adir/LICENCE.TXT http://groups.inf.ed.ac.uk/ami/download/temp/Creative-Commons-Attribution-NonCommercial-ShareAlike-2.5.txt" -echo "#!/bin/bash" > $wgetfile +echo "#!/usr/bin/env bash" > $wgetfile echo $manifest >> $wgetfile echo $license >> $wgetfile while read line; do diff --git a/egs/ami/s5b/local/ami_format_data.sh b/egs/ami/s5b/local/ami_format_data.sh index b69583850ab..c8c5ff0946d 100755 --- a/egs/ami/s5b/local/ami_format_data.sh +++ b/egs/ami/s5b/local/ami_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # if [ -f path.sh ]; then . ./path.sh; fi diff --git a/egs/ami/s5b/local/ami_ihm_data_prep.sh b/egs/ami/s5b/local/ami_ihm_data_prep.sh index 8ffa1f1e9c5..04cc6a4a68e 100755 --- a/egs/ami/s5b/local/ami_ihm_data_prep.sh +++ b/egs/ami/s5b/local/ami_ihm_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski) # 2016 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/ami/s5b/local/ami_ihm_scoring_data_prep.sh b/egs/ami/s5b/local/ami_ihm_scoring_data_prep.sh index c54876331f1..2fe5a9db33d 100755 --- a/egs/ami/s5b/local/ami_ihm_scoring_data_prep.sh +++ b/egs/ami/s5b/local/ami_ihm_scoring_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski) diff --git a/egs/ami/s5b/local/ami_mdm_data_prep.sh b/egs/ami/s5b/local/ami_mdm_data_prep.sh index d100347a356..a7a0d4fbb31 100755 --- a/egs/ami/s5b/local/ami_mdm_data_prep.sh +++ b/egs/ami/s5b/local/ami_mdm_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski) diff --git a/egs/ami/s5b/local/ami_mdm_scoring_data_prep.sh b/egs/ami/s5b/local/ami_mdm_scoring_data_prep.sh index 475ef5405ba..051079b0c1d 100755 --- a/egs/ami/s5b/local/ami_mdm_scoring_data_prep.sh +++ b/egs/ami/s5b/local/ami_mdm_scoring_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski) # 2016 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/ami/s5b/local/ami_prepare_dict.sh b/egs/ami/s5b/local/ami_prepare_dict.sh index 1834cfd112b..26f75e83e1d 100755 --- a/egs/ami/s5b/local/ami_prepare_dict.sh +++ b/egs/ami/s5b/local/ami_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #adapted from fisher dict preparation script, Author: Pawel Swietojanski diff --git a/egs/ami/s5b/local/ami_sdm_data_prep.sh b/egs/ami/s5b/local/ami_sdm_data_prep.sh index 327595070a6..9099b3d9a9e 100755 --- a/egs/ami/s5b/local/ami_sdm_data_prep.sh +++ b/egs/ami/s5b/local/ami_sdm_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski) diff --git a/egs/ami/s5b/local/ami_sdm_scoring_data_prep.sh b/egs/ami/s5b/local/ami_sdm_scoring_data_prep.sh index 580880818fc..d0711b9d71e 100755 --- a/egs/ami/s5b/local/ami_sdm_scoring_data_prep.sh +++ b/egs/ami/s5b/local/ami_sdm_scoring_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski) # 2016 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/ami/s5b/local/ami_text_prep.sh b/egs/ami/s5b/local/ami_text_prep.sh index 9170c6729ea..3dbe37a8f4e 100755 --- a/egs/ami/s5b/local/ami_text_prep.sh +++ b/egs/ami/s5b/local/ami_text_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Brno University of Technology (Author: Karel Vesely) # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski), 2014, Apache 2.0 diff --git a/egs/ami/s5b/local/ami_train_lms.sh b/egs/ami/s5b/local/ami_train_lms.sh index 104b4ac5dd8..652eb37d20f 100755 --- a/egs/ami/s5b/local/ami_train_lms.sh +++ b/egs/ami/s5b/local/ami_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal, Pawel Swietojanski diff --git a/egs/ami/s5b/local/ami_xml2text.sh b/egs/ami/s5b/local/ami_xml2text.sh index c4b90a33702..6ccf28c12b8 100755 --- a/egs/ami/s5b/local/ami_xml2text.sh +++ b/egs/ami/s5b/local/ami_xml2text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright, University of Edinburgh (Pawel Swietojanski and Jonathan Kilgour) diff --git a/egs/ami/s5b/local/beamformit.sh b/egs/ami/s5b/local/beamformit.sh index f50716d8872..563b303ecc0 100755 --- a/egs/ami/s5b/local/beamformit.sh +++ b/egs/ami/s5b/local/beamformit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski) diff --git a/egs/ami/s5b/local/chain/compare_wer_general.sh b/egs/ami/s5b/local/chain/compare_wer_general.sh index 73118bf198d..808b26d0fd0 100755 --- a/egs/ami/s5b/local/chain/compare_wer_general.sh +++ b/egs/ami/s5b/local/chain/compare_wer_general.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash mic=$1; shift; diff --git a/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_1a.sh b/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_1a.sh index 4d260e3c517..586398ce085 100755 --- a/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_1a.sh +++ b/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on swbd 7q TDNN-F recipe # with resnet-style skip connections, more layers, diff --git a/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_lstm_1a.sh b/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_lstm_1a.sh index 3546b6a7ced..f2ab59abf86 100755 --- a/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_lstm_1a.sh +++ b/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is a chain-training script with TDNN+LSTM neural networks. # This script is based on local/chain/tuning/run_tdnn_lstm_1i.sh, but adding diff --git a/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_lstm_1b.sh b/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_lstm_1b.sh index 1a839b045bd..f5190f2026b 100755 --- a/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_lstm_1b.sh +++ b/egs/ami/s5b/local/chain/multi_condition/tuning/run_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is a chain-training script with TDNN+LSTM neural networks. # This script is similar to local/chain/multi_condition/tuning/run_tdnn_lstm_1a.sh, diff --git a/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1a.sh b/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1a.sh index d926c1dc6d7..8f656fa6b82 100644 --- a/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1a.sh +++ b/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # cnn_tdnn_lstm_1a is based on tdnn_lstm_1j, but adding the cnn front end, and # replacing all renorm in tdnn layers with batchnorm diff --git a/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1b.sh b/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1b.sh index d9cd1c356e8..d9c4620f27b 100644 --- a/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1b.sh +++ b/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # cnn_tdnn_lstm_1b is based on cnn_tdnn_lstm_1a, but adding dropout and # proportional-shrink with value 5 diff --git a/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1c.sh b/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1c.sh index a0805b4f9f1..5b4cc5b3d4a 100755 --- a/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1c.sh +++ b/egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # cnn_tdnn_lstm_1c is based on cnn_tdnn_lstm_1b, but using smaller dropout-schedule # and larger decay-time option(40). diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_1a.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_1a.sh index 03ebc5845e4..6bb2698acb9 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is a chain-training script with TDNN neural networks. # Please see RESULTS_* for examples of command lines invoking this script. diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_1b.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_1b.sh index 997357b80a9..4e2fb5d3070 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is a chain-training script with TDNN neural networks. # Please see RESULTS_* for examples of command lines invoking this script. diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_1c.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_1c.sh index 4d062e65429..6ada60c7047 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_1c.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1b but with shorter minibatches diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_1d.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_1d.sh index 387570388d0..8d3f1ab95d7 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_1d.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1b but uses PCA instead of # LDA features for the ivector extractor. diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_1e.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_1e.sh index 0436b08cdc0..b8497c809c4 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_1e.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1b but uses batchnorm components instead of renorm diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_1f.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_1f.sh index 4ca526d63b8..3e041d4a4cc 100644 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_1f.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_1f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1e but uses batchnorm components instead of renorm also adding # proportional-shrink 10, trained with 4 epochs diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_1g.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_1g.sh index baed760bb68..dcf1d7b03a4 100644 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_1g.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_1g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1e but uses batchnorm components instead of renorm also adding # proportional-shrink 10, trained with 6 epochs diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_1h.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_1h.sh index e721a858c0a..aca5b26b69b 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_1h.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_1h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1g but adding two non-splicing layers towards the beginning # of the network, trained with 9 epochs. diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_1i.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_1i.sh index de40cb2d1a4..89390de6690 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_1i.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_1i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1h but replacing proportional-shrink with l2-regularize. # The results match those from 1h. diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_1j.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_1j.sh index 80b2aee60e9..c6a12b1f4f9 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_1j.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_1j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1j is same as swbd 7q. It uses modified topology with resnet-style skip connections, more layers, # skinnier bottlenecks. diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh index 4f580b88f6b..f6c65cc0826 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # TDNN+LSTM architecture similar to swbd/tdnn_lstm_1b # results on sdm1 with ihm ali diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1b.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1b.sh index 904a079d7de..3576179baa9 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1b.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1a but the neural network has two more TDNN layers (0,3 0,3) # above the lstm diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1c.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1c.sh index 511e520465a..dc2705ca577 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1c.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1a, but with more TDNN layers between each LSTM # results on sdm1 with ihm ali diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1d.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1d.sh index bd81b7df4eb..0a30490c9e7 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1d.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1c, but with more TDNN layers between each LSTM # results on sdm1 with ihm ali diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1e.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1e.sh index 50903e78b6d..f41b83fd448 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1e.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1c but with only right context for the TDNNs i.e., (0,3) in place # of (-3,0,3) diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1f.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1f.sh index f6c53001498..78653cd867b 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1f.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1a but the neural network has two more TDNN layers (0,3 0,3) # above the lstm diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1g.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1g.sh index 79fd9ef3fb5..8cd21a28715 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1g.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1c but with smaller minibatch # using smaller minibatches seems to be better in TDNN+LSTM archs. diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1h.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1h.sh index e58a7f89e03..e0ac6fc7e8f 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1h.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1c but with one more stack of TDNN and LSTM layers # results on sdm1 using ihm ali diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1i.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1i.sh index 13f894f5a48..b567bcb4527 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1i.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1g but with TDNN output dim 1024 instead of 512 # (num-params 1g:21309812 1i: 43447156) diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1j.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1j.sh index 48b31832e8c..806b305a847 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1j.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1j is same as 1i but with changes related to fast-lstmp layer # changed num-chunk-per-minibatch to be variable diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1k.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1k.sh index e675bc494bb..63430d903c1 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1k.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1k is same as 1j but with smaller delay on the first lstm layer # there is a 37% increase in training time 11hrs vs 8hrs and the gains are modest diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1l.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1l.sh index 2d019398274..5ab8333b043 100644 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1l.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This (1l.sh) is the same as 1i but with per-frame dropout on LSTM layer # It is a regular (non-fast) LSTM with per-frame dropout on [i, f, o] gates of the LSTM, diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1m.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1m.sh index 9e5b971bbe2..a86bab5055a 100644 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1m.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1m.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This (1m.sh) is the same as 1j but with per-frame dropout on LSTM layer # It is a fast LSTM with per-frame dropout on [i, f, o] gates of the LSTM, diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1n.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1n.sh index 9575c3cf686..ab3354675e1 100644 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1n.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1i but with batchnorm replacing all renorm in TDNN # and using proportional-shrink with value 10, this model uses diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1o.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1o.sh index a7f2625c181..c260601be75 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1o.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1o.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1n but replacing proportional-shrink with l2-regularize. # Also applied similar changes from 1i to 1j: diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_bs_1a.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_bs_1a.sh index ca920869b30..58c11f4238e 100755 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_bs_1a.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_bs_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as tdnn_lstm_1o but use backstitch training. # Also num-epochs and l2-regularize are tuned for best performance. diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1a.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1a.sh index 53dbd5238db..9fd2006aa03 100644 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1a.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1b.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1b.sh index dafef668e60..3948cf39566 100644 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1b.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1c.sh b/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1c.sh index 677946d0b9a..5bc025d90ef 100644 --- a/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1c.sh +++ b/egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/ami/s5b/local/nnet3/multi_condition/run_ivector_common.sh b/egs/ami/s5b/local/nnet3/multi_condition/run_ivector_common.sh index 5ba35fa421c..1112a7a2968 100755 --- a/egs/ami/s5b/local/nnet3/multi_condition/run_ivector_common.sh +++ b/egs/ami/s5b/local/nnet3/multi_condition/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/ami/s5b/local/nnet3/prepare_lores_feats.sh b/egs/ami/s5b/local/nnet3/prepare_lores_feats.sh index efa0046bd62..b98abe32eca 100755 --- a/egs/ami/s5b/local/nnet3/prepare_lores_feats.sh +++ b/egs/ami/s5b/local/nnet3/prepare_lores_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/ami/s5b/local/nnet3/run_ivector_common.sh b/egs/ami/s5b/local/nnet3/run_ivector_common.sh index e67d1039c40..7da982d49f9 100755 --- a/egs/ami/s5b/local/nnet3/run_ivector_common.sh +++ b/egs/ami/s5b/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/ami/s5b/local/nnet3/run_lstm.sh b/egs/ami/s5b/local/nnet3/run_lstm.sh index c5583e2d0ef..9b544706d36 100755 --- a/egs/ami/s5b/local/nnet3/run_lstm.sh +++ b/egs/ami/s5b/local/nnet3/run_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the standard "lstm" system, built in nnet3. # Please see RESULTS_* for examples of command lines invoking this script. diff --git a/egs/ami/s5b/local/nnet3/run_tdnn.sh b/egs/ami/s5b/local/nnet3/run_tdnn.sh index cc6b60696b1..a2af870c8a1 100755 --- a/egs/ami/s5b/local/nnet3/run_tdnn.sh +++ b/egs/ami/s5b/local/nnet3/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the standard "tdnn" system, built in nnet3. # Please see RESULTS_* for examples of command lines invoking this script. diff --git a/egs/ami/s5b/local/prepare_parallel_train_data.sh b/egs/ami/s5b/local/prepare_parallel_train_data.sh index ad22ad7cf22..63b303d0a85 100755 --- a/egs/ami/s5b/local/prepare_parallel_train_data.sh +++ b/egs/ami/s5b/local/prepare_parallel_train_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script creates a new data directory data/sdm1/train_cleanali or # data/mdm8/train_cleanali which has the segment ids from (e.g.) data/sdm1/train diff --git a/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_1a.sh b/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_1a.sh index 0c38955cc32..3b09e3dfbde 100755 --- a/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_1a.sh +++ b/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_1b.sh b/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_1b.sh index eca8421b0f2..e892bb483f9 100755 --- a/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_1b.sh +++ b/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh b/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh index 00a6edb8125..769d1e00bc9 100755 --- a/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh +++ b/egs/ami/s5b/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/ami/s5b/local/run_cleanup_segmentation.sh b/egs/ami/s5b/local/run_cleanup_segmentation.sh index e2f0b0516ce..81d1fce9721 100755 --- a/egs/ami/s5b/local/run_cleanup_segmentation.sh +++ b/egs/ami/s5b/local/run_cleanup_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/ami/s5b/local/score.sh b/egs/ami/s5b/local/score.sh index 6a077c39644..9819a0f56cc 100755 --- a/egs/ami/s5b/local/score.sh +++ b/egs/ami/s5b/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012 # Copyright University of Edinburgh (Author: Pawel Swietojanski) 2014 diff --git a/egs/ami/s5b/local/score_asclite.sh b/egs/ami/s5b/local/score_asclite.sh index 7327f6246af..ad6243a6176 100755 --- a/egs/ami/s5b/local/score_asclite.sh +++ b/egs/ami/s5b/local/score_asclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # 2014, University of Edinburgh, (Author: Pawel Swietojanski) # 2015, Brno University of Technology (Author: Karel Vesely) diff --git a/egs/ami/s5b/run.sh b/egs/ami/s5b/run.sh index eacc69a6845..79989f17004 100755 --- a/egs/ami/s5b/run.sh +++ b/egs/ami/s5b/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh . ./path.sh diff --git a/egs/an4/s5/local/download_and_untar.sh b/egs/an4/s5/local/download_and_untar.sh index 81919284da7..ec55749768d 100755 --- a/egs/an4/s5/local/download_and_untar.sh +++ b/egs/an4/s5/local/download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Allen Guo # Copyright 2014 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/an4/s5/run.sh b/egs/an4/s5/run.sh index eef699edef7..dd9bbe03732 100755 --- a/egs/an4/s5/run.sh +++ b/egs/an4/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Allen Guo diff --git a/egs/apiai_decode/s5/download-model.sh b/egs/apiai_decode/s5/download-model.sh index 11a00cb0979..4af6ad58b3d 100755 --- a/egs/apiai_decode/s5/download-model.sh +++ b/egs/apiai_decode/s5/download-model.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Downlaods Api.ai chain model into exp/api.ai-model/ (will replace one if exists) DOWNLOAD_URL="https://github.com/api-ai/api-ai-english-asr-model/releases/download/1.0/api.ai-kaldi-asr-model.zip" diff --git a/egs/apiai_decode/s5/local/create-corpus.sh b/egs/apiai_decode/s5/local/create-corpus.sh index 8071aa226de..8f023d842b7 100755 --- a/egs/apiai_decode/s5/local/create-corpus.sh +++ b/egs/apiai_decode/s5/local/create-corpus.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Checking arguments if [ $# -le 1 ]; then diff --git a/egs/apiai_decode/s5/recognize-wav.sh b/egs/apiai_decode/s5/recognize-wav.sh index d76b6293642..c2049bcdb11 100755 --- a/egs/apiai_decode/s5/recognize-wav.sh +++ b/egs/apiai_decode/s5/recognize-wav.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Api.ai (Author: Ilya Platonov) # Apache 2.0 diff --git a/egs/aspire/s5/local/build_silprob.sh b/egs/aspire/s5/local/build_silprob.sh index fbba50990c6..d4367f7f0ed 100755 --- a/egs/aspire/s5/local/build_silprob.sh +++ b/egs/aspire/s5/local/build_silprob.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/egs/aspire/s5/local/chain/compare_wer_general.sh b/egs/aspire/s5/local/chain/compare_wer_general.sh index 7b85dc373e0..73627bd585c 100755 --- a/egs/aspire/s5/local/chain/compare_wer_general.sh +++ b/egs/aspire/s5/local/chain/compare_wer_general.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer_general.sh exp/chain/tdnn_7b exp/chain/tdnn_lstm_1a diff --git a/egs/aspire/s5/local/chain/tuning/run_blstm_7b.sh b/egs/aspire/s5/local/chain/tuning/run_blstm_7b.sh index bd13010c791..fce0e3ec40e 100755 --- a/egs/aspire/s5/local/chain/tuning/run_blstm_7b.sh +++ b/egs/aspire/s5/local/chain/tuning/run_blstm_7b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/egs/aspire/s5/local/chain/tuning/run_blstm_asp_1.sh b/egs/aspire/s5/local/chain/tuning/run_blstm_asp_1.sh index b5979a3ce6b..0447bebcec0 100755 --- a/egs/aspire/s5/local/chain/tuning/run_blstm_asp_1.sh +++ b/egs/aspire/s5/local/chain/tuning/run_blstm_asp_1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/egs/aspire/s5/local/chain/tuning/run_tdnn_7b.sh b/egs/aspire/s5/local/chain/tuning/run_tdnn_7b.sh index af12e323e76..70972f7ae37 100755 --- a/egs/aspire/s5/local/chain/tuning/run_tdnn_7b.sh +++ b/egs/aspire/s5/local/chain/tuning/run_tdnn_7b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/egs/aspire/s5/local/chain/tuning/run_tdnn_asp_1.sh b/egs/aspire/s5/local/chain/tuning/run_tdnn_asp_1.sh index 5b35c902354..22c7cc3a867 100755 --- a/egs/aspire/s5/local/chain/tuning/run_tdnn_asp_1.sh +++ b/egs/aspire/s5/local/chain/tuning/run_tdnn_asp_1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e 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 f98dff5e6fa..eefd8cbccc2 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 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/egs/aspire/s5/local/extract_vad_weights.sh b/egs/aspire/s5/local/extract_vad_weights.sh index 95e36ad12da..19f1bf037b4 100755 --- a/egs/aspire/s5/local/extract_vad_weights.sh +++ b/egs/aspire/s5/local/extract_vad_weights.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey, Vijayaditya Peddinti) 2016. Apache 2.0. # This script converts lattices available from a first pass decode into a per-frame weights file diff --git a/egs/aspire/s5/local/fisher_create_test_lang.sh b/egs/aspire/s5/local/fisher_create_test_lang.sh index 6739de822aa..dfe590adf16 100755 --- a/egs/aspire/s5/local/fisher_create_test_lang.sh +++ b/egs/aspire/s5/local/fisher_create_test_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # if [ -f path.sh ]; then . ./path.sh; fi diff --git a/egs/aspire/s5/local/fisher_data_prep.sh b/egs/aspire/s5/local/fisher_data_prep.sh index f3ad3c3f5bd..900ee385768 100755 --- a/egs/aspire/s5/local/fisher_data_prep.sh +++ b/egs/aspire/s5/local/fisher_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0. diff --git a/egs/aspire/s5/local/fisher_prepare_dict.sh b/egs/aspire/s5/local/fisher_prepare_dict.sh index 577e2869c0b..c577ecf0c01 100755 --- a/egs/aspire/s5/local/fisher_prepare_dict.sh +++ b/egs/aspire/s5/local/fisher_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # To be run from one directory above this script. diff --git a/egs/aspire/s5/local/fisher_train_lms.sh b/egs/aspire/s5/local/fisher_train_lms.sh index d338b82adef..bd2fddc3ac0 100755 --- a/egs/aspire/s5/local/fisher_train_lms.sh +++ b/egs/aspire/s5/local/fisher_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/aspire/s5/local/generate_uniformly_segmented_data_dir.sh b/egs/aspire/s5/local/generate_uniformly_segmented_data_dir.sh index 2ceb4a4cf05..4100f500bab 100755 --- a/egs/aspire/s5/local/generate_uniformly_segmented_data_dir.sh +++ b/egs/aspire/s5/local/generate_uniformly_segmented_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Vijayaditya Peddinti, 2016. # Apache 2.0. diff --git a/egs/aspire/s5/local/lattice_to_ctm.sh b/egs/aspire/s5/local/lattice_to_ctm.sh index e5c88510ac8..aa882de5484 100755 --- a/egs/aspire/s5/local/lattice_to_ctm.sh +++ b/egs/aspire/s5/local/lattice_to_ctm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/aspire/s5/local/multi_condition/aspire_data_prep.sh b/egs/aspire/s5/local/multi_condition/aspire_data_prep.sh index 6dd344463ba..b2d988cd2b3 100755 --- a/egs/aspire/s5/local/multi_condition/aspire_data_prep.sh +++ b/egs/aspire/s5/local/multi_condition/aspire_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (Author: Vijayaditya Peddinti) # Apache 2.0. set -e diff --git a/egs/aspire/s5/local/multi_condition/check_version.sh b/egs/aspire/s5/local/multi_condition/check_version.sh index 81c415a3d67..d432b4c3835 100755 --- a/egs/aspire/s5/local/multi_condition/check_version.sh +++ b/egs/aspire/s5/local/multi_condition/check_version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script to check the tool versions necessary for the aspire recipe function check_for_bad_sox { diff --git a/egs/aspire/s5/local/multi_condition/copy_ali_dir.sh b/egs/aspire/s5/local/multi_condition/copy_ali_dir.sh index 42ea2dc4b9d..9c7dc1637a3 100755 --- a/egs/aspire/s5/local/multi_condition/copy_ali_dir.sh +++ b/egs/aspire/s5/local/multi_condition/copy_ali_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Vijayaditya Peddinti) # Apache 2.0 diff --git a/egs/aspire/s5/local/multi_condition/decode.sh b/egs/aspire/s5/local/multi_condition/decode.sh index b09c4780e71..538e581c169 100755 --- a/egs/aspire/s5/local/multi_condition/decode.sh +++ b/egs/aspire/s5/local/multi_condition/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Daniel Povey). # 2014 Vijayaditya Peddinti diff --git a/egs/aspire/s5/local/multi_condition/prep_test_aspire.sh b/egs/aspire/s5/local/multi_condition/prep_test_aspire.sh index 14cc9a9b04f..3ac2b29d780 100755 --- a/egs/aspire/s5/local/multi_condition/prep_test_aspire.sh +++ b/egs/aspire/s5/local/multi_condition/prep_test_aspire.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey, Vijayaditya Peddinti) 2015. Apache 2.0. # This script generates the ctm files for dev_aspire, test_aspire and eval_aspire # for scoring with ASpIRE scoring server. diff --git a/egs/aspire/s5/local/multi_condition/prepare_impulses_noises.sh b/egs/aspire/s5/local/multi_condition/prepare_impulses_noises.sh index 8297cdee9ca..b94e8b7b344 100755 --- a/egs/aspire/s5/local/multi_condition/prepare_impulses_noises.sh +++ b/egs/aspire/s5/local/multi_condition/prepare_impulses_noises.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # set -e # Copyright 2014 Johns Hopkins University (Author: Vijayaditya Peddinti) diff --git a/egs/aspire/s5/local/multi_condition/reverberate_data_dir.sh b/egs/aspire/s5/local/multi_condition/reverberate_data_dir.sh index f637c69f7c7..1e6482b8503 100755 --- a/egs/aspire/s5/local/multi_condition/reverberate_data_dir.sh +++ b/egs/aspire/s5/local/multi_condition/reverberate_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Vijayaditya Peddinti) # 2015 Tom Ko diff --git a/egs/aspire/s5/local/multi_condition/rirs/prep_aalto.sh b/egs/aspire/s5/local/multi_condition/rirs/prep_aalto.sh index 381a809744c..4e3ff242e08 100755 --- a/egs/aspire/s5/local/multi_condition/rirs/prep_aalto.sh +++ b/egs/aspire/s5/local/multi_condition/rirs/prep_aalto.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (author: Vijayaditya Peddinti) # Apache 2.0 # This script downloads the Concert Hall Impulse Responses - Pori, Finland diff --git a/egs/aspire/s5/local/multi_condition/rirs/prep_air.sh b/egs/aspire/s5/local/multi_condition/rirs/prep_air.sh index 731c9e84317..3d57751934e 100755 --- a/egs/aspire/s5/local/multi_condition/rirs/prep_air.sh +++ b/egs/aspire/s5/local/multi_condition/rirs/prep_air.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (author: Vijayaditya Peddinti) # Apache 2.0 # This script downloads the Aachen impulse response database diff --git a/egs/aspire/s5/local/multi_condition/rirs/prep_c4dm.sh b/egs/aspire/s5/local/multi_condition/rirs/prep_c4dm.sh index be1628385f4..ff2ae6eee55 100755 --- a/egs/aspire/s5/local/multi_condition/rirs/prep_c4dm.sh +++ b/egs/aspire/s5/local/multi_condition/rirs/prep_c4dm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (author: Vijayaditya Peddinti) # Apache 2.0 # Room impulse responses from Center for Digital Music, Queen Mary University of London diff --git a/egs/aspire/s5/local/multi_condition/rirs/prep_mardy.sh b/egs/aspire/s5/local/multi_condition/rirs/prep_mardy.sh index df365c9c134..2c77a71a022 100755 --- a/egs/aspire/s5/local/multi_condition/rirs/prep_mardy.sh +++ b/egs/aspire/s5/local/multi_condition/rirs/prep_mardy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (author: Vijayaditya Peddinti) # Apache 2.0 # This script downloads Multichannel Acoustic Reverberation Database at diff --git a/egs/aspire/s5/local/multi_condition/rirs/prep_openair.sh b/egs/aspire/s5/local/multi_condition/rirs/prep_openair.sh index a897671213b..8cdfe596dda 100755 --- a/egs/aspire/s5/local/multi_condition/rirs/prep_openair.sh +++ b/egs/aspire/s5/local/multi_condition/rirs/prep_openair.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (author: Vijayaditya Peddinti) # Apache 2.0 # This script downloads the impulse responses from http://www.openairlib.net/ diff --git a/egs/aspire/s5/local/multi_condition/rirs/prep_rvb2014.sh b/egs/aspire/s5/local/multi_condition/rirs/prep_rvb2014.sh index 25617b22fdb..346bc8bf785 100755 --- a/egs/aspire/s5/local/multi_condition/rirs/prep_rvb2014.sh +++ b/egs/aspire/s5/local/multi_condition/rirs/prep_rvb2014.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (author: Vijayaditya Peddinti) # Apache 2.0 # This script downloads the impulse responses and noise files from the diff --git a/egs/aspire/s5/local/multi_condition/rirs/prep_rwcp.sh b/egs/aspire/s5/local/multi_condition/rirs/prep_rwcp.sh index f755a725fe4..c28e6f79952 100755 --- a/egs/aspire/s5/local/multi_condition/rirs/prep_rwcp.sh +++ b/egs/aspire/s5/local/multi_condition/rirs/prep_rwcp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (author: Vijayaditya Peddinti) # Apache 2.0 # This script downloads the RWCP impulse responses and ambient noise diff --git a/egs/aspire/s5/local/multi_condition/rirs/prep_varechoic.sh b/egs/aspire/s5/local/multi_condition/rirs/prep_varechoic.sh index 6e2956e9a37..ee2ee848aa8 100755 --- a/egs/aspire/s5/local/multi_condition/rirs/prep_varechoic.sh +++ b/egs/aspire/s5/local/multi_condition/rirs/prep_varechoic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (author: Vijayaditya Peddinti) # Apache 2.0 # This script downloads the impulse responses from the Varechoic room diff --git a/egs/aspire/s5/local/multi_condition/run_nnet2_common.sh b/egs/aspire/s5/local/multi_condition/run_nnet2_common.sh index 9345dfc92ef..f8a201eef46 100755 --- a/egs/aspire/s5/local/multi_condition/run_nnet2_common.sh +++ b/egs/aspire/s5/local/multi_condition/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #set -e # this script is based on local/online/run_nnet2_comman.sh # but it operates on corrupted training/dev/test data sets diff --git a/egs/aspire/s5/local/multi_condition/run_nnet2_ms.sh b/egs/aspire/s5/local/multi_condition/run_nnet2_ms.sh index 56b2de399f2..e9cb025bb5d 100755 --- a/egs/aspire/s5/local/multi_condition/run_nnet2_ms.sh +++ b/egs/aspire/s5/local/multi_condition/run_nnet2_ms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the "multi-splice" version of the online-nnet2 training script. # It's currently the best recipe for aspire. diff --git a/egs/aspire/s5/local/multi_condition/run_nnet2_ms_disc.sh b/egs/aspire/s5/local/multi_condition/run_nnet2_ms_disc.sh index 129b1402cf4..43e5108019c 100755 --- a/egs/aspire/s5/local/multi_condition/run_nnet2_ms_disc.sh +++ b/egs/aspire/s5/local/multi_condition/run_nnet2_ms_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is run_nnet2_ms_disc.sh but with 4 jobs not 2 (and double the learning rate). diff --git a/egs/aspire/s5/local/nnet3/decode.sh b/egs/aspire/s5/local/nnet3/decode.sh index 8f965c51cf1..1eb599441fb 100755 --- a/egs/aspire/s5/local/nnet3/decode.sh +++ b/egs/aspire/s5/local/nnet3/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey, Vijayaditya Peddinti) 2016. Apache 2.0. # This script generates the ctm files for dev_aspire, test_aspire and eval_aspire diff --git a/egs/aspire/s5/local/nnet3/decode_online.sh b/egs/aspire/s5/local/nnet3/decode_online.sh index 8a51e36b0a5..1e005820c59 100755 --- a/egs/aspire/s5/local/nnet3/decode_online.sh +++ b/egs/aspire/s5/local/nnet3/decode_online.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey, Vijayaditya Peddinti) 2016. Apache 2.0. # This script does online decoding, unlike local/nnet3/decode.sh which does 2-pass decoding with diff --git a/egs/aspire/s5/local/nnet3/run_autoencoder.sh b/egs/aspire/s5/local/nnet3/run_autoencoder.sh index 3d16a97ab85..e1c94327cb0 100755 --- a/egs/aspire/s5/local/nnet3/run_autoencoder.sh +++ b/egs/aspire/s5/local/nnet3/run_autoencoder.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is an example to show a "tdnn" system in raw nnet configuration # i.e. without a transition model diff --git a/egs/aspire/s5/local/nnet3/run_blstm.sh b/egs/aspire/s5/local/nnet3/run_blstm.sh index 8fe53fa4db1..87dde580333 100755 --- a/egs/aspire/s5/local/nnet3/run_blstm.sh +++ b/egs/aspire/s5/local/nnet3/run_blstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # based on egs/fisher_swbd/s5/local/nnet3/run_lstm.sh diff --git a/egs/aspire/s5/local/nnet3/run_ivector_common.sh b/egs/aspire/s5/local/nnet3/run_ivector_common.sh index ea226c230af..e867933477a 100755 --- a/egs/aspire/s5/local/nnet3/run_ivector_common.sh +++ b/egs/aspire/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #set -e # this script is based on local/multicondition/run_nnet2_common.sh # minor corrections were made to dir names for nnet3 diff --git a/egs/aspire/s5/local/nnet3/run_tdnn.sh b/egs/aspire/s5/local/nnet3/run_tdnn.sh index 8e6a45ccbb4..f32c2a76038 100755 --- a/egs/aspire/s5/local/nnet3/run_tdnn.sh +++ b/egs/aspire/s5/local/nnet3/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a script to train the nnet3 TDNN acoustic model diff --git a/egs/aspire/s5/local/nnet3/segment_and_decode.sh b/egs/aspire/s5/local/nnet3/segment_and_decode.sh index e8917d091e2..80394ae15f3 100755 --- a/egs/aspire/s5/local/nnet3/segment_and_decode.sh +++ b/egs/aspire/s5/local/nnet3/segment_and_decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey, Vijayaditya Peddinti) 2016. Apache 2.0. # This script generates the ctm files for dev_aspire, test_aspire and eval_aspire diff --git a/egs/aspire/s5/local/run_asr_segmentation.sh b/egs/aspire/s5/local/run_asr_segmentation.sh index 095e47e99de..47977597c9b 100755 --- a/egs/aspire/s5/local/run_asr_segmentation.sh +++ b/egs/aspire/s5/local/run_asr_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Nagendra Kumar Goel # 2017 Vimal Manohar diff --git a/egs/aspire/s5/local/run_data_cleaning.sh b/egs/aspire/s5/local/run_data_cleaning.sh index 68b752ad577..7154da73e27 100755 --- a/egs/aspire/s5/local/run_data_cleaning.sh +++ b/egs/aspire/s5/local/run_data_cleaning.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script shows how you can do data-cleaning, and exclude data that has a diff --git a/egs/aspire/s5/local/score.sh b/egs/aspire/s5/local/score.sh index 91f8e77bc99..65e0adf0fd4 100755 --- a/egs/aspire/s5/local/score.sh +++ b/egs/aspire/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/aspire/s5/local/score_aspire.sh b/egs/aspire/s5/local/score_aspire.sh index 9c08a6c85d1..d9f7762cb08 100755 --- a/egs/aspire/s5/local/score_aspire.sh +++ b/egs/aspire/s5/local/score_aspire.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey, Vijayaditya Peddinti) 2016. Apache 2.0. # This script generates the ctm files, filters and scores them if an stm file is available diff --git a/egs/aspire/s5/local/score_stm.sh b/egs/aspire/s5/local/score_stm.sh index 7f559f7dd79..15257491eeb 100755 --- a/egs/aspire/s5/local/score_stm.sh +++ b/egs/aspire/s5/local/score_stm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/aspire/s5/local/segmentation/tuning/train_lstm_asr_sad_1a.sh b/egs/aspire/s5/local/segmentation/tuning/train_lstm_asr_sad_1a.sh index 438cd1f1d5e..8c9d521592b 100755 --- a/egs/aspire/s5/local/segmentation/tuning/train_lstm_asr_sad_1a.sh +++ b/egs/aspire/s5/local/segmentation/tuning/train_lstm_asr_sad_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Nagendra Kumar Goel # 2018 Vimal Manohar diff --git a/egs/aspire/s5/local/segmentation/tuning/train_stats_asr_sad_1a.sh b/egs/aspire/s5/local/segmentation/tuning/train_stats_asr_sad_1a.sh index 80f9840f160..c789ff11630 100755 --- a/egs/aspire/s5/local/segmentation/tuning/train_stats_asr_sad_1a.sh +++ b/egs/aspire/s5/local/segmentation/tuning/train_stats_asr_sad_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Nagendra Kumar Goel # 2018 Vimal Manohar diff --git a/egs/aspire/s5/run.sh b/egs/aspire/s5/run.sh index 851363a7532..ee7b7762383 100755 --- a/egs/aspire/s5/run.sh +++ b/egs/aspire/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ASpIRE submission, based on Fisher-english GMM-HMM system # (March 2015) diff --git a/egs/aurora4/s5/local/aurora4_data_prep.sh b/egs/aurora4/s5/local/aurora4_data_prep.sh index 6a42c9e543c..7c669b258ce 100755 --- a/egs/aurora4/s5/local/aurora4_data_prep.sh +++ b/egs/aurora4/s5/local/aurora4_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/aurora4/s5/local/aurora4_format_data.sh b/egs/aurora4/s5/local/aurora4_format_data.sh index 0b94f7f796d..668fc8e6305 100755 --- a/egs/aurora4/s5/local/aurora4_format_data.sh +++ b/egs/aurora4/s5/local/aurora4_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/aurora4/s5/local/chain/compare_wer.sh b/egs/aurora4/s5/local/chain/compare_wer.sh index 91701cad9e9..5f47c11420f 100755 --- a/egs/aurora4/s5/local/chain/compare_wer.sh +++ b/egs/aurora4/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/aurora4/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/aurora4/s5/local/chain/tuning/run_tdnn_1a.sh index 8bc69f9c8cf..84f6eab457d 100755 --- a/egs/aurora4/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/aurora4/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1a is same as 1h setup in WSJ diff --git a/egs/aurora4/s5/local/cstr_wsj_data_prep.sh b/egs/aurora4/s5/local/cstr_wsj_data_prep.sh index 35582646d95..a5c327ec34c 100755 --- a/egs/aurora4/s5/local/cstr_wsj_data_prep.sh +++ b/egs/aurora4/s5/local/cstr_wsj_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/aurora4/s5/local/cstr_wsj_extend_dict.sh b/egs/aurora4/s5/local/cstr_wsj_extend_dict.sh index b2a9faad704..9447cd1249b 100755 --- a/egs/aurora4/s5/local/cstr_wsj_extend_dict.sh +++ b/egs/aurora4/s5/local/cstr_wsj_extend_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script builds a larger word-list and dictionary # than used for the LMs supplied with the WSJ corpus. diff --git a/egs/aurora4/s5/local/generate_example_kws.sh b/egs/aurora4/s5/local/generate_example_kws.sh index 2c849438192..ecba20efbf1 100755 --- a/egs/aurora4/s5/local/generate_example_kws.sh +++ b/egs/aurora4/s5/local/generate_example_kws.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/aurora4/s5/local/kws_data_prep.sh b/egs/aurora4/s5/local/kws_data_prep.sh index 5222a88c9ef..fecfda52473 100755 --- a/egs/aurora4/s5/local/kws_data_prep.sh +++ b/egs/aurora4/s5/local/kws_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/aurora4/s5/local/nnet/run_dnn.sh b/egs/aurora4/s5/local/nnet/run_dnn.sh index 680a6ca31f0..5deb2c805bc 100755 --- a/egs/aurora4/s5/local/nnet/run_dnn.sh +++ b/egs/aurora4/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/aurora4/s5/local/nnet2/run_5b.sh b/egs/aurora4/s5/local/nnet2/run_5b.sh index 676f340ecd1..6666eee769c 100755 --- a/egs/aurora4/s5/local/nnet2/run_5b.sh +++ b/egs/aurora4/s5/local/nnet2/run_5b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 diff --git a/egs/aurora4/s5/local/nnet2/run_5c.sh b/egs/aurora4/s5/local/nnet2/run_5c.sh index 27f0db36f67..10b658b6da6 100755 --- a/egs/aurora4/s5/local/nnet2/run_5c.sh +++ b/egs/aurora4/s5/local/nnet2/run_5c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is neural net training on top of adapted 40-dimensional features. # diff --git a/egs/aurora4/s5/local/nnet3/run_ivector_common.sh b/egs/aurora4/s5/local/nnet3/run_ivector_common.sh index a489a273c6b..e13ed59b60e 100755 --- a/egs/aurora4/s5/local/nnet3/run_ivector_common.sh +++ b/egs/aurora4/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/aurora4/s5/local/run_basis_fmllr.sh b/egs/aurora4/s5/local/run_basis_fmllr.sh index 4e412535dd5..f7ee77b5506 100755 --- a/egs/aurora4/s5/local/run_basis_fmllr.sh +++ b/egs/aurora4/s5/local/run_basis_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/aurora4/s5/local/run_mmi_tri2b.sh b/egs/aurora4/s5/local/run_mmi_tri2b.sh index 8a4d03c59c4..22b670c144e 100755 --- a/egs/aurora4/s5/local/run_mmi_tri2b.sh +++ b/egs/aurora4/s5/local/run_mmi_tri2b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/aurora4/s5/local/run_mmi_tri4b.sh b/egs/aurora4/s5/local/run_mmi_tri4b.sh index db34f8e1d84..cac895720a6 100755 --- a/egs/aurora4/s5/local/run_mmi_tri4b.sh +++ b/egs/aurora4/s5/local/run_mmi_tri4b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh steps/make_denlats.sh --nj 30 --sub-split 30 --cmd "$train_cmd" \ diff --git a/egs/aurora4/s5/local/run_nnet_cpu.sh b/egs/aurora4/s5/local/run_nnet_cpu.sh index c72e521f18b..8693d7f7619 100755 --- a/egs/aurora4/s5/local/run_nnet_cpu.sh +++ b/egs/aurora4/s5/local/run_nnet_cpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/aurora4/s5/local/run_raw_fmllr.sh b/egs/aurora4/s5/local/run_raw_fmllr.sh index c4847a93f27..26989eb6982 100644 --- a/egs/aurora4/s5/local/run_raw_fmllr.sh +++ b/egs/aurora4/s5/local/run_raw_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash steps/align_raw_fmllr.sh --nj 10 --cmd "$train_cmd" --use-graphs true \ diff --git a/egs/aurora4/s5/local/run_rnnlms_sgmm5b.sh b/egs/aurora4/s5/local/run_rnnlms_sgmm5b.sh index 67fcee50a93..867294d2e77 100755 --- a/egs/aurora4/s5/local/run_rnnlms_sgmm5b.sh +++ b/egs/aurora4/s5/local/run_rnnlms_sgmm5b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash for test in dev93 eval92; do diff --git a/egs/aurora4/s5/local/run_rnnlms_tri3b.sh b/egs/aurora4/s5/local/run_rnnlms_tri3b.sh index fac8842f960..32d5f55af91 100755 --- a/egs/aurora4/s5/local/run_rnnlms_tri3b.sh +++ b/egs/aurora4/s5/local/run_rnnlms_tri3b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/aurora4/s5/local/run_sgmm2.sh b/egs/aurora4/s5/local/run_sgmm2.sh index 2eb70785bcb..c129ff47f2e 100755 --- a/egs/aurora4/s5/local/run_sgmm2.sh +++ b/egs/aurora4/s5/local/run_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is invoked from ../run.sh # It contains some SGMM-related scripts that I am breaking out of the main run.sh for clarity. diff --git a/egs/aurora4/s5/local/score.sh b/egs/aurora4/s5/local/score.sh index abd8149a672..332f038c575 100755 --- a/egs/aurora4/s5/local/score.sh +++ b/egs/aurora4/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/aurora4/s5/local/score_combine.sh b/egs/aurora4/s5/local/score_combine.sh index 65caab06ecc..c4d3c13886a 100755 --- a/egs/aurora4/s5/local/score_combine.sh +++ b/egs/aurora4/s5/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal diff --git a/egs/aurora4/s5/local/score_mbr.sh b/egs/aurora4/s5/local/score_mbr.sh index 04b84ccce5a..8c752368906 100755 --- a/egs/aurora4/s5/local/score_mbr.sh +++ b/egs/aurora4/s5/local/score_mbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script for minimum bayes risk decoding. diff --git a/egs/aurora4/s5/local/wsj_prepare_dict.sh b/egs/aurora4/s5/local/wsj_prepare_dict.sh index 2bbea907873..8bde9807c03 100755 --- a/egs/aurora4/s5/local/wsj_prepare_dict.sh +++ b/egs/aurora4/s5/local/wsj_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/aurora4/s5/run.sh b/egs/aurora4/s5/run.sh index f7eb67580ae..730194fb8b9 100755 --- a/egs/aurora4/s5/run.sh +++ b/egs/aurora4/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh ## You'll want to change cmd.sh to something that will work on your system. ## This relates to the queue. diff --git a/egs/babel/s5/local/CHECKPOINT.sh b/egs/babel/s5/local/CHECKPOINT.sh index 91b64d7fe1a..b8bdc48a9aa 100755 --- a/egs/babel/s5/local/CHECKPOINT.sh +++ b/egs/babel/s5/local/CHECKPOINT.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function GETAPPROVAL { until false ; do diff --git a/egs/babel/s5/local/arpa2G.sh b/egs/babel/s5/local/arpa2G.sh index f037caf0d7b..4209388f61f 100755 --- a/egs/babel/s5/local/arpa2G.sh +++ b/egs/babel/s5/local/arpa2G.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5/local/buildSRILM.sh b/egs/babel/s5/local/buildSRILM.sh index 0633789a6a9..f113c322444 100755 --- a/egs/babel/s5/local/buildSRILM.sh +++ b/egs/babel/s5/local/buildSRILM.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash targetDir=$1 diff --git a/egs/babel/s5/local/check_models.sh b/egs/babel/s5/local/check_models.sh index d02fc4e561a..4389344ed85 100755 --- a/egs/babel/s5/local/check_models.sh +++ b/egs/babel/s5/local/check_models.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash check_model () { diff --git a/egs/babel/s5/local/check_wers.sh b/egs/babel/s5/local/check_wers.sh index ebd6bb28790..1204fd459e7 100755 --- a/egs/babel/s5/local/check_wers.sh +++ b/egs/babel/s5/local/check_wers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash diff --git a/egs/babel/s5/local/create_shadow_dataset.sh b/egs/babel/s5/local/create_shadow_dataset.sh index d275b9aaca6..ce2215254e3 100755 --- a/egs/babel/s5/local/create_shadow_dataset.sh +++ b/egs/babel/s5/local/create_shadow_dataset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University # Apache 2.0. diff --git a/egs/babel/s5/local/cstr_wsj_data_prep.sh b/egs/babel/s5/local/cstr_wsj_data_prep.sh index 35582646d95..a5c327ec34c 100755 --- a/egs/babel/s5/local/cstr_wsj_data_prep.sh +++ b/egs/babel/s5/local/cstr_wsj_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/babel/s5/local/cstr_wsj_extend_dict.sh b/egs/babel/s5/local/cstr_wsj_extend_dict.sh index b2a9faad704..9447cd1249b 100755 --- a/egs/babel/s5/local/cstr_wsj_extend_dict.sh +++ b/egs/babel/s5/local/cstr_wsj_extend_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script builds a larger word-list and dictionary # than used for the LMs supplied with the WSJ corpus. diff --git a/egs/babel/s5/local/generate_example_kws.sh b/egs/babel/s5/local/generate_example_kws.sh index 2c849438192..ecba20efbf1 100755 --- a/egs/babel/s5/local/generate_example_kws.sh +++ b/egs/babel/s5/local/generate_example_kws.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5/local/generate_proxy_keywords.sh b/egs/babel/s5/local/generate_proxy_keywords.sh index fca2326b278..67111a75165 100755 --- a/egs/babel/s5/local/generate_proxy_keywords.sh +++ b/egs/babel/s5/local/generate_proxy_keywords.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5/local/get_syllable_text.sh b/egs/babel/s5/local/get_syllable_text.sh index 97d2af7ed65..b98868c8b16 100755 --- a/egs/babel/s5/local/get_syllable_text.sh +++ b/egs/babel/s5/local/get_syllable_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University 2013 (author: Daniel Povey) # Apache 2.0. diff --git a/egs/babel/s5/local/kws_data_prep.sh b/egs/babel/s5/local/kws_data_prep.sh index 909e9b2596c..8b52ccc4d20 100755 --- a/egs/babel/s5/local/kws_data_prep.sh +++ b/egs/babel/s5/local/kws_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5/local/kws_data_prep_syllables.sh b/egs/babel/s5/local/kws_data_prep_syllables.sh index c6245e52c9e..221647e8d60 100755 --- a/egs/babel/s5/local/kws_data_prep_syllables.sh +++ b/egs/babel/s5/local/kws_data_prep_syllables.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5/local/kws_gen_oracle_lattices.sh b/egs/babel/s5/local/kws_gen_oracle_lattices.sh index aa9e22cca96..87a5b5df435 100755 --- a/egs/babel/s5/local/kws_gen_oracle_lattices.sh +++ b/egs/babel/s5/local/kws_gen_oracle_lattices.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5/local/kws_oracle.sh b/egs/babel/s5/local/kws_oracle.sh index 44334ba1413..2ba7b070546 100755 --- a/egs/babel/s5/local/kws_oracle.sh +++ b/egs/babel/s5/local/kws_oracle.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Jan Trmal) # 2013 Johns Hopkins University diff --git a/egs/babel/s5/local/kws_score_f4de.sh b/egs/babel/s5/local/kws_score_f4de.sh index 5501bbf84fe..fd194851f96 100755 --- a/egs/babel/s5/local/kws_score_f4de.sh +++ b/egs/babel/s5/local/kws_score_f4de.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5/local/kws_search.sh b/egs/babel/s5/local/kws_search.sh index 77fd983ebc1..fe5ef7337ed 100755 --- a/egs/babel/s5/local/kws_search.sh +++ b/egs/babel/s5/local/kws_search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5/local/kws_setup.sh b/egs/babel/s5/local/kws_setup.sh index f49267c233c..c33bb6350ae 100755 --- a/egs/babel/s5/local/kws_setup.sh +++ b/egs/babel/s5/local/kws_setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5/local/lattice_to_ctm.sh b/egs/babel/s5/local/lattice_to_ctm.sh index 9bf1b3ca882..a3f0024e8bc 100755 --- a/egs/babel/s5/local/lattice_to_ctm.sh +++ b/egs/babel/s5/local/lattice_to_ctm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/babel/s5/local/lattice_to_ctm_syllable.sh b/egs/babel/s5/local/lattice_to_ctm_syllable.sh index 7165a7a04e5..4a51ef50397 100755 --- a/egs/babel/s5/local/lattice_to_ctm_syllable.sh +++ b/egs/babel/s5/local/lattice_to_ctm_syllable.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/babel/s5/local/make_ecf_subset.sh b/egs/babel/s5/local/make_ecf_subset.sh index be81cc21a5d..af8aac116bc 100755 --- a/egs/babel/s5/local/make_ecf_subset.sh +++ b/egs/babel/s5/local/make_ecf_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5/local/make_ffv.sh b/egs/babel/s5/local/make_ffv.sh index 3820e4cb659..8036d606c9b 100755 --- a/egs/babel/s5/local/make_ffv.sh +++ b/egs/babel/s5/local/make_ffv.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Daniel Povey) # Bagher BabaAli @@ -151,7 +151,7 @@ for ((n=1; n<=nj; n++)); do done cat <<'EOF' > $ffv_script -#!/bin/bash +#!/usr/bin/env bash # script for execution of ffv flen=0.01 sfreq=8000 @@ -189,7 +189,7 @@ fi # script file in the experimental directory. Quotes around 'EOF' disable any # interpretation in the here-doc. cat <<'EOF' > $expdir/convert.sh -#!/bin/bash +#!/usr/bin/env bash ffv_flist=$1 scpfile=$2 [ $# -ne 2 ] && echo "Usage: convert.sh " && exit 1; diff --git a/egs/babel/s5/local/make_lexicon_subset.sh b/egs/babel/s5/local/make_lexicon_subset.sh index 62464f3c461..82ce6a8af78 100755 --- a/egs/babel/s5/local/make_lexicon_subset.sh +++ b/egs/babel/s5/local/make_lexicon_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "$0 $@" # Print the command line for logging diff --git a/egs/babel/s5/local/make_pitch.sh b/egs/babel/s5/local/make_pitch.sh index f3597f504dd..0758e414e24 100755 --- a/egs/babel/s5/local/make_pitch.sh +++ b/egs/babel/s5/local/make_pitch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Daniel Povey) # Bagher BabaAli @@ -158,7 +158,7 @@ fi # script file in the experimental directory. Quotes around 'EOF' disable any # interpretation in the here-doc. cat <<'EOF' > $expdir/convert.sh -#!/bin/bash +#!/usr/bin/env bash sacc_flist=$1 scpfile=$2 [ $# -ne 2 ] && echo "Usage: convert.sh " && exit 1; diff --git a/egs/babel/s5/local/make_syllable_lexicon.sh b/egs/babel/s5/local/make_syllable_lexicon.sh index 118845982b9..e50e72929f1 100755 --- a/egs/babel/s5/local/make_syllable_lexicon.sh +++ b/egs/babel/s5/local/make_syllable_lexicon.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash help="Usage: $(basename $0) diff --git a/egs/babel/s5/local/prepare_kaldi_lm_from_training_text.sh b/egs/babel/s5/local/prepare_kaldi_lm_from_training_text.sh index 5ef283af54e..c35ae50c102 100755 --- a/egs/babel/s5/local/prepare_kaldi_lm_from_training_text.sh +++ b/egs/babel/s5/local/prepare_kaldi_lm_from_training_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script was copied from ../10hSystem/local (Author: Guoguo Chen?) # It will be modified to make it somewhat more reusable diff --git a/egs/babel/s5/local/score_combine.sh b/egs/babel/s5/local/score_combine.sh index 42d9cfc0918..d77879541d4 100755 --- a/egs/babel/s5/local/score_combine.sh +++ b/egs/babel/s5/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Arnab Ghoshal # Johns Hopkins University (authors: Daniel Povey, Sanjeev Khudanpur) diff --git a/egs/babel/s5/local/score_map.sh b/egs/babel/s5/local/score_map.sh index 94c31acc348..c44cc19c94f 100755 --- a/egs/babel/s5/local/score_map.sh +++ b/egs/babel/s5/local/score_map.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/babel/s5/local/score_mbr.sh b/egs/babel/s5/local/score_mbr.sh index 1c39830b4c7..b99568668a1 100755 --- a/egs/babel/s5/local/score_mbr.sh +++ b/egs/babel/s5/local/score_mbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script for minimum bayes risk decoding. diff --git a/egs/babel/s5/local/score_sctk.sh b/egs/babel/s5/local/score_sctk.sh index cef470421a0..b210c8c5ec5 100755 --- a/egs/babel/s5/local/score_sctk.sh +++ b/egs/babel/s5/local/score_sctk.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Authors: Daniel Povey, Sanjeev Khudanpur) 2012-2013. Apache 2.0. # begin configuration section. diff --git a/egs/babel/s5/local/score_sctk_prune.sh b/egs/babel/s5/local/score_sctk_prune.sh index a6eca9fd071..5ad8e175fd9 100755 --- a/egs/babel/s5/local/score_sctk_prune.sh +++ b/egs/babel/s5/local/score_sctk_prune.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Authors: Daniel Povey, Sanjeev Khudanpur) 2012-2013. Apache 2.0. # begin configuration section. diff --git a/egs/babel/s5/local/score_stm.sh b/egs/babel/s5/local/score_stm.sh index 6a43c718d3b..cecfa3f8d2b 100755 --- a/egs/babel/s5/local/score_stm.sh +++ b/egs/babel/s5/local/score_stm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5/local/shadow_set_kws_search.sh b/egs/babel/s5/local/shadow_set_kws_search.sh index 733a84d4acf..6d4498fb5d9 100755 --- a/egs/babel/s5/local/shadow_set_kws_search.sh +++ b/egs/babel/s5/local/shadow_set_kws_search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5/local/train_lms_srilm.sh b/egs/babel/s5/local/train_lms_srilm.sh index e35a4322364..814b23cd175 100755 --- a/egs/babel/s5/local/train_lms_srilm.sh +++ b/egs/babel/s5/local/train_lms_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export LC_ALL=C words_file= diff --git a/egs/babel/s5/local/train_mmi_sgmm2.sh b/egs/babel/s5/local/train_mmi_sgmm2.sh index 2d3d0b5bf49..e8cc4132f5c 100755 --- a/egs/babel/s5/local/train_mmi_sgmm2.sh +++ b/egs/babel/s5/local/train_mmi_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # MMI training (or optionally boosted MMI, if you give the --boost option), diff --git a/egs/babel/s5/make_release.sh b/egs/babel/s5/make_release.sh index 56fdc068442..7dbc0f275a6 100755 --- a/egs/babel/s5/make_release.sh +++ b/egs/babel/s5/make_release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash lp= lr= diff --git a/egs/babel/s5/run-1-main.sh b/egs/babel/s5/run-1-main.sh index a156661c1f3..3ed870a5977 100755 --- a/egs/babel/s5/run-1-main.sh +++ b/egs/babel/s5/run-1-main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is not necessarily the top-level run.sh as it is in other directories. see README.txt first. tri5_only=false diff --git a/egs/babel/s5/run-2a-nnet.sh b/egs/babel/s5/run-2a-nnet.sh index 00a3b44fe2e..54d6c343b2b 100755 --- a/egs/babel/s5/run-2a-nnet.sh +++ b/egs/babel/s5/run-2a-nnet.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . conf/common_vars.sh diff --git a/egs/babel/s5/run-2b-bnf.sh b/egs/babel/s5/run-2b-bnf.sh index 1176834ce70..b3de0b014d1 100755 --- a/egs/babel/s5/run-2b-bnf.sh +++ b/egs/babel/s5/run-2b-bnf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the "final" version of the script that runs trains the bottleneck system. # It is to be run after run.sh (the new version, that uses the same number of phases diff --git a/egs/babel/s5/run-6-combine.sh b/egs/babel/s5/run-6-combine.sh index 92d749ca486..2cbec7a9816 100755 --- a/egs/babel/s5/run-6-combine.sh +++ b/egs/babel/s5/run-6-combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . conf/common_vars.sh diff --git a/egs/babel/s5/steps_BNF/build_nnet_pfile.sh b/egs/babel/s5/steps_BNF/build_nnet_pfile.sh index 20e9754bea7..99b373d346a 100755 --- a/egs/babel/s5/steps_BNF/build_nnet_pfile.sh +++ b/egs/babel/s5/steps_BNF/build_nnet_pfile.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Carnegie Mellon University (Author: Yajie Miao) # Apache 2.0 diff --git a/egs/babel/s5/steps_BNF/make_bnf_feat.sh b/egs/babel/s5/steps_BNF/make_bnf_feat.sh index 52f49475076..691d53d2c2b 100755 --- a/egs/babel/s5/steps_BNF/make_bnf_feat.sh +++ b/egs/babel/s5/steps_BNF/make_bnf_feat.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Carnegie Mellon University (Author: Yajie Miao) # Apache 2.0 diff --git a/egs/babel/s5/steps_BNF/make_denlats_sgmm2.sh b/egs/babel/s5/steps_BNF/make_denlats_sgmm2.sh index c3d92561089..7402e8499e7 100755 --- a/egs/babel/s5/steps_BNF/make_denlats_sgmm2.sh +++ b/egs/babel/s5/steps_BNF/make_denlats_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Carnegie Mellon University (Author: Yajie Miao) diff --git a/egs/babel/s5b/local/CHECKPOINT.sh b/egs/babel/s5b/local/CHECKPOINT.sh index 91b64d7fe1a..b8bdc48a9aa 100755 --- a/egs/babel/s5b/local/CHECKPOINT.sh +++ b/egs/babel/s5b/local/CHECKPOINT.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function GETAPPROVAL { until false ; do diff --git a/egs/babel/s5b/local/apply_g2p.sh b/egs/babel/s5b/local/apply_g2p.sh index f47274cb21c..2342b081893 100755 --- a/egs/babel/s5b/local/apply_g2p.sh +++ b/egs/babel/s5b/local/apply_g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/babel/s5b/local/arpa2G.sh b/egs/babel/s5b/local/arpa2G.sh index db816abc7a5..7d427314dd6 100755 --- a/egs/babel/s5b/local/arpa2G.sh +++ b/egs/babel/s5b/local/arpa2G.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 Johns Hopkins University (authors: Yenda Trmal, Daniel Povey) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5b/local/best_path_weights.sh b/egs/babel/s5b/local/best_path_weights.sh index 8e88a3610a4..4ec5dc47a67 100755 --- a/egs/babel/s5b/local/best_path_weights.sh +++ b/egs/babel/s5b/local/best_path_weights.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar diff --git a/egs/babel/s5b/local/buildSRILM.sh b/egs/babel/s5b/local/buildSRILM.sh index 0633789a6a9..f113c322444 100755 --- a/egs/babel/s5b/local/buildSRILM.sh +++ b/egs/babel/s5b/local/buildSRILM.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash targetDir=$1 diff --git a/egs/babel/s5b/local/check_models.sh b/egs/babel/s5b/local/check_models.sh index d02fc4e561a..4389344ed85 100755 --- a/egs/babel/s5b/local/check_models.sh +++ b/egs/babel/s5b/local/check_models.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash check_model () { diff --git a/egs/babel/s5b/local/check_wers.sh b/egs/babel/s5b/local/check_wers.sh index ebd6bb28790..1204fd459e7 100755 --- a/egs/babel/s5b/local/check_wers.sh +++ b/egs/babel/s5b/local/check_wers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash diff --git a/egs/babel/s5b/local/create_shadow_dataset.sh b/egs/babel/s5b/local/create_shadow_dataset.sh index 6783ee49770..2b65392b096 100755 --- a/egs/babel/s5b/local/create_shadow_dataset.sh +++ b/egs/babel/s5b/local/create_shadow_dataset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University # Apache 2.0. diff --git a/egs/babel/s5b/local/extend_lexicon.sh b/egs/babel/s5b/local/extend_lexicon.sh index 2250d4f5dcf..3d2724609a0 100755 --- a/egs/babel/s5b/local/extend_lexicon.sh +++ b/egs/babel/s5b/local/extend_lexicon.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (authors: Daniel Povey, Yenda Trmal) # 2014 Guoguo Chen diff --git a/egs/babel/s5b/local/generate_confusion_matrix.sh b/egs/babel/s5b/local/generate_confusion_matrix.sh index 6529057db9e..b52a6a2b271 100755 --- a/egs/babel/s5b/local/generate_confusion_matrix.sh +++ b/egs/babel/s5b/local/generate_confusion_matrix.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/babel/s5b/local/generate_example_kws.sh b/egs/babel/s5b/local/generate_example_kws.sh index 2c849438192..ecba20efbf1 100755 --- a/egs/babel/s5b/local/generate_example_kws.sh +++ b/egs/babel/s5b/local/generate_example_kws.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5b/local/generate_proxy_keywords.sh b/egs/babel/s5b/local/generate_proxy_keywords.sh index 8562953efa4..324044a604a 100755 --- a/egs/babel/s5b/local/generate_proxy_keywords.sh +++ b/egs/babel/s5b/local/generate_proxy_keywords.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Guoguo Chen # Apache 2.0. diff --git a/egs/babel/s5b/local/get_syllable_text.sh b/egs/babel/s5b/local/get_syllable_text.sh index 97d2af7ed65..b98868c8b16 100755 --- a/egs/babel/s5b/local/get_syllable_text.sh +++ b/egs/babel/s5b/local/get_syllable_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University 2013 (author: Daniel Povey) # Apache 2.0. diff --git a/egs/babel/s5b/local/kws_combine.sh b/egs/babel/s5b/local/kws_combine.sh index 32ec93fa49e..7f55f798aaa 100755 --- a/egs/babel/s5b/local/kws_combine.sh +++ b/egs/babel/s5b/local/kws_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 Johns Hopkins University (authors: Jan Trmal, Guoguo Chen, Dan Povey) diff --git a/egs/babel/s5b/local/kws_data_prep.sh b/egs/babel/s5b/local/kws_data_prep.sh index 909e9b2596c..8b52ccc4d20 100755 --- a/egs/babel/s5b/local/kws_data_prep.sh +++ b/egs/babel/s5b/local/kws_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5b/local/kws_data_prep_proxy.sh b/egs/babel/s5b/local/kws_data_prep_proxy.sh index 787cb009960..5a640dcc890 100755 --- a/egs/babel/s5b/local/kws_data_prep_proxy.sh +++ b/egs/babel/s5b/local/kws_data_prep_proxy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # Apache 2.0. diff --git a/egs/babel/s5b/local/kws_data_prep_syllables.sh b/egs/babel/s5b/local/kws_data_prep_syllables.sh index c6245e52c9e..221647e8d60 100755 --- a/egs/babel/s5b/local/kws_data_prep_syllables.sh +++ b/egs/babel/s5b/local/kws_data_prep_syllables.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5b/local/kws_gen_oracle_lattices.sh b/egs/babel/s5b/local/kws_gen_oracle_lattices.sh index aa9e22cca96..87a5b5df435 100755 --- a/egs/babel/s5b/local/kws_gen_oracle_lattices.sh +++ b/egs/babel/s5b/local/kws_gen_oracle_lattices.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5b/local/kws_oracle.sh b/egs/babel/s5b/local/kws_oracle.sh index 44334ba1413..2ba7b070546 100755 --- a/egs/babel/s5b/local/kws_oracle.sh +++ b/egs/babel/s5b/local/kws_oracle.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Jan Trmal) # 2013 Johns Hopkins University diff --git a/egs/babel/s5b/local/kws_score_f4de.sh b/egs/babel/s5b/local/kws_score_f4de.sh index d761e080c1c..ffb77e336b0 100755 --- a/egs/babel/s5b/local/kws_score_f4de.sh +++ b/egs/babel/s5b/local/kws_score_f4de.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5b/local/kws_search.sh b/egs/babel/s5b/local/kws_search.sh index 4b275048e0e..359cd5c74d0 100755 --- a/egs/babel/s5b/local/kws_search.sh +++ b/egs/babel/s5b/local/kws_search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5b/local/kws_setup.sh b/egs/babel/s5b/local/kws_setup.sh index f1036f100de..dea9d605e21 100755 --- a/egs/babel/s5b/local/kws_setup.sh +++ b/egs/babel/s5b/local/kws_setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5b/local/lattice_to_ctm.sh b/egs/babel/s5b/local/lattice_to_ctm.sh index 08a1b5889a7..5169b275195 100755 --- a/egs/babel/s5b/local/lattice_to_ctm.sh +++ b/egs/babel/s5b/local/lattice_to_ctm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/babel/s5b/local/lattice_to_ctm_syllable.sh b/egs/babel/s5b/local/lattice_to_ctm_syllable.sh index 7165a7a04e5..4a51ef50397 100755 --- a/egs/babel/s5b/local/lattice_to_ctm_syllable.sh +++ b/egs/babel/s5b/local/lattice_to_ctm_syllable.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/babel/s5b/local/make_corpus_subset.sh b/egs/babel/s5b/local/make_corpus_subset.sh index add194d48e8..acd5e91a18b 100755 --- a/egs/babel/s5b/local/make_corpus_subset.sh +++ b/egs/babel/s5b/local/make_corpus_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5b/local/make_ecf_subset.sh b/egs/babel/s5b/local/make_ecf_subset.sh index 53bddcbc839..bc776d8446e 100755 --- a/egs/babel/s5b/local/make_ecf_subset.sh +++ b/egs/babel/s5b/local/make_ecf_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5b/local/make_lexicon_subset.sh b/egs/babel/s5b/local/make_lexicon_subset.sh index 924a22866e7..c66e1164ae7 100755 --- a/egs/babel/s5b/local/make_lexicon_subset.sh +++ b/egs/babel/s5b/local/make_lexicon_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "$0 $@" # Print the command line for logging diff --git a/egs/babel/s5b/local/make_syllable_lexicon.sh b/egs/babel/s5b/local/make_syllable_lexicon.sh index 118845982b9..e50e72929f1 100755 --- a/egs/babel/s5b/local/make_syllable_lexicon.sh +++ b/egs/babel/s5b/local/make_syllable_lexicon.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash help="Usage: $(basename $0) diff --git a/egs/babel/s5b/local/nist_eval/create_compound_set.sh b/egs/babel/s5b/local/nist_eval/create_compound_set.sh index 3b35ad11e29..5582536b093 100755 --- a/egs/babel/s5b/local/nist_eval/create_compound_set.sh +++ b/egs/babel/s5b/local/nist_eval/create_compound_set.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #Simple script to create compound set info that will allow for more automatized #work with the shadow set. diff --git a/egs/babel/s5b/local/nist_eval/export_systems.sh b/egs/babel/s5b/local/nist_eval/export_systems.sh index 7e514bcc077..7ba72662f6b 100755 --- a/egs/babel/s5b/local/nist_eval/export_systems.sh +++ b/egs/babel/s5b/local/nist_eval/export_systems.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e set -o pipefail diff --git a/egs/babel/s5b/local/nist_eval/make_release.sh b/egs/babel/s5b/local/nist_eval/make_release.sh index bb74188b4d9..e32ad82d341 100755 --- a/egs/babel/s5b/local/nist_eval/make_release.sh +++ b/egs/babel/s5b/local/nist_eval/make_release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash team=RADICAL corpusid= diff --git a/egs/babel/s5b/local/nnet2/get_egs_semi_supervised.sh b/egs/babel/s5b/local/nnet2/get_egs_semi_supervised.sh index 760d7ee80d5..7b16ebf8e3b 100755 --- a/egs/babel/s5b/local/nnet2/get_egs_semi_supervised.sh +++ b/egs/babel/s5b/local/nnet2/get_egs_semi_supervised.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Copyright 2014 Vimal Manohar diff --git a/egs/babel/s5b/local/prepare_kaldi_lm_from_training_text.sh b/egs/babel/s5b/local/prepare_kaldi_lm_from_training_text.sh index 6566860a5d6..9d48391cc38 100755 --- a/egs/babel/s5b/local/prepare_kaldi_lm_from_training_text.sh +++ b/egs/babel/s5b/local/prepare_kaldi_lm_from_training_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script was copied from ../10hSystem/local (Author: Guoguo Chen?) # It will be modified to make it somewhat more reusable diff --git a/egs/babel/s5b/local/resegment/generate_segments.sh b/egs/babel/s5b/local/resegment/generate_segments.sh index 01917c3d4e9..1ca8bd9aa06 100755 --- a/egs/babel/s5b/local/resegment/generate_segments.sh +++ b/egs/babel/s5b/local/resegment/generate_segments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar, Johns Hopkins University (Author: Jan Trmal) # Apache 2.0 diff --git a/egs/babel/s5b/local/resegment/train_segmentation.sh b/egs/babel/s5b/local/resegment/train_segmentation.sh index 511c451993e..264a1cc3c88 100755 --- a/egs/babel/s5b/local/resegment/train_segmentation.sh +++ b/egs/babel/s5b/local/resegment/train_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar, Johns Hopkins University (Author: Jan Trmal) # Apache 2.0 diff --git a/egs/babel/s5b/local/score_combine.sh b/egs/babel/s5b/local/score_combine.sh index f425b5afc68..b6c3b613509 100755 --- a/egs/babel/s5b/local/score_combine.sh +++ b/egs/babel/s5b/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Arnab Ghoshal # Johns Hopkins University (authors: Daniel Povey, Sanjeev Khudanpur) diff --git a/egs/babel/s5b/local/score_map.sh b/egs/babel/s5b/local/score_map.sh index 94c31acc348..c44cc19c94f 100755 --- a/egs/babel/s5b/local/score_map.sh +++ b/egs/babel/s5b/local/score_map.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/babel/s5b/local/score_mbr.sh b/egs/babel/s5b/local/score_mbr.sh index 1c39830b4c7..b99568668a1 100755 --- a/egs/babel/s5b/local/score_mbr.sh +++ b/egs/babel/s5b/local/score_mbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script for minimum bayes risk decoding. diff --git a/egs/babel/s5b/local/score_sctk_prune.sh b/egs/babel/s5b/local/score_sctk_prune.sh index a6eca9fd071..5ad8e175fd9 100755 --- a/egs/babel/s5b/local/score_sctk_prune.sh +++ b/egs/babel/s5b/local/score_sctk_prune.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Authors: Daniel Povey, Sanjeev Khudanpur) 2012-2013. Apache 2.0. # begin configuration section. diff --git a/egs/babel/s5b/local/score_stm.sh b/egs/babel/s5b/local/score_stm.sh index 2406af4e726..40c082f050f 100755 --- a/egs/babel/s5b/local/score_stm.sh +++ b/egs/babel/s5b/local/score_stm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5b/local/shadow_set_kws_search.sh b/egs/babel/s5b/local/shadow_set_kws_search.sh index 76521fda9b6..d8b62418cdf 100755 --- a/egs/babel/s5b/local/shadow_set_kws_search.sh +++ b/egs/babel/s5b/local/shadow_set_kws_search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5b/local/show_lattice.sh b/egs/babel/s5b/local/show_lattice.sh index 0865d0d1225..df13d3091f3 100755 --- a/egs/babel/s5b/local/show_lattice.sh +++ b/egs/babel/s5b/local/show_lattice.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./path.sh diff --git a/egs/babel/s5b/local/train_g2p.sh b/egs/babel/s5b/local/train_g2p.sh index 385c474abad..d26617025b8 100755 --- a/egs/babel/s5b/local/train_g2p.sh +++ b/egs/babel/s5b/local/train_g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/babel/s5b/local/train_lms_srilm.sh b/egs/babel/s5b/local/train_lms_srilm.sh index 5bb1bfaa760..f9f13bb344b 100755 --- a/egs/babel/s5b/local/train_lms_srilm.sh +++ b/egs/babel/s5b/local/train_lms_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export LC_ALL=C words_file= diff --git a/egs/babel/s5b/local/train_mmi_sgmm2.sh b/egs/babel/s5b/local/train_mmi_sgmm2.sh index 2d3d0b5bf49..e8cc4132f5c 100755 --- a/egs/babel/s5b/local/train_mmi_sgmm2.sh +++ b/egs/babel/s5b/local/train_mmi_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # MMI training (or optionally boosted MMI, if you give the --boost option), diff --git a/egs/babel/s5b/run-1-main-extend-lex.sh b/egs/babel/s5b/run-1-main-extend-lex.sh index ccc62441c1f..3bb077490c9 100755 --- a/egs/babel/s5b/run-1-main-extend-lex.sh +++ b/egs/babel/s5b/run-1-main-extend-lex.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Parameters for extended lexicon. extend_lexicon=true diff --git a/egs/babel/s5b/run-1-main.sh b/egs/babel/s5b/run-1-main.sh index 6f2e8d444be..dc4983c032e 100755 --- a/egs/babel/s5b/run-1-main.sh +++ b/egs/babel/s5b/run-1-main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is not necessarily the top-level run.sh as it is in other directories. see README.txt first. tri5_only=false diff --git a/egs/babel/s5b/run-2-segmentation.sh b/egs/babel/s5b/run-2-segmentation.sh index d832a9421c8..f7651c2ae91 100755 --- a/egs/babel/s5b/run-2-segmentation.sh +++ b/egs/babel/s5b/run-2-segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar, Johns Hopkins University (Author: Jan Trmal) # Apache 2.0 diff --git a/egs/babel/s5b/run-2a-nnet-cpu.sh b/egs/babel/s5b/run-2a-nnet-cpu.sh index 35e7d3ceab3..0f246d9e1aa 100755 --- a/egs/babel/s5b/run-2a-nnet-cpu.sh +++ b/egs/babel/s5b/run-2a-nnet-cpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . conf/common_vars.sh . ./lang.conf diff --git a/egs/babel/s5b/run-2a-nnet-ensemble-gpu.sh b/egs/babel/s5b/run-2a-nnet-ensemble-gpu.sh index 06c9a330295..953ee4baef5 100755 --- a/egs/babel/s5b/run-2a-nnet-ensemble-gpu.sh +++ b/egs/babel/s5b/run-2a-nnet-ensemble-gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . conf/common_vars.sh . ./lang.conf diff --git a/egs/babel/s5b/run-2a-nnet-gpu-realign.sh b/egs/babel/s5b/run-2a-nnet-gpu-realign.sh index 4652789fb2d..963e0c4a422 100755 --- a/egs/babel/s5b/run-2a-nnet-gpu-realign.sh +++ b/egs/babel/s5b/run-2a-nnet-gpu-realign.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash dir=exp/tri6_nnet train_stage=-10 realign_epochs="6 10" diff --git a/egs/babel/s5b/run-2a-nnet-gpu.sh b/egs/babel/s5b/run-2a-nnet-gpu.sh index 87faa58f733..76dd415667b 100755 --- a/egs/babel/s5b/run-2a-nnet-gpu.sh +++ b/egs/babel/s5b/run-2a-nnet-gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash dir=exp/tri6_nnet train_stage=-10 diff --git a/egs/babel/s5b/run-2a-nnet-mpe.sh b/egs/babel/s5b/run-2a-nnet-mpe.sh index 457d85e4a48..49f1b11a493 100755 --- a/egs/babel/s5b/run-2a-nnet-mpe.sh +++ b/egs/babel/s5b/run-2a-nnet-mpe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . conf/common_vars.sh . ./lang.conf diff --git a/egs/babel/s5b/run-2b-bnf.sh b/egs/babel/s5b/run-2b-bnf.sh index 505e647cf93..a30a73ebdb8 100755 --- a/egs/babel/s5b/run-2b-bnf.sh +++ b/egs/babel/s5b/run-2b-bnf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Pegah Ghahremani # Apache 2.0 diff --git a/egs/babel/s5b/run-3b-bnf-nnet.sh b/egs/babel/s5b/run-3b-bnf-nnet.sh index 169eec6f62f..fff73266305 100755 --- a/egs/babel/s5b/run-3b-bnf-nnet.sh +++ b/egs/babel/s5b/run-3b-bnf-nnet.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Pegah Ghahremani # 2014 Johns Hopkins (Yenda Trmal) diff --git a/egs/babel/s5b/run-3b-bnf-sgmm.sh b/egs/babel/s5b/run-3b-bnf-sgmm.sh index 81e4ae538b4..96fcd396893 100755 --- a/egs/babel/s5b/run-3b-bnf-sgmm.sh +++ b/egs/babel/s5b/run-3b-bnf-sgmm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Pegah Ghahremani # 2014 Johns Hopkins (Yenda Trmal) diff --git a/egs/babel/s5b/run-6-combine.sh b/egs/babel/s5b/run-6-combine.sh index 7998ade9cfd..9ee8b6274f8 100755 --- a/egs/babel/s5b/run-6-combine.sh +++ b/egs/babel/s5b/run-6-combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source_sys=shadow.seg master_sys=dev10h.seg diff --git a/egs/babel/s5c/local/CHECKPOINT.sh b/egs/babel/s5c/local/CHECKPOINT.sh index ed0ddd18399..b7897a67ad6 100755 --- a/egs/babel/s5c/local/CHECKPOINT.sh +++ b/egs/babel/s5c/local/CHECKPOINT.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function GETAPPROVAL { until false ; do diff --git a/egs/babel/s5c/local/ali_to_rttm.sh b/egs/babel/s5c/local/ali_to_rttm.sh index ef11f516ea3..96cf92b8dc8 100755 --- a/egs/babel/s5c/local/ali_to_rttm.sh +++ b/egs/babel/s5c/local/ali_to_rttm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5c/local/apply_g2p.sh b/egs/babel/s5c/local/apply_g2p.sh index 385b1f3536e..8807a93b762 100755 --- a/egs/babel/s5c/local/apply_g2p.sh +++ b/egs/babel/s5c/local/apply_g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/babel/s5c/local/arpa2G.sh b/egs/babel/s5c/local/arpa2G.sh index db816abc7a5..7d427314dd6 100755 --- a/egs/babel/s5c/local/arpa2G.sh +++ b/egs/babel/s5c/local/arpa2G.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 Johns Hopkins University (authors: Yenda Trmal, Daniel Povey) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5c/local/best_path_weights.sh b/egs/babel/s5c/local/best_path_weights.sh index 52782ee3655..5a308a13f85 100755 --- a/egs/babel/s5c/local/best_path_weights.sh +++ b/egs/babel/s5c/local/best_path_weights.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar diff --git a/egs/babel/s5c/local/buildSRILM.sh b/egs/babel/s5c/local/buildSRILM.sh index 0633789a6a9..f113c322444 100755 --- a/egs/babel/s5c/local/buildSRILM.sh +++ b/egs/babel/s5c/local/buildSRILM.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash targetDir=$1 diff --git a/egs/babel/s5c/local/check_models.sh b/egs/babel/s5c/local/check_models.sh index 88b3dacc94b..a8ed6247bd4 100755 --- a/egs/babel/s5c/local/check_models.sh +++ b/egs/babel/s5c/local/check_models.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash check_model () { diff --git a/egs/babel/s5c/local/check_wers.sh b/egs/babel/s5c/local/check_wers.sh index 10e1a89ee3a..f3d2483213b 100755 --- a/egs/babel/s5c/local/check_wers.sh +++ b/egs/babel/s5c/local/check_wers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash diff --git a/egs/babel/s5c/local/create_shadow_dataset.sh b/egs/babel/s5c/local/create_shadow_dataset.sh index 49467ed28c1..7e1c675e539 100755 --- a/egs/babel/s5c/local/create_shadow_dataset.sh +++ b/egs/babel/s5c/local/create_shadow_dataset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University # Apache 2.0. diff --git a/egs/babel/s5c/local/extend_lexicon.sh b/egs/babel/s5c/local/extend_lexicon.sh index 74a0c6a5569..58f1ebc145e 100755 --- a/egs/babel/s5c/local/extend_lexicon.sh +++ b/egs/babel/s5c/local/extend_lexicon.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (authors: Daniel Povey, Yenda Trmal) # 2014 Guoguo Chen diff --git a/egs/babel/s5c/local/generate_confusion_matrix.sh b/egs/babel/s5c/local/generate_confusion_matrix.sh index 6296d7486ce..7a3b059efba 100755 --- a/egs/babel/s5c/local/generate_confusion_matrix.sh +++ b/egs/babel/s5c/local/generate_confusion_matrix.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/babel/s5c/local/generate_example_kws.sh b/egs/babel/s5c/local/generate_example_kws.sh index e90752926b3..fca383c64af 100755 --- a/egs/babel/s5c/local/generate_example_kws.sh +++ b/egs/babel/s5c/local/generate_example_kws.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5c/local/generate_proxy_keywords.sh b/egs/babel/s5c/local/generate_proxy_keywords.sh index 584f7d7902e..67ec24b931f 100755 --- a/egs/babel/s5c/local/generate_proxy_keywords.sh +++ b/egs/babel/s5c/local/generate_proxy_keywords.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Guoguo Chen # Apache 2.0. diff --git a/egs/babel/s5c/local/kws_combine.sh b/egs/babel/s5c/local/kws_combine.sh index f795c63aad9..35d42599b79 100755 --- a/egs/babel/s5c/local/kws_combine.sh +++ b/egs/babel/s5c/local/kws_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 Johns Hopkins University (authors: Jan Trmal, Guoguo Chen, Dan Povey) diff --git a/egs/babel/s5c/local/kws_data_prep.sh b/egs/babel/s5c/local/kws_data_prep.sh index 3882c99ce6d..442a49eb059 100755 --- a/egs/babel/s5c/local/kws_data_prep.sh +++ b/egs/babel/s5c/local/kws_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5c/local/kws_data_prep_proxy.sh b/egs/babel/s5c/local/kws_data_prep_proxy.sh index 04cc59b6499..42e330116c9 100755 --- a/egs/babel/s5c/local/kws_data_prep_proxy.sh +++ b/egs/babel/s5c/local/kws_data_prep_proxy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # Apache 2.0. diff --git a/egs/babel/s5c/local/kws_gen_oracle_lattices.sh b/egs/babel/s5c/local/kws_gen_oracle_lattices.sh index b73112b191d..a1bc1ec7048 100755 --- a/egs/babel/s5c/local/kws_gen_oracle_lattices.sh +++ b/egs/babel/s5c/local/kws_gen_oracle_lattices.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5c/local/kws_oracle.sh b/egs/babel/s5c/local/kws_oracle.sh index c7aa661664f..2b10c721961 100755 --- a/egs/babel/s5c/local/kws_oracle.sh +++ b/egs/babel/s5c/local/kws_oracle.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Jan Trmal) # 2013 Johns Hopkins University diff --git a/egs/babel/s5c/local/kws_score_f4de.sh b/egs/babel/s5c/local/kws_score_f4de.sh index cd6948a8a08..e5acfbd9ee8 100755 --- a/egs/babel/s5c/local/kws_score_f4de.sh +++ b/egs/babel/s5c/local/kws_score_f4de.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5c/local/kws_search.sh b/egs/babel/s5c/local/kws_search.sh index 9e998d6c3f9..c2ee7671508 100755 --- a/egs/babel/s5c/local/kws_search.sh +++ b/egs/babel/s5c/local/kws_search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5c/local/kws_setup.sh b/egs/babel/s5c/local/kws_setup.sh index a6b87ef004f..6a77953f181 100755 --- a/egs/babel/s5c/local/kws_setup.sh +++ b/egs/babel/s5c/local/kws_setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5c/local/lattice_to_ctm.sh b/egs/babel/s5c/local/lattice_to_ctm.sh index 5fbde42d237..d23c4f17abf 100755 --- a/egs/babel/s5c/local/lattice_to_ctm.sh +++ b/egs/babel/s5c/local/lattice_to_ctm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/babel/s5c/local/make_L_align.sh b/egs/babel/s5c/local/make_L_align.sh index 50e46a00493..9d9d48c6530 100755 --- a/egs/babel/s5c/local/make_L_align.sh +++ b/egs/babel/s5c/local/make_L_align.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Guoguo Chen, Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5c/local/make_corpus_subset.sh b/egs/babel/s5c/local/make_corpus_subset.sh index add194d48e8..acd5e91a18b 100755 --- a/egs/babel/s5c/local/make_corpus_subset.sh +++ b/egs/babel/s5c/local/make_corpus_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5c/local/make_ecf_subset.sh b/egs/babel/s5c/local/make_ecf_subset.sh index 9bdd95c3e27..9fe8df841b7 100755 --- a/egs/babel/s5c/local/make_ecf_subset.sh +++ b/egs/babel/s5c/local/make_ecf_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5c/local/make_lexicon_subset.sh b/egs/babel/s5c/local/make_lexicon_subset.sh index bf2ebe45f7d..b6f19c088e9 100755 --- a/egs/babel/s5c/local/make_lexicon_subset.sh +++ b/egs/babel/s5c/local/make_lexicon_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "$0 $@" # Print the command line for logging diff --git a/egs/babel/s5c/local/nist_eval/create_compound_set.sh b/egs/babel/s5c/local/nist_eval/create_compound_set.sh index ae5492a9f9e..7450396aa89 100755 --- a/egs/babel/s5c/local/nist_eval/create_compound_set.sh +++ b/egs/babel/s5c/local/nist_eval/create_compound_set.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #Simple script to create compound set info that will allow for more automatized #work with the shadow set. diff --git a/egs/babel/s5c/local/nist_eval/export_systems.sh b/egs/babel/s5c/local/nist_eval/export_systems.sh index d0af608416c..f0984c703ab 100755 --- a/egs/babel/s5c/local/nist_eval/export_systems.sh +++ b/egs/babel/s5c/local/nist_eval/export_systems.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e set -o pipefail diff --git a/egs/babel/s5c/local/nist_eval/make_release.sh b/egs/babel/s5c/local/nist_eval/make_release.sh index 179d5cbe619..0e4e1f2cb15 100755 --- a/egs/babel/s5c/local/nist_eval/make_release.sh +++ b/egs/babel/s5c/local/nist_eval/make_release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash team=RADICAL corpusid= diff --git a/egs/babel/s5c/local/nnet2/get_egs_semi_supervised.sh b/egs/babel/s5c/local/nnet2/get_egs_semi_supervised.sh index 3b12222e13a..968b8b36c1e 100755 --- a/egs/babel/s5c/local/nnet2/get_egs_semi_supervised.sh +++ b/egs/babel/s5c/local/nnet2/get_egs_semi_supervised.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Copyright 2014 Vimal Manohar diff --git a/egs/babel/s5c/local/prepare_kaldi_lm_from_training_text.sh b/egs/babel/s5c/local/prepare_kaldi_lm_from_training_text.sh index 6566860a5d6..9d48391cc38 100755 --- a/egs/babel/s5c/local/prepare_kaldi_lm_from_training_text.sh +++ b/egs/babel/s5c/local/prepare_kaldi_lm_from_training_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script was copied from ../10hSystem/local (Author: Guoguo Chen?) # It will be modified to make it somewhat more reusable diff --git a/egs/babel/s5c/local/resegment/generate_segments.sh b/egs/babel/s5c/local/resegment/generate_segments.sh index 95e88deb87d..33eb5b36848 100755 --- a/egs/babel/s5c/local/resegment/generate_segments.sh +++ b/egs/babel/s5c/local/resegment/generate_segments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar, Johns Hopkins University (Author: Jan Trmal) # Apache 2.0 diff --git a/egs/babel/s5c/local/resegment/train_segmentation.sh b/egs/babel/s5c/local/resegment/train_segmentation.sh index 511c451993e..264a1cc3c88 100755 --- a/egs/babel/s5c/local/resegment/train_segmentation.sh +++ b/egs/babel/s5c/local/resegment/train_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar, Johns Hopkins University (Author: Jan Trmal) # Apache 2.0 diff --git a/egs/babel/s5c/local/run_kws_stt_task.sh b/egs/babel/s5c/local/run_kws_stt_task.sh index d622aac9442..d21aeabc2e3 100755 --- a/egs/babel/s5c/local/run_kws_stt_task.sh +++ b/egs/babel/s5c/local/run_kws_stt_task.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5c/local/score_combine.sh b/egs/babel/s5c/local/score_combine.sh index 7e8af85b2d8..eb9f8412089 100755 --- a/egs/babel/s5c/local/score_combine.sh +++ b/egs/babel/s5c/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Arnab Ghoshal # Johns Hopkins University (authors: Daniel Povey, Sanjeev Khudanpur) diff --git a/egs/babel/s5c/local/score_map.sh b/egs/babel/s5c/local/score_map.sh index 94c31acc348..c44cc19c94f 100755 --- a/egs/babel/s5c/local/score_map.sh +++ b/egs/babel/s5c/local/score_map.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/babel/s5c/local/score_mbr.sh b/egs/babel/s5c/local/score_mbr.sh index a86dd5c3f71..66b825f8d1d 100755 --- a/egs/babel/s5c/local/score_mbr.sh +++ b/egs/babel/s5c/local/score_mbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script for minimum bayes risk decoding. diff --git a/egs/babel/s5c/local/score_sctk_prune.sh b/egs/babel/s5c/local/score_sctk_prune.sh index 09662af57c8..b7787950744 100755 --- a/egs/babel/s5c/local/score_sctk_prune.sh +++ b/egs/babel/s5c/local/score_sctk_prune.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Authors: Daniel Povey, Sanjeev Khudanpur) 2012-2013. Apache 2.0. # begin configuration section. diff --git a/egs/babel/s5c/local/score_stm.sh b/egs/babel/s5c/local/score_stm.sh index 56835109722..b86d83570e2 100755 --- a/egs/babel/s5c/local/score_stm.sh +++ b/egs/babel/s5c/local/score_stm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5c/local/shadow_set_kws_search.sh b/egs/babel/s5c/local/shadow_set_kws_search.sh index a67a3a57f6a..b2765928cbc 100755 --- a/egs/babel/s5c/local/shadow_set_kws_search.sh +++ b/egs/babel/s5c/local/shadow_set_kws_search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5c/local/show_lattice.sh b/egs/babel/s5c/local/show_lattice.sh index 3435fcb8c41..3373b66f666 100755 --- a/egs/babel/s5c/local/show_lattice.sh +++ b/egs/babel/s5c/local/show_lattice.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./path.sh diff --git a/egs/babel/s5c/local/split_ctms.sh b/egs/babel/s5c/local/split_ctms.sh index b24a1380111..84d8811fc7b 100755 --- a/egs/babel/s5c/local/split_ctms.sh +++ b/egs/babel/s5c/local/split_ctms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5c/local/syllab/ali_to_syllabs.sh b/egs/babel/s5c/local/syllab/ali_to_syllabs.sh index 8f0cb88771a..84b7d24eeb3 100755 --- a/egs/babel/s5c/local/syllab/ali_to_syllabs.sh +++ b/egs/babel/s5c/local/syllab/ali_to_syllabs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5c/local/syllab/generate_syllable_lang.sh b/egs/babel/s5c/local/syllab/generate_syllable_lang.sh index 4a0810b9415..26486a08487 100755 --- a/egs/babel/s5c/local/syllab/generate_syllable_lang.sh +++ b/egs/babel/s5c/local/syllab/generate_syllable_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5c/local/train_g2p.sh b/egs/babel/s5c/local/train_g2p.sh index 08be0014656..5a0594d8f46 100755 --- a/egs/babel/s5c/local/train_g2p.sh +++ b/egs/babel/s5c/local/train_g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/babel/s5c/local/train_lms_srilm.sh b/egs/babel/s5c/local/train_lms_srilm.sh index be2b0247aeb..ea8e5840be5 100755 --- a/egs/babel/s5c/local/train_lms_srilm.sh +++ b/egs/babel/s5c/local/train_lms_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export LC_ALL=C words_file= diff --git a/egs/babel/s5c/local/train_mmi_sgmm2.sh b/egs/babel/s5c/local/train_mmi_sgmm2.sh index cdf9e28b1bf..210269bf23e 100755 --- a/egs/babel/s5c/local/train_mmi_sgmm2.sh +++ b/egs/babel/s5c/local/train_mmi_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # MMI training (or optionally boosted MMI, if you give the --boost option), diff --git a/egs/babel/s5c/run-1-main-extend-lex.sh b/egs/babel/s5c/run-1-main-extend-lex.sh index ccc62441c1f..3bb077490c9 100755 --- a/egs/babel/s5c/run-1-main-extend-lex.sh +++ b/egs/babel/s5c/run-1-main-extend-lex.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Parameters for extended lexicon. extend_lexicon=true diff --git a/egs/babel/s5c/run-1-main.sh b/egs/babel/s5c/run-1-main.sh index 61c875fc84e..f5741d4ce8a 100755 --- a/egs/babel/s5c/run-1-main.sh +++ b/egs/babel/s5c/run-1-main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is not necessarily the top-level run.sh as it is in other directories. see README.txt first. tri5_only=false diff --git a/egs/babel/s5c/run-2-segmentation.sh b/egs/babel/s5c/run-2-segmentation.sh index d832a9421c8..f7651c2ae91 100755 --- a/egs/babel/s5c/run-2-segmentation.sh +++ b/egs/babel/s5c/run-2-segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar, Johns Hopkins University (Author: Jan Trmal) # Apache 2.0 diff --git a/egs/babel/s5c/run-2a-nnet-cpu.sh b/egs/babel/s5c/run-2a-nnet-cpu.sh index 35e7d3ceab3..0f246d9e1aa 100755 --- a/egs/babel/s5c/run-2a-nnet-cpu.sh +++ b/egs/babel/s5c/run-2a-nnet-cpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . conf/common_vars.sh . ./lang.conf diff --git a/egs/babel/s5c/run-2a-nnet-ensemble-gpu.sh b/egs/babel/s5c/run-2a-nnet-ensemble-gpu.sh index 06c9a330295..953ee4baef5 100755 --- a/egs/babel/s5c/run-2a-nnet-ensemble-gpu.sh +++ b/egs/babel/s5c/run-2a-nnet-ensemble-gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . conf/common_vars.sh . ./lang.conf diff --git a/egs/babel/s5c/run-2a-nnet-gpu.sh b/egs/babel/s5c/run-2a-nnet-gpu.sh index 87faa58f733..76dd415667b 100755 --- a/egs/babel/s5c/run-2a-nnet-gpu.sh +++ b/egs/babel/s5c/run-2a-nnet-gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash dir=exp/tri6_nnet train_stage=-10 diff --git a/egs/babel/s5c/run-2a-nnet-mpe.sh b/egs/babel/s5c/run-2a-nnet-mpe.sh index 457d85e4a48..49f1b11a493 100755 --- a/egs/babel/s5c/run-2a-nnet-mpe.sh +++ b/egs/babel/s5c/run-2a-nnet-mpe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . conf/common_vars.sh . ./lang.conf diff --git a/egs/babel/s5c/run-2b-bnf.sh b/egs/babel/s5c/run-2b-bnf.sh index 505e647cf93..a30a73ebdb8 100755 --- a/egs/babel/s5c/run-2b-bnf.sh +++ b/egs/babel/s5c/run-2b-bnf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Pegah Ghahremani # Apache 2.0 diff --git a/egs/babel/s5c/run-3b-bnf-nnet.sh b/egs/babel/s5c/run-3b-bnf-nnet.sh index 169eec6f62f..fff73266305 100755 --- a/egs/babel/s5c/run-3b-bnf-nnet.sh +++ b/egs/babel/s5c/run-3b-bnf-nnet.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Pegah Ghahremani # 2014 Johns Hopkins (Yenda Trmal) diff --git a/egs/babel/s5c/run-3b-bnf-sgmm.sh b/egs/babel/s5c/run-3b-bnf-sgmm.sh index 81e4ae538b4..96fcd396893 100755 --- a/egs/babel/s5c/run-3b-bnf-sgmm.sh +++ b/egs/babel/s5c/run-3b-bnf-sgmm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Pegah Ghahremani # 2014 Johns Hopkins (Yenda Trmal) diff --git a/egs/babel/s5c/run-4-anydecode.sh b/egs/babel/s5c/run-4-anydecode.sh index 56b7836683f..50300a186fb 100755 --- a/egs/babel/s5c/run-4-anydecode.sh +++ b/egs/babel/s5c/run-4-anydecode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e set -o pipefail diff --git a/egs/babel/s5c/run-6-combine.sh b/egs/babel/s5c/run-6-combine.sh index 81dc42caca3..d868c4dcefe 100755 --- a/egs/babel/s5c/run-6-combine.sh +++ b/egs/babel/s5c/run-6-combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . conf/common_vars.sh diff --git a/egs/babel/s5d/local/add_to_multilang.sh b/egs/babel/s5d/local/add_to_multilang.sh index 162d8ffa709..dbf159a5eda 100755 --- a/egs/babel/s5d/local/add_to_multilang.sh +++ b/egs/babel/s5d/local/add_to_multilang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/ali_to_rttm.sh b/egs/babel/s5d/local/ali_to_rttm.sh index cb4f0740130..217758dfea4 100755 --- a/egs/babel/s5d/local/ali_to_rttm.sh +++ b/egs/babel/s5d/local/ali_to_rttm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5d/local/apply_g2p.sh b/egs/babel/s5d/local/apply_g2p.sh index 385b1f3536e..8807a93b762 100755 --- a/egs/babel/s5d/local/apply_g2p.sh +++ b/egs/babel/s5d/local/apply_g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/babel/s5d/local/arpa2G.sh b/egs/babel/s5d/local/arpa2G.sh index 887b393b459..f3806d010a7 100755 --- a/egs/babel/s5d/local/arpa2G.sh +++ b/egs/babel/s5d/local/arpa2G.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 Johns Hopkins University (authors: Yenda Trmal, Daniel Povey) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5d/local/best_scores.sh b/egs/babel/s5d/local/best_scores.sh index 33bcdb07183..5e6cd2dd512 100755 --- a/egs/babel/s5d/local/best_scores.sh +++ b/egs/babel/s5d/local/best_scores.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/best_scores_kws.sh b/egs/babel/s5d/local/best_scores_kws.sh index 164ec8dc4b0..a50509ae1e5 100755 --- a/egs/babel/s5d/local/best_scores_kws.sh +++ b/egs/babel/s5d/local/best_scores_kws.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/chain/run_ivector_common.sh b/egs/babel/s5d/local/chain/run_ivector_common.sh index a1a145564d0..1cf19bd5351 100755 --- a/egs/babel/s5d/local/chain/run_ivector_common.sh +++ b/egs/babel/s5d/local/chain/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail diff --git a/egs/babel/s5d/local/chain/tuning/run_tdnn.sh b/egs/babel/s5d/local/chain/tuning/run_tdnn.sh index 7b4535f8c5e..f753e9f3bf2 100755 --- a/egs/babel/s5d/local/chain/tuning/run_tdnn.sh +++ b/egs/babel/s5d/local/chain/tuning/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by default, with cleanup diff --git a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm.sh b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm.sh index 5fc14dda826..c64f4b78edd 100755 --- a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm.sh +++ b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by default, with cleanup diff --git a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab1.sh b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab1.sh index 8c7de5d18d4..91938b9ce99 100755 --- a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab1.sh +++ b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by default, with cleanup diff --git a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab2.sh b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab2.sh index 0b3e70b5a04..031af6b468b 100755 --- a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab2.sh +++ b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by default, with cleanup diff --git a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab3.sh b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab3.sh index 45f2907645e..2149c9eb263 100755 --- a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab3.sh +++ b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by default, with cleanup diff --git a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab4.sh b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab4.sh index 0d92aff5c28..9ed6631ec09 100755 --- a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab4.sh +++ b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab4.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by default, with cleanup diff --git a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab5.sh b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab5.sh index 4129c00dcb4..6e1f496944d 100755 --- a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab5.sh +++ b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab5.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by default, with cleanup diff --git a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab6.sh b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab6.sh index 1cfa50c1aa1..e352e6aa5cd 100755 --- a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab6.sh +++ b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab6.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by default, with cleanup diff --git a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab7.sh b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab7.sh index ba8ac1e0373..eda24b245b3 100755 --- a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab7.sh +++ b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab7.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by default, with cleanup diff --git a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab8.sh b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab8.sh index 5de285e080e..c65a8eb58ca 100755 --- a/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab8.sh +++ b/egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab8.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by default, with cleanup diff --git a/egs/babel/s5d/local/extend_lexicon.sh b/egs/babel/s5d/local/extend_lexicon.sh index 609cc7d108c..26a262d2cf4 100755 --- a/egs/babel/s5d/local/extend_lexicon.sh +++ b/egs/babel/s5d/local/extend_lexicon.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (authors: Daniel Povey, Yenda Trmal) # 2014 Guoguo Chen diff --git a/egs/babel/s5d/local/generate_confusion_matrix.sh b/egs/babel/s5d/local/generate_confusion_matrix.sh index 9973b6b781c..26337b6f2c7 100755 --- a/egs/babel/s5d/local/generate_confusion_matrix.sh +++ b/egs/babel/s5d/local/generate_confusion_matrix.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/babel/s5d/local/generate_proxy_keywords.sh b/egs/babel/s5d/local/generate_proxy_keywords.sh index dcb41be09af..44f800c260f 100755 --- a/egs/babel/s5d/local/generate_proxy_keywords.sh +++ b/egs/babel/s5d/local/generate_proxy_keywords.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Guoguo Chen # Apache 2.0. diff --git a/egs/babel/s5d/local/kws_combine.sh b/egs/babel/s5d/local/kws_combine.sh index 8934faf7d30..c4fbda613d1 100755 --- a/egs/babel/s5d/local/kws_combine.sh +++ b/egs/babel/s5d/local/kws_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 Johns Hopkins University (authors: Jan Trmal, Guoguo Chen, Dan Povey) diff --git a/egs/babel/s5d/local/kws_data_prep.sh b/egs/babel/s5d/local/kws_data_prep.sh index af1a7d8e59a..73e597dc9de 100755 --- a/egs/babel/s5d/local/kws_data_prep.sh +++ b/egs/babel/s5d/local/kws_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/babel/s5d/local/kws_data_prep_proxy.sh b/egs/babel/s5d/local/kws_data_prep_proxy.sh index 04cc59b6499..42e330116c9 100755 --- a/egs/babel/s5d/local/kws_data_prep_proxy.sh +++ b/egs/babel/s5d/local/kws_data_prep_proxy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # Apache 2.0. diff --git a/egs/babel/s5d/local/kws_oracle.sh b/egs/babel/s5d/local/kws_oracle.sh index c7aa661664f..2b10c721961 100755 --- a/egs/babel/s5d/local/kws_oracle.sh +++ b/egs/babel/s5d/local/kws_oracle.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Jan Trmal) # 2013 Johns Hopkins University diff --git a/egs/babel/s5d/local/kws_score_f4de.sh b/egs/babel/s5d/local/kws_score_f4de.sh index 4f79e1925a9..0af53183496 100755 --- a/egs/babel/s5d/local/kws_score_f4de.sh +++ b/egs/babel/s5d/local/kws_score_f4de.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5d/local/kws_search.sh b/egs/babel/s5d/local/kws_search.sh index 39177e8a4c5..04515345649 100755 --- a/egs/babel/s5d/local/kws_search.sh +++ b/egs/babel/s5d/local/kws_search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5d/local/kws_setup.sh b/egs/babel/s5d/local/kws_setup.sh index 93513a56d94..760046d34f2 100755 --- a/egs/babel/s5d/local/kws_setup.sh +++ b/egs/babel/s5d/local/kws_setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5d/local/lattice_to_ctm.sh b/egs/babel/s5d/local/lattice_to_ctm.sh index d0979374ba8..7f3ae783422 100755 --- a/egs/babel/s5d/local/lattice_to_ctm.sh +++ b/egs/babel/s5d/local/lattice_to_ctm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/babel/s5d/local/make_L_align.sh b/egs/babel/s5d/local/make_L_align.sh index 41e9ff32958..210f6ec18e6 100755 --- a/egs/babel/s5d/local/make_L_align.sh +++ b/egs/babel/s5d/local/make_L_align.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Guoguo Chen, Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5d/local/make_corpus_subset.sh b/egs/babel/s5d/local/make_corpus_subset.sh index add194d48e8..acd5e91a18b 100755 --- a/egs/babel/s5d/local/make_corpus_subset.sh +++ b/egs/babel/s5d/local/make_corpus_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5d/local/make_ecf_subset.sh b/egs/babel/s5d/local/make_ecf_subset.sh index 9bdd95c3e27..9fe8df841b7 100755 --- a/egs/babel/s5d/local/make_ecf_subset.sh +++ b/egs/babel/s5d/local/make_ecf_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5d/local/make_lexicon_subset.sh b/egs/babel/s5d/local/make_lexicon_subset.sh index bf2ebe45f7d..b6f19c088e9 100755 --- a/egs/babel/s5d/local/make_lexicon_subset.sh +++ b/egs/babel/s5d/local/make_lexicon_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "$0 $@" # Print the command line for logging diff --git a/egs/babel/s5d/local/nist_eval/create_compound_set.sh b/egs/babel/s5d/local/nist_eval/create_compound_set.sh index b476dc9bf8e..d0b8f77f772 100755 --- a/egs/babel/s5d/local/nist_eval/create_compound_set.sh +++ b/egs/babel/s5d/local/nist_eval/create_compound_set.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #Simple script to create compound set info that will allow for more automatized #work with the shadow set. diff --git a/egs/babel/s5d/local/nist_eval/create_new_language_configs.FLP.sh b/egs/babel/s5d/local/nist_eval/create_new_language_configs.FLP.sh index 5417d91080b..5c8d2a6480e 100755 --- a/egs/babel/s5d/local/nist_eval/create_new_language_configs.FLP.sh +++ b/egs/babel/s5d/local/nist_eval/create_new_language_configs.FLP.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/nist_eval/create_new_language_configs.LLP.sh b/egs/babel/s5d/local/nist_eval/create_new_language_configs.LLP.sh index a4f301e2c14..4168604fce7 100755 --- a/egs/babel/s5d/local/nist_eval/create_new_language_configs.LLP.sh +++ b/egs/babel/s5d/local/nist_eval/create_new_language_configs.LLP.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/nist_eval/export_systems.sh b/egs/babel/s5d/local/nist_eval/export_systems.sh index d0af608416c..f0984c703ab 100755 --- a/egs/babel/s5d/local/nist_eval/export_systems.sh +++ b/egs/babel/s5d/local/nist_eval/export_systems.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e set -o pipefail diff --git a/egs/babel/s5d/local/nist_eval/make_release.sh b/egs/babel/s5d/local/nist_eval/make_release.sh index 179d5cbe619..0e4e1f2cb15 100755 --- a/egs/babel/s5d/local/nist_eval/make_release.sh +++ b/egs/babel/s5d/local/nist_eval/make_release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash team=RADICAL corpusid= diff --git a/egs/babel/s5d/local/nist_eval/split_compound_set.sh b/egs/babel/s5d/local/nist_eval/split_compound_set.sh index 59ea4c162d7..3c236430b73 100755 --- a/egs/babel/s5d/local/nist_eval/split_compound_set.sh +++ b/egs/babel/s5d/local/nist_eval/split_compound_set.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2016, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/nnet2/get_egs_semi_supervised.sh b/egs/babel/s5d/local/nnet2/get_egs_semi_supervised.sh index 3b12222e13a..968b8b36c1e 100755 --- a/egs/babel/s5d/local/nnet2/get_egs_semi_supervised.sh +++ b/egs/babel/s5d/local/nnet2/get_egs_semi_supervised.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Copyright 2014 Vimal Manohar diff --git a/egs/babel/s5d/local/prepare_extended_lexicon.sh b/egs/babel/s5d/local/prepare_extended_lexicon.sh index 3cc5ca6c21f..7e8ca02529e 100755 --- a/egs/babel/s5d/local/prepare_extended_lexicon.sh +++ b/egs/babel/s5d/local/prepare_extended_lexicon.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2016, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/reestimate_langp.sh b/egs/babel/s5d/local/reestimate_langp.sh index ae70b6a8f46..b31438fca57 100755 --- a/egs/babel/s5d/local/reestimate_langp.sh +++ b/egs/babel/s5d/local/reestimate_langp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/resegment/generate_segments.sh b/egs/babel/s5d/local/resegment/generate_segments.sh index 95e88deb87d..33eb5b36848 100755 --- a/egs/babel/s5d/local/resegment/generate_segments.sh +++ b/egs/babel/s5d/local/resegment/generate_segments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar, Johns Hopkins University (Author: Jan Trmal) # Apache 2.0 diff --git a/egs/babel/s5d/local/resegment/train_segmentation.sh b/egs/babel/s5d/local/resegment/train_segmentation.sh index 511c451993e..264a1cc3c88 100755 --- a/egs/babel/s5d/local/resegment/train_segmentation.sh +++ b/egs/babel/s5d/local/resegment/train_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar, Johns Hopkins University (Author: Jan Trmal) # Apache 2.0 diff --git a/egs/babel/s5d/local/run_asr_segmentation.sh b/egs/babel/s5d/local/run_asr_segmentation.sh index f70775526b6..025f645dcf3 100755 --- a/egs/babel/s5d/local/run_asr_segmentation.sh +++ b/egs/babel/s5d/local/run_asr_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/babel/s5d/local/run_cleanup_segmentation.sh b/egs/babel/s5d/local/run_cleanup_segmentation.sh index 324d796b1b1..5a320ece5cf 100755 --- a/egs/babel/s5d/local/run_cleanup_segmentation.sh +++ b/egs/babel/s5d/local/run_cleanup_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/babel/s5d/local/run_kws_stt_task.sh b/egs/babel/s5d/local/run_kws_stt_task.sh index e2f719bde9f..447adf7ac3f 100755 --- a/egs/babel/s5d/local/run_kws_stt_task.sh +++ b/egs/babel/s5d/local/run_kws_stt_task.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5d/local/run_kws_stt_task2.sh b/egs/babel/s5d/local/run_kws_stt_task2.sh index 73c4e730ab5..35efefb775e 100755 --- a/egs/babel/s5d/local/run_kws_stt_task2.sh +++ b/egs/babel/s5d/local/run_kws_stt_task2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5d/local/score_combine.sh b/egs/babel/s5d/local/score_combine.sh index 7e8af85b2d8..eb9f8412089 100755 --- a/egs/babel/s5d/local/score_combine.sh +++ b/egs/babel/s5d/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Arnab Ghoshal # Johns Hopkins University (authors: Daniel Povey, Sanjeev Khudanpur) diff --git a/egs/babel/s5d/local/score_stm.sh b/egs/babel/s5d/local/score_stm.sh index 56835109722..b86d83570e2 100755 --- a/egs/babel/s5d/local/score_stm.sh +++ b/egs/babel/s5d/local/score_stm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/babel/s5d/local/search/combine.sh b/egs/babel/s5d/local/search/combine.sh index 4f77c0f0f7c..612c55a3a3d 100755 --- a/egs/babel/s5d/local/search/combine.sh +++ b/egs/babel/s5d/local/search/combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 Johns Hopkins University (authors: Jan Trmal, Guoguo Chen, Dan Povey) # Copyright (c) 2016, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/search/combine_special.sh b/egs/babel/s5d/local/search/combine_special.sh index 5802f49be06..0c1fbfe1c43 100755 --- a/egs/babel/s5d/local/search/combine_special.sh +++ b/egs/babel/s5d/local/search/combine_special.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 Johns Hopkins University (authors: Jan Trmal, Guoguo Chen, Dan Povey) # Copyright (c) 2016, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/search/compile_keywords.sh b/egs/babel/s5d/local/search/compile_keywords.sh index 92dc4220a8e..39cbb299a8e 100755 --- a/egs/babel/s5d/local/search/compile_keywords.sh +++ b/egs/babel/s5d/local/search/compile_keywords.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/search/compile_proxy_keywords.sh b/egs/babel/s5d/local/search/compile_proxy_keywords.sh index 33d8dd52938..873a61b7b23 100755 --- a/egs/babel/s5d/local/search/compile_proxy_keywords.sh +++ b/egs/babel/s5d/local/search/compile_proxy_keywords.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University (Yenda Trmal ) # 2012-2014 Guoguo Chen # License: Apache 2.0 diff --git a/egs/babel/s5d/local/search/normalize.sh b/egs/babel/s5d/local/search/normalize.sh index 38054f75879..4b56fb97a05 100755 --- a/egs/babel/s5d/local/search/normalize.sh +++ b/egs/babel/s5d/local/search/normalize.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5d/local/search/rttm_to_hitlists.sh b/egs/babel/s5d/local/search/rttm_to_hitlists.sh index c6a8d2b5ad0..27bbbdd6fe0 100755 --- a/egs/babel/s5d/local/search/rttm_to_hitlists.sh +++ b/egs/babel/s5d/local/search/rttm_to_hitlists.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/search/run_phn_search.sh b/egs/babel/s5d/local/search/run_phn_search.sh index 3d39f55efa7..e03fe0dfe84 100755 --- a/egs/babel/s5d/local/search/run_phn_search.sh +++ b/egs/babel/s5d/local/search/run_phn_search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2016, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/search/run_search.sh b/egs/babel/s5d/local/search/run_search.sh index 1fbdb071123..b341062f3cf 100755 --- a/egs/babel/s5d/local/search/run_search.sh +++ b/egs/babel/s5d/local/search/run_search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2016, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/search/run_syll_search.sh b/egs/babel/s5d/local/search/run_syll_search.sh index 0694414b6b6..cce8885c73d 100755 --- a/egs/babel/s5d/local/search/run_syll_search.sh +++ b/egs/babel/s5d/local/search/run_syll_search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2016, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/search/score.sh b/egs/babel/s5d/local/search/score.sh index e429b1da030..bf423648bd8 100755 --- a/egs/babel/s5d/local/search/score.sh +++ b/egs/babel/s5d/local/search/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/babel/s5d/local/search/search.sh b/egs/babel/s5d/local/search/search.sh index 854719b6d24..3da7c9edc46 100755 --- a/egs/babel/s5d/local/search/search.sh +++ b/egs/babel/s5d/local/search/search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/search/setup.sh b/egs/babel/s5d/local/search/setup.sh index d4e2013a443..03d5cdc4f37 100755 --- a/egs/babel/s5d/local/search/setup.sh +++ b/egs/babel/s5d/local/search/setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/search_index.sh b/egs/babel/s5d/local/search_index.sh index 9e7cdb77f3d..6f0c6b46fb5 100755 --- a/egs/babel/s5d/local/search_index.sh +++ b/egs/babel/s5d/local/search_index.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0 diff --git a/egs/babel/s5d/local/segmentation/tuning/train_lstm_asr_sad_1a.sh b/egs/babel/s5d/local/segmentation/tuning/train_lstm_asr_sad_1a.sh index 63f78aa8092..c14560dfed8 100755 --- a/egs/babel/s5d/local/segmentation/tuning/train_lstm_asr_sad_1a.sh +++ b/egs/babel/s5d/local/segmentation/tuning/train_lstm_asr_sad_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is a script to train a TDNN-LSTM for speech activity detection (SAD) # using LSTM for long-context information. diff --git a/egs/babel/s5d/local/segmentation/tuning/train_stats_asr_sad_1a.sh b/egs/babel/s5d/local/segmentation/tuning/train_stats_asr_sad_1a.sh index 2dfe9a0bb96..d27a60eb4ac 100755 --- a/egs/babel/s5d/local/segmentation/tuning/train_stats_asr_sad_1a.sh +++ b/egs/babel/s5d/local/segmentation/tuning/train_stats_asr_sad_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is a script to train a TDNN for speech activity detection (SAD) # using statistics pooling for long-context information. diff --git a/egs/babel/s5d/local/syllab/ali_to_syllabs.sh b/egs/babel/s5d/local/syllab/ali_to_syllabs.sh index 8f0cb88771a..84b7d24eeb3 100755 --- a/egs/babel/s5d/local/syllab/ali_to_syllabs.sh +++ b/egs/babel/s5d/local/syllab/ali_to_syllabs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/syllab/create_syll_datadir.sh b/egs/babel/s5d/local/syllab/create_syll_datadir.sh index 4c014285619..6a95d3945a7 100755 --- a/egs/babel/s5d/local/syllab/create_syll_datadir.sh +++ b/egs/babel/s5d/local/syllab/create_syll_datadir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/syllab/generate_phone_lang.sh b/egs/babel/s5d/local/syllab/generate_phone_lang.sh index 81d8a0acdc7..d9c91405e64 100755 --- a/egs/babel/s5d/local/syllab/generate_phone_lang.sh +++ b/egs/babel/s5d/local/syllab/generate_phone_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/syllab/generate_syllable_lang.sh b/egs/babel/s5d/local/syllab/generate_syllable_lang.sh index a7bd667027c..a375971d432 100755 --- a/egs/babel/s5d/local/syllab/generate_syllable_lang.sh +++ b/egs/babel/s5d/local/syllab/generate_syllable_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/syllab/lattice_word2syll.sh b/egs/babel/s5d/local/syllab/lattice_word2syll.sh index 63e9114875d..6e20e78ff73 100755 --- a/egs/babel/s5d/local/syllab/lattice_word2syll.sh +++ b/egs/babel/s5d/local/syllab/lattice_word2syll.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2016, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/syllab/run_phones.sh b/egs/babel/s5d/local/syllab/run_phones.sh index 7c4a13c61f9..aea28cd4dd7 100755 --- a/egs/babel/s5d/local/syllab/run_phones.sh +++ b/egs/babel/s5d/local/syllab/run_phones.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/syllab/run_syllabs.sh b/egs/babel/s5d/local/syllab/run_syllabs.sh index 7366ac9ad35..f9697e86420 100755 --- a/egs/babel/s5d/local/syllab/run_syllabs.sh +++ b/egs/babel/s5d/local/syllab/run_syllabs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/babel/s5d/local/train_g2p.sh b/egs/babel/s5d/local/train_g2p.sh index 08be0014656..5a0594d8f46 100755 --- a/egs/babel/s5d/local/train_g2p.sh +++ b/egs/babel/s5d/local/train_g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/babel/s5d/local/train_lms_srilm.sh b/egs/babel/s5d/local/train_lms_srilm.sh index cf357260d8c..4283461aa47 100755 --- a/egs/babel/s5d/local/train_lms_srilm.sh +++ b/egs/babel/s5d/local/train_lms_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export LC_ALL=C words_file= diff --git a/egs/babel/s5d/run-1-main-extend-lex.sh b/egs/babel/s5d/run-1-main-extend-lex.sh index 69651416cfb..38e059fed72 100755 --- a/egs/babel/s5d/run-1-main-extend-lex.sh +++ b/egs/babel/s5d/run-1-main-extend-lex.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Parameters for extended lexicon. extend_lexicon=true diff --git a/egs/babel/s5d/run-1-main-unicode-extend-lex.sh b/egs/babel/s5d/run-1-main-unicode-extend-lex.sh index d7e831febeb..eac1f565468 100755 --- a/egs/babel/s5d/run-1-main-unicode-extend-lex.sh +++ b/egs/babel/s5d/run-1-main-unicode-extend-lex.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Parameters for extended lexicon. extend_lexicon=true diff --git a/egs/babel/s5d/run-1-main-unicode.sh b/egs/babel/s5d/run-1-main-unicode.sh index b6641433c84..0eefeaed3e5 100755 --- a/egs/babel/s5d/run-1-main-unicode.sh +++ b/egs/babel/s5d/run-1-main-unicode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is not necessarily the top-level run.sh as it is in other directories. see README.txt first. tri5_only=false diff --git a/egs/babel/s5d/run-1-main.sh b/egs/babel/s5d/run-1-main.sh index 329e8480c54..a72596bd15e 100755 --- a/egs/babel/s5d/run-1-main.sh +++ b/egs/babel/s5d/run-1-main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is not necessarily the top-level run.sh as it is in other directories. see README.txt first. tri5_only=false diff --git a/egs/babel/s5d/run-2-segmentation.sh b/egs/babel/s5d/run-2-segmentation.sh index d832a9421c8..f7651c2ae91 100755 --- a/egs/babel/s5d/run-2-segmentation.sh +++ b/egs/babel/s5d/run-2-segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar, Johns Hopkins University (Author: Jan Trmal) # Apache 2.0 diff --git a/egs/babel/s5d/run-4-anydecode.sh b/egs/babel/s5d/run-4-anydecode.sh index 52c997ae26a..2593eb340a8 100755 --- a/egs/babel/s5d/run-4-anydecode.sh +++ b/egs/babel/s5d/run-4-anydecode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e set -o pipefail diff --git a/egs/babel_multilang/s5/local/make_corpus_subset.sh b/egs/babel_multilang/s5/local/make_corpus_subset.sh index add194d48e8..acd5e91a18b 100755 --- a/egs/babel_multilang/s5/local/make_corpus_subset.sh +++ b/egs/babel_multilang/s5/local/make_corpus_subset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0. diff --git a/egs/babel_multilang/s5/local/nnet3/extract_ivector_lang.sh b/egs/babel_multilang/s5/local/nnet3/extract_ivector_lang.sh index 70d4ef22148..266f02f7ae1 100755 --- a/egs/babel_multilang/s5/local/nnet3/extract_ivector_lang.sh +++ b/egs/babel_multilang/s5/local/nnet3/extract_ivector_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Pegah Ghahremani diff --git a/egs/babel_multilang/s5/local/nnet3/prepare_multilingual_egs.sh b/egs/babel_multilang/s5/local/nnet3/prepare_multilingual_egs.sh index acd88b1cee8..7d678c5f55c 100755 --- a/egs/babel_multilang/s5/local/nnet3/prepare_multilingual_egs.sh +++ b/egs/babel_multilang/s5/local/nnet3/prepare_multilingual_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This script generates separate egs directory for each input # language in multilingual setup, which contains both egs.*.ark and egs.*.scp. diff --git a/egs/babel_multilang/s5/local/nnet3/run_common_langs.sh b/egs/babel_multilang/s5/local/nnet3/run_common_langs.sh index 63b7da82f60..073d01cb257 100755 --- a/egs/babel_multilang/s5/local/nnet3/run_common_langs.sh +++ b/egs/babel_multilang/s5/local/nnet3/run_common_langs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Pegah Ghahremani diff --git a/egs/babel_multilang/s5/local/nnet3/run_decode_lang.sh b/egs/babel_multilang/s5/local/nnet3/run_decode_lang.sh index bd80fe9a701..5456d307d9f 100755 --- a/egs/babel_multilang/s5/local/nnet3/run_decode_lang.sh +++ b/egs/babel_multilang/s5/local/nnet3/run_decode_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Pegah Ghahremani diff --git a/egs/babel_multilang/s5/local/nnet3/run_multilingual_bnf.sh b/egs/babel_multilang/s5/local/nnet3/run_multilingual_bnf.sh index 8fb01c19d00..2e48e057bd3 100755 --- a/egs/babel_multilang/s5/local/nnet3/run_multilingual_bnf.sh +++ b/egs/babel_multilang/s5/local/nnet3/run_multilingual_bnf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script trains a multilingual model using 6 layer TDNN + Xent # with 42 dim bottleneck layer in th fifth layer. diff --git a/egs/babel_multilang/s5/local/nnet3/run_shared_ivector_extractor.sh b/egs/babel_multilang/s5/local/nnet3/run_shared_ivector_extractor.sh index 7034743beca..28006a752c5 100755 --- a/egs/babel_multilang/s5/local/nnet3/run_shared_ivector_extractor.sh +++ b/egs/babel_multilang/s5/local/nnet3/run_shared_ivector_extractor.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Pegah Ghahremani diff --git a/egs/babel_multilang/s5/local/nnet3/run_tdnn_multilingual.sh b/egs/babel_multilang/s5/local/nnet3/run_tdnn_multilingual.sh index 22ba636f06a..eb2cb77ba0d 100755 --- a/egs/babel_multilang/s5/local/nnet3/run_tdnn_multilingual.sh +++ b/egs/babel_multilang/s5/local/nnet3/run_tdnn_multilingual.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Pegah Ghahremani diff --git a/egs/bentham/v1/local/chain/compare_wer.sh b/egs/bentham/v1/local/chain/compare_wer.sh index 2ce14e13694..a1b8fffe166 100755 --- a/egs/bentham/v1/local/chain/compare_wer.sh +++ b/egs/bentham/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/bentham/v1/local/chain/tuning/run_cnn_e2eali_1a.sh b/egs/bentham/v1/local/chain/tuning/run_cnn_e2eali_1a.sh index ec530ef1ce4..5343890db4e 100755 --- a/egs/bentham/v1/local/chain/tuning/run_cnn_e2eali_1a.sh +++ b/egs/bentham/v1/local/chain/tuning/run_cnn_e2eali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # local/chain/compare_wer.sh exp/chain/e2e_cnn_1a/ exp/chain/cnn_e2eali_1a # System e2e_cnn_1a cnn_e2eali_1a diff --git a/egs/bentham/v1/local/chain/tuning/run_e2e_cnn_1a.sh b/egs/bentham/v1/local/chain/tuning/run_e2e_cnn_1a.sh index 716bdce3729..eda95d391c5 100755 --- a/egs/bentham/v1/local/chain/tuning/run_e2e_cnn_1a.sh +++ b/egs/bentham/v1/local/chain/tuning/run_e2e_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script does end2end chain training (i.e. from scratch) diff --git a/egs/bentham/v1/local/create_splits.sh b/egs/bentham/v1/local/create_splits.sh index e8ea2279a49..a510959d472 100755 --- a/egs/bentham/v1/local/create_splits.sh +++ b/egs/bentham/v1/local/create_splits.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Desh Raj (Johns Hopkins University) # This script reads the extracted Bentham database files and creates diff --git a/egs/bentham/v1/local/download_bentham_text.sh b/egs/bentham/v1/local/download_bentham_text.sh index e09403718a1..5bcd1244b44 100755 --- a/egs/bentham/v1/local/download_bentham_text.sh +++ b/egs/bentham/v1/local/download_bentham_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Desh Raj # Apache 2.0 diff --git a/egs/bentham/v1/local/extract_features.sh b/egs/bentham/v1/local/extract_features.sh index 460e467e99c..374309ba375 100755 --- a/egs/bentham/v1/local/extract_features.sh +++ b/egs/bentham/v1/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/bentham/v1/local/prepare_data.sh b/egs/bentham/v1/local/prepare_data.sh index bbcc9863611..018f6843120 100755 --- a/egs/bentham/v1/local/prepare_data.sh +++ b/egs/bentham/v1/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Desh Raj (Johns Hopkins University) diff --git a/egs/bentham/v1/local/score.sh b/egs/bentham/v1/local/score.sh index 1d84815fc69..6168f38a929 100755 --- a/egs/bentham/v1/local/score.sh +++ b/egs/bentham/v1/local/score.sh @@ -1,5 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh "$@" diff --git a/egs/bentham/v1/local/train_lm.sh b/egs/bentham/v1/local/train_lm.sh index 48632a90769..b5434c38e0a 100755 --- a/egs/bentham/v1/local/train_lm.sh +++ b/egs/bentham/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/bentham/v1/run_end2end.sh b/egs/bentham/v1/run_end2end.sh index 63c034e41f6..1140fdb8e47 100755 --- a/egs/bentham/v1/run_end2end.sh +++ b/egs/bentham/v1/run_end2end.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Ashish Arora (Johns Hopkins University) # 2018 Desh Raj (Johns Hopkins University) diff --git a/egs/bn_music_speech/v1/local/make_bn.sh b/egs/bn_music_speech/v1/local/make_bn.sh index 5e2a29f0cca..accecba7662 100755 --- a/egs/bn_music_speech/v1/local/make_bn.sh +++ b/egs/bn_music_speech/v1/local/make_bn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Apache 2.0. # diff --git a/egs/bn_music_speech/v1/run.sh b/egs/bn_music_speech/v1/run.sh index 08d5c022a9d..5cc82ddb320 100755 --- a/egs/bn_music_speech/v1/run.sh +++ b/egs/bn_music_speech/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Apache 2.0. # diff --git a/egs/callhome_diarization/v1/diarization/VB_resegmentation.sh b/egs/callhome_diarization/v1/diarization/VB_resegmentation.sh index 765c4eee8b8..ed3b2da0b3a 100755 --- a/egs/callhome_diarization/v1/diarization/VB_resegmentation.sh +++ b/egs/callhome_diarization/v1/diarization/VB_resegmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Zili Huang diff --git a/egs/callhome_diarization/v1/diarization/cluster.sh b/egs/callhome_diarization/v1/diarization/cluster.sh index 5e5c6e9dbe5..6105129f907 100755 --- a/egs/callhome_diarization/v1/diarization/cluster.sh +++ b/egs/callhome_diarization/v1/diarization/cluster.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 David Snyder # 2017-2018 Matthew Maciejewski diff --git a/egs/callhome_diarization/v1/diarization/extract_ivectors.sh b/egs/callhome_diarization/v1/diarization/extract_ivectors.sh index d7bb389bad5..7fb2c6c510b 100755 --- a/egs/callhome_diarization/v1/diarization/extract_ivectors.sh +++ b/egs/callhome_diarization/v1/diarization/extract_ivectors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2016 David Snyder diff --git a/egs/callhome_diarization/v1/diarization/nnet3/xvector/extract_xvectors.sh b/egs/callhome_diarization/v1/diarization/nnet3/xvector/extract_xvectors.sh index 8d579138c73..9091c52cd1a 100755 --- a/egs/callhome_diarization/v1/diarization/nnet3/xvector/extract_xvectors.sh +++ b/egs/callhome_diarization/v1/diarization/nnet3/xvector/extract_xvectors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Daniel Povey # 2017-2018 David Snyder diff --git a/egs/callhome_diarization/v1/diarization/nnet3/xvector/score_plda.sh b/egs/callhome_diarization/v1/diarization/nnet3/xvector/score_plda.sh index 703bafd8912..5616b032be0 100755 --- a/egs/callhome_diarization/v1/diarization/nnet3/xvector/score_plda.sh +++ b/egs/callhome_diarization/v1/diarization/nnet3/xvector/score_plda.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016-2018 David Snyder # 2017-2018 Matthew Maciejewski # Apache 2.0. diff --git a/egs/callhome_diarization/v1/diarization/score_plda.sh b/egs/callhome_diarization/v1/diarization/score_plda.sh index a5be35e8f39..4ea0904aef2 100755 --- a/egs/callhome_diarization/v1/diarization/score_plda.sh +++ b/egs/callhome_diarization/v1/diarization/score_plda.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016-2018 David Snyder # 2017-2018 Matthew Maciejewski # Apache 2.0. diff --git a/egs/callhome_diarization/v1/diarization/train_ivector_extractor_diag.sh b/egs/callhome_diarization/v1/diarization/train_ivector_extractor_diag.sh index 9254012f3b0..39b571ddd41 100755 --- a/egs/callhome_diarization/v1/diarization/train_ivector_extractor_diag.sh +++ b/egs/callhome_diarization/v1/diarization/train_ivector_extractor_diag.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014 David Snyder diff --git a/egs/callhome_diarization/v1/diarization/vad_to_segments.sh b/egs/callhome_diarization/v1/diarization/vad_to_segments.sh index d653e0313ea..7f0623c8cdb 100755 --- a/egs/callhome_diarization/v1/diarization/vad_to_segments.sh +++ b/egs/callhome_diarization/v1/diarization/vad_to_segments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Matthew Maciejewski # Apache 2.0 diff --git a/egs/callhome_diarization/v1/local/make_callhome.sh b/egs/callhome_diarization/v1/local/make_callhome.sh index 21411fb6194..c2a014d7025 100755 --- a/egs/callhome_diarization/v1/local/make_callhome.sh +++ b/egs/callhome_diarization/v1/local/make_callhome.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 David Snyder # Apache 2.0. # diff --git a/egs/callhome_diarization/v1/local/make_sre.sh b/egs/callhome_diarization/v1/local/make_sre.sh index bef4e06e68e..9dc68069a1f 100755 --- a/egs/callhome_diarization/v1/local/make_sre.sh +++ b/egs/callhome_diarization/v1/local/make_sre.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Apache 2.0. # diff --git a/egs/callhome_diarization/v1/local/nnet3/xvector/prepare_feats.sh b/egs/callhome_diarization/v1/local/nnet3/xvector/prepare_feats.sh index 62879623df4..b05dbd552f9 100755 --- a/egs/callhome_diarization/v1/local/nnet3/xvector/prepare_feats.sh +++ b/egs/callhome_diarization/v1/local/nnet3/xvector/prepare_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Apache 2.0. diff --git a/egs/callhome_diarization/v1/local/nnet3/xvector/prepare_feats_for_egs.sh b/egs/callhome_diarization/v1/local/nnet3/xvector/prepare_feats_for_egs.sh index dcdbe1b1593..326b6dbb9fa 100755 --- a/egs/callhome_diarization/v1/local/nnet3/xvector/prepare_feats_for_egs.sh +++ b/egs/callhome_diarization/v1/local/nnet3/xvector/prepare_feats_for_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Apache 2.0. diff --git a/egs/callhome_diarization/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh b/egs/callhome_diarization/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh index 4fdf0cfbad6..b08764259f9 100755 --- a/egs/callhome_diarization/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh +++ b/egs/callhome_diarization/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 David Snyder # 2018 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2018 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/callhome_diarization/v1/run.sh b/egs/callhome_diarization/v1/run.sh index f4652c0c0ef..5fa663f8e84 100755 --- a/egs/callhome_diarization/v1/run.sh +++ b/egs/callhome_diarization/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 David Snyder # 2017-2018 Matthew Maciejewski # Apache 2.0. diff --git a/egs/callhome_diarization/v2/run.sh b/egs/callhome_diarization/v2/run.sh index 85a2c7fdf2b..331b2c56613 100755 --- a/egs/callhome_diarization/v2/run.sh +++ b/egs/callhome_diarization/v2/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 David Snyder # 2017-2018 Matthew Maciejewski # diff --git a/egs/callhome_egyptian/s5/local/callhome_create_test_lang.sh b/egs/callhome_egyptian/s5/local/callhome_create_test_lang.sh index f4a5cf6d1e2..ab3f5ec0ad8 100755 --- a/egs/callhome_egyptian/s5/local/callhome_create_test_lang.sh +++ b/egs/callhome_egyptian/s5/local/callhome_create_test_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # if [ -f path.sh ]; then . ./path.sh; fi diff --git a/egs/callhome_egyptian/s5/local/callhome_data_prep.sh b/egs/callhome_egyptian/s5/local/callhome_data_prep.sh index 8afe6049b8b..08b6866e58f 100755 --- a/egs/callhome_egyptian/s5/local/callhome_data_prep.sh +++ b/egs/callhome_egyptian/s5/local/callhome_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Johns Hopkins University : (Gaurav Kumar) # The input is the Callhome Egyptian Arabic Dataset which contains *.sph files diff --git a/egs/callhome_egyptian/s5/local/callhome_train_lms.sh b/egs/callhome_egyptian/s5/local/callhome_train_lms.sh index ec92b43e2f8..e960e2c420d 100755 --- a/egs/callhome_egyptian/s5/local/callhome_train_lms.sh +++ b/egs/callhome_egyptian/s5/local/callhome_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one level above this directory # Generate the text for the LM training diff --git a/egs/callhome_egyptian/s5/local/nnet3/run_ivector_common.sh b/egs/callhome_egyptian/s5/local/nnet3/run_ivector_common.sh index f062af8e89d..5a810c72379 100755 --- a/egs/callhome_egyptian/s5/local/nnet3/run_ivector_common.sh +++ b/egs/callhome_egyptian/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Inherited from the WSJ nnet3 recipe, modified for use with ECA diff --git a/egs/callhome_egyptian/s5/local/nnet3/run_tdnn.sh b/egs/callhome_egyptian/s5/local/nnet3/run_tdnn.sh index bd3868da42d..7c8f0d8e6d9 100755 --- a/egs/callhome_egyptian/s5/local/nnet3/run_tdnn.sh +++ b/egs/callhome_egyptian/s5/local/nnet3/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is the standard "tdnn" system, built in nnet3; it's what we use to # call multi-splice. diff --git a/egs/callhome_egyptian/s5/local/score.sh b/egs/callhome_egyptian/s5/local/score.sh index 1e493d44a98..be4322eb2db 100755 --- a/egs/callhome_egyptian/s5/local/score.sh +++ b/egs/callhome_egyptian/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/callhome_egyptian/s5/run.sh b/egs/callhome_egyptian/s5/run.sh index ebe550c9814..d0069c4df2c 100755 --- a/egs/callhome_egyptian/s5/run.sh +++ b/egs/callhome_egyptian/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Johns Hopkins University (Author : Gaurav Kumar, Daniel Povey) # Recipe for CallHome Egyptian Arabic diff --git a/egs/casia_hwdb/v1/local/augment_data.sh b/egs/casia_hwdb/v1/local/augment_data.sh index 1f13ed15ded..d498c54665c 100755 --- a/egs/casia_hwdb/v1/local/augment_data.sh +++ b/egs/casia_hwdb/v1/local/augment_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # 2018 Ashish Arora diff --git a/egs/casia_hwdb/v1/local/chain/compare_wer.sh b/egs/casia_hwdb/v1/local/chain/compare_wer.sh index ab880c1adb5..eeb831e8e6b 100755 --- a/egs/casia_hwdb/v1/local/chain/compare_wer.sh +++ b/egs/casia_hwdb/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/casia_hwdb/v1/local/chain/run_cnn_e2eali_1b.sh b/egs/casia_hwdb/v1/local/chain/run_cnn_e2eali_1b.sh index 300c8ae8e31..0ed75baa41b 100755 --- a/egs/casia_hwdb/v1/local/chain/run_cnn_e2eali_1b.sh +++ b/egs/casia_hwdb/v1/local/chain/run_cnn_e2eali_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1b is the same as chainali_1a but uses the e2e chain model to get the # lattice alignments and to build a tree diff --git a/egs/casia_hwdb/v1/local/chain/run_flatstart_cnn1a.sh b/egs/casia_hwdb/v1/local/chain/run_flatstart_cnn1a.sh index 023fbff1c14..55be6acbadc 100755 --- a/egs/casia_hwdb/v1/local/chain/run_flatstart_cnn1a.sh +++ b/egs/casia_hwdb/v1/local/chain/run_flatstart_cnn1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script does end2end chain training (i.e. from scratch) diff --git a/egs/casia_hwdb/v1/local/extract_database.sh b/egs/casia_hwdb/v1/local/extract_database.sh index 1af3713d586..62c8151f9c5 100755 --- a/egs/casia_hwdb/v1/local/extract_database.sh +++ b/egs/casia_hwdb/v1/local/extract_database.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Chun-Chieh Chang # The original format of the dataset given is GEDI and page images. diff --git a/egs/casia_hwdb/v1/local/extract_features.sh b/egs/casia_hwdb/v1/local/extract_features.sh index f75837ae5b3..c9a36991e94 100755 --- a/egs/casia_hwdb/v1/local/extract_features.sh +++ b/egs/casia_hwdb/v1/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/casia_hwdb/v1/local/score.sh b/egs/casia_hwdb/v1/local/score.sh index f2405205f02..6e98902f5bd 100755 --- a/egs/casia_hwdb/v1/local/score.sh +++ b/egs/casia_hwdb/v1/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh --max-lmwt 10 "$@" diff --git a/egs/casia_hwdb/v1/local/train_lm.sh b/egs/casia_hwdb/v1/local/train_lm.sh index bc738f217da..9e651d63aff 100755 --- a/egs/casia_hwdb/v1/local/train_lm.sh +++ b/egs/casia_hwdb/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/casia_hwdb/v1/local/train_lm_lr.sh b/egs/casia_hwdb/v1/local/train_lm_lr.sh index a8b1bfb76a4..70efc7fd8dd 100755 --- a/egs/casia_hwdb/v1/local/train_lm_lr.sh +++ b/egs/casia_hwdb/v1/local/train_lm_lr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/casia_hwdb/v1/run.sh b/egs/casia_hwdb/v1/run.sh index 44d1f26117c..987ca5d5078 100755 --- a/egs/casia_hwdb/v1/run.sh +++ b/egs/casia_hwdb/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e stage=0 diff --git a/egs/chime1/s5/local/chime1_prepare_data.sh b/egs/chime1/s5/local/chime1_prepare_data.sh index c5963b5d4ab..153890d7554 100755 --- a/egs/chime1/s5/local/chime1_prepare_data.sh +++ b/egs/chime1/s5/local/chime1_prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Sheffield (Author: Ning Ma) # Apache 2.0. diff --git a/egs/chime1/s5/local/chime1_prepare_dict.sh b/egs/chime1/s5/local/chime1_prepare_dict.sh index a5dc4cbd50d..4ccff9274c4 100755 --- a/egs/chime1/s5/local/chime1_prepare_dict.sh +++ b/egs/chime1/s5/local/chime1_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Sheffield (Author: Ning Ma) # Apache 2.0. diff --git a/egs/chime1/s5/local/chime1_prepare_grammar.sh b/egs/chime1/s5/local/chime1_prepare_grammar.sh index e06f736245f..689704aa24f 100755 --- a/egs/chime1/s5/local/chime1_prepare_grammar.sh +++ b/egs/chime1/s5/local/chime1_prepare_grammar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Sheffield (Author: Ning Ma) # Apache 2.0. diff --git a/egs/chime1/s5/local/score.sh b/egs/chime1/s5/local/score.sh index 778a4283461..0c2f14de7ad 100755 --- a/egs/chime1/s5/local/score.sh +++ b/egs/chime1/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/chime1/s5/run.sh b/egs/chime1/s5/run.sh index 617c1a99f5c..8087f326bc1 100755 --- a/egs/chime1/s5/run.sh +++ b/egs/chime1/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Sheffield (Author: Ning Ma) # Apache 2.0. diff --git a/egs/chime2/s5/local/chime_format_data.sh b/egs/chime2/s5/local/chime_format_data.sh index 5870174aff4..fd9276ae8bf 100755 --- a/egs/chime2/s5/local/chime_format_data.sh +++ b/egs/chime2/s5/local/chime_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/chime2/s5/local/clean_wsj0_data_prep.sh b/egs/chime2/s5/local/clean_wsj0_data_prep.sh index 7cc39e4a847..ae5750f3572 100755 --- a/egs/chime2/s5/local/clean_wsj0_data_prep.sh +++ b/egs/chime2/s5/local/clean_wsj0_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime2/s5/local/noisy_wsj0_data_prep.sh b/egs/chime2/s5/local/noisy_wsj0_data_prep.sh index 8744f25d67e..c98804a3468 100755 --- a/egs/chime2/s5/local/noisy_wsj0_data_prep.sh +++ b/egs/chime2/s5/local/noisy_wsj0_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime2/s5/local/reverb_wsj0_data_prep.sh b/egs/chime2/s5/local/reverb_wsj0_data_prep.sh index c6903f21c13..47d2e03b867 100755 --- a/egs/chime2/s5/local/reverb_wsj0_data_prep.sh +++ b/egs/chime2/s5/local/reverb_wsj0_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime2/s5/local/score.sh b/egs/chime2/s5/local/score.sh index 93d8a11613c..6e2af231b07 100755 --- a/egs/chime2/s5/local/score.sh +++ b/egs/chime2/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/chime2/s5/local/wsj_prepare_dict.sh b/egs/chime2/s5/local/wsj_prepare_dict.sh index 1fa59e69875..ff71fd0c4a7 100755 --- a/egs/chime2/s5/local/wsj_prepare_dict.sh +++ b/egs/chime2/s5/local/wsj_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime2/s5/run.sh b/egs/chime2/s5/run.sh index 138ce941ce7..894e961f8aa 100755 --- a/egs/chime2/s5/run.sh +++ b/egs/chime2/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh ## You'll want to change cmd.sh to something that will work on your system. ## This relates to the queue. diff --git a/egs/chime3/s5/local/bth_chime3_data_prep.sh b/egs/chime3/s5/local/bth_chime3_data_prep.sh index 6fefc798487..8cc5cea86cf 100755 --- a/egs/chime3/s5/local/bth_chime3_data_prep.sh +++ b/egs/chime3/s5/local/bth_chime3_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime3/s5/local/chime3_beamform.sh b/egs/chime3/s5/local/chime3_beamform.sh index 170a37ccd84..39055196f41 100755 --- a/egs/chime3/s5/local/chime3_beamform.sh +++ b/egs/chime3/s5/local/chime3_beamform.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Shinji Watanabe) diff --git a/egs/chime3/s5/local/chime3_calc_wers.sh b/egs/chime3/s5/local/chime3_calc_wers.sh index 4770e5cf38c..58fba170c06 100755 --- a/egs/chime3/s5/local/chime3_calc_wers.sh +++ b/egs/chime3/s5/local/chime3_calc_wers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe) # Apache 2.0. diff --git a/egs/chime3/s5/local/chime3_calc_wers_smbr.sh b/egs/chime3/s5/local/chime3_calc_wers_smbr.sh index ba5fc03d1da..66ac84690cc 100755 --- a/egs/chime3/s5/local/chime3_calc_wers_smbr.sh +++ b/egs/chime3/s5/local/chime3_calc_wers_smbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe) # Apache 2.0. diff --git a/egs/chime3/s5/local/chime3_train_lms.sh b/egs/chime3/s5/local/chime3_train_lms.sh index 984ef766b2a..9ff1fad7e35 100755 --- a/egs/chime3/s5/local/chime3_train_lms.sh +++ b/egs/chime3/s5/local/chime3_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Modified from the script for CHiME3 baseline # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Takaaki Hori) diff --git a/egs/chime3/s5/local/chime3_train_rnnlms.sh b/egs/chime3/s5/local/chime3_train_rnnlms.sh index 429ca828aa3..37a75d38b38 100755 --- a/egs/chime3/s5/local/chime3_train_rnnlms.sh +++ b/egs/chime3/s5/local/chime3_train_rnnlms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Takaaki Hori) diff --git a/egs/chime3/s5/local/clean_chime3_format_data.sh b/egs/chime3/s5/local/clean_chime3_format_data.sh index f2d81bc5324..51201c7ec65 100755 --- a/egs/chime3/s5/local/clean_chime3_format_data.sh +++ b/egs/chime3/s5/local/clean_chime3_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/chime3/s5/local/clean_wsj0_data_prep.sh b/egs/chime3/s5/local/clean_wsj0_data_prep.sh index fe96881cf8d..671379ae732 100755 --- a/egs/chime3/s5/local/clean_wsj0_data_prep.sh +++ b/egs/chime3/s5/local/clean_wsj0_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime3/s5/local/real_close_chime3_data_prep.sh b/egs/chime3/s5/local/real_close_chime3_data_prep.sh index 4ef1fc4dffc..a420d094805 100755 --- a/egs/chime3/s5/local/real_close_chime3_data_prep.sh +++ b/egs/chime3/s5/local/real_close_chime3_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime3/s5/local/real_enhan_chime3_data_prep.sh b/egs/chime3/s5/local/real_enhan_chime3_data_prep.sh index 4230a1adbed..5c53f4c4f95 100755 --- a/egs/chime3/s5/local/real_enhan_chime3_data_prep.sh +++ b/egs/chime3/s5/local/real_enhan_chime3_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime3/s5/local/real_noisy_chime3_data_prep.sh b/egs/chime3/s5/local/real_noisy_chime3_data_prep.sh index 94a2d0226db..96428e143a9 100755 --- a/egs/chime3/s5/local/real_noisy_chime3_data_prep.sh +++ b/egs/chime3/s5/local/real_noisy_chime3_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime3/s5/local/run_dnn.sh b/egs/chime3/s5/local/run_dnn.sh index 78dc4283ee3..6962896e7b4 100755 --- a/egs/chime3/s5/local/run_dnn.sh +++ b/egs/chime3/s5/local/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Sheffield (Jon Barker, Ricard Marxer) # Inria (Emmanuel Vincent) diff --git a/egs/chime3/s5/local/run_gmm.sh b/egs/chime3/s5/local/run_gmm.sh index 5b9fbaa1736..f2afbc5be65 100755 --- a/egs/chime3/s5/local/run_gmm.sh +++ b/egs/chime3/s5/local/run_gmm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Sheffield (Jon Barker, Ricard Marxer) # Inria (Emmanuel Vincent) diff --git a/egs/chime3/s5/local/run_init.sh b/egs/chime3/s5/local/run_init.sh index 9db289a12a5..2350599411f 100755 --- a/egs/chime3/s5/local/run_init.sh +++ b/egs/chime3/s5/local/run_init.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Sheffield (Jon Barker, Ricard Marxer) # Inria (Emmanuel Vincent) diff --git a/egs/chime3/s5/local/run_lmrescore.sh b/egs/chime3/s5/local/run_lmrescore.sh index 0c364367c98..20d22890f36 100755 --- a/egs/chime3/s5/local/run_lmrescore.sh +++ b/egs/chime3/s5/local/run_lmrescore.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Sheffield (Jon Barker, Ricard Marxer) # Inria (Emmanuel Vincent) diff --git a/egs/chime3/s5/local/score.sh b/egs/chime3/s5/local/score.sh index 93d8a11613c..6e2af231b07 100755 --- a/egs/chime3/s5/local/score.sh +++ b/egs/chime3/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/chime3/s5/local/simu_enhan_chime3_data_prep.sh b/egs/chime3/s5/local/simu_enhan_chime3_data_prep.sh index 8f47bcff095..827dfa5cba0 100755 --- a/egs/chime3/s5/local/simu_enhan_chime3_data_prep.sh +++ b/egs/chime3/s5/local/simu_enhan_chime3_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime3/s5/local/simu_noisy_chime3_data_prep.sh b/egs/chime3/s5/local/simu_noisy_chime3_data_prep.sh index 68c3ba2f0c7..16fe2ee6271 100755 --- a/egs/chime3/s5/local/simu_noisy_chime3_data_prep.sh +++ b/egs/chime3/s5/local/simu_noisy_chime3_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime3/s5/local/wsj_prepare_dict.sh b/egs/chime3/s5/local/wsj_prepare_dict.sh index 6ddebd60293..7c5b4f98506 100755 --- a/egs/chime3/s5/local/wsj_prepare_dict.sh +++ b/egs/chime3/s5/local/wsj_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation # 2012-2014 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime3/s5/run.sh b/egs/chime3/s5/run.sh index 3ef5e630c13..d10e83c0cac 100755 --- a/egs/chime3/s5/run.sh +++ b/egs/chime3/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Kaldi ASR baseline for the 3rd CHiME Challenge # diff --git a/egs/chime4/s5_1ch/local/chain/compare_wer.sh b/egs/chime4/s5_1ch/local/chain/compare_wer.sh index edfefad547f..f59cac3bf5b 100755 --- a/egs/chime4/s5_1ch/local/chain/compare_wer.sh +++ b/egs/chime4/s5_1ch/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/chime4/s5_1ch/local/chain/tuning/run_tdnn_1a.sh b/egs/chime4/s5_1ch/local/chain/tuning/run_tdnn_1a.sh index 3f8b7c60090..593ffe290ae 100755 --- a/egs/chime4/s5_1ch/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/chime4/s5_1ch/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This was modified from wsj/local/chain/tunning/run_tdnn_1e.sh to be # used in Chime4. diff --git a/egs/chime4/s5_1ch/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/chime4/s5_1ch/local/chain/tuning/run_tdnn_lstm_1a.sh index 8b4e93cd05b..8a7cb1813a2 100755 --- a/egs/chime4/s5_1ch/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/chime4/s5_1ch/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a TDNN+LSTM chain system. diff --git a/egs/chime4/s5_1ch/local/chime4_calc_wers.sh b/egs/chime4/s5_1ch/local/chime4_calc_wers.sh index a4c115c1093..a0eacac54bf 100755 --- a/egs/chime4/s5_1ch/local/chime4_calc_wers.sh +++ b/egs/chime4/s5_1ch/local/chime4_calc_wers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe) # Apache 2.0. diff --git a/egs/chime4/s5_1ch/local/chime4_calc_wers_looped.sh b/egs/chime4/s5_1ch/local/chime4_calc_wers_looped.sh index 84bb2cb8dbd..a78e7d4583b 100755 --- a/egs/chime4/s5_1ch/local/chime4_calc_wers_looped.sh +++ b/egs/chime4/s5_1ch/local/chime4_calc_wers_looped.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe) # Apache 2.0. diff --git a/egs/chime4/s5_1ch/local/chime4_calc_wers_smbr.sh b/egs/chime4/s5_1ch/local/chime4_calc_wers_smbr.sh index b316208b168..a56dc66dfd1 100755 --- a/egs/chime4/s5_1ch/local/chime4_calc_wers_smbr.sh +++ b/egs/chime4/s5_1ch/local/chime4_calc_wers_smbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe) # Apache 2.0. diff --git a/egs/chime4/s5_1ch/local/chime4_train_lms.sh b/egs/chime4/s5_1ch/local/chime4_train_lms.sh index 06dd716e789..f3002741bde 100755 --- a/egs/chime4/s5_1ch/local/chime4_train_lms.sh +++ b/egs/chime4/s5_1ch/local/chime4_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Modified from the script for CHiME3 baseline # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Takaaki Hori) diff --git a/egs/chime4/s5_1ch/local/chime4_train_rnnlms.sh b/egs/chime4/s5_1ch/local/chime4_train_rnnlms.sh index 8324c8e06b1..fa539584067 100755 --- a/egs/chime4/s5_1ch/local/chime4_train_rnnlms.sh +++ b/egs/chime4/s5_1ch/local/chime4_train_rnnlms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Takaaki Hori) diff --git a/egs/chime4/s5_1ch/local/clean_chime4_format_data.sh b/egs/chime4/s5_1ch/local/clean_chime4_format_data.sh index 23dc8a70d9e..42f3ee70209 100755 --- a/egs/chime4/s5_1ch/local/clean_chime4_format_data.sh +++ b/egs/chime4/s5_1ch/local/clean_chime4_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/chime4/s5_1ch/local/clean_wsj0_data_prep.sh b/egs/chime4/s5_1ch/local/clean_wsj0_data_prep.sh index 8c6989bc0b2..9f831546e5c 100755 --- a/egs/chime4/s5_1ch/local/clean_wsj0_data_prep.sh +++ b/egs/chime4/s5_1ch/local/clean_wsj0_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime4/s5_1ch/local/compute_pesq.sh b/egs/chime4/s5_1ch/local/compute_pesq.sh index 1d290a4893f..7121a02dca8 100755 --- a/egs/chime4/s5_1ch/local/compute_pesq.sh +++ b/egs/chime4/s5_1ch/local/compute_pesq.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # Apache 2.0 diff --git a/egs/chime4/s5_1ch/local/compute_stoi_estoi_sdr.sh b/egs/chime4/s5_1ch/local/compute_stoi_estoi_sdr.sh index b7627560b67..bb2accc3a81 100755 --- a/egs/chime4/s5_1ch/local/compute_stoi_estoi_sdr.sh +++ b/egs/chime4/s5_1ch/local/compute_stoi_estoi_sdr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # Apache 2.0 diff --git a/egs/chime4/s5_1ch/local/download_se_eval_tool.sh b/egs/chime4/s5_1ch/local/download_se_eval_tool.sh index ddd86a03d8a..a926ba6fda9 100755 --- a/egs/chime4/s5_1ch/local/download_se_eval_tool.sh +++ b/egs/chime4/s5_1ch/local/download_se_eval_tool.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # Apache 2.0 diff --git a/egs/chime4/s5_1ch/local/nnet3/compare_wer.sh b/egs/chime4/s5_1ch/local/nnet3/compare_wer.sh index 7a2fbd8a123..605c870a264 100755 --- a/egs/chime4/s5_1ch/local/nnet3/compare_wer.sh +++ b/egs/chime4/s5_1ch/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/nnet3/compare_wer.sh exp/nnet3/tdnn_{c,d}_sp diff --git a/egs/chime4/s5_1ch/local/nnet3/run_ivector_common.sh b/egs/chime4/s5_1ch/local/nnet3/run_ivector_common.sh index 1009958dc0f..e3584f5f06e 100755 --- a/egs/chime4/s5_1ch/local/nnet3/run_ivector_common.sh +++ b/egs/chime4/s5_1ch/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/chime4/s5_1ch/local/real_enhan_chime4_data_prep.sh b/egs/chime4/s5_1ch/local/real_enhan_chime4_data_prep.sh index 7d4f9c892a8..d3892ac2197 100755 --- a/egs/chime4/s5_1ch/local/real_enhan_chime4_data_prep.sh +++ b/egs/chime4/s5_1ch/local/real_enhan_chime4_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime4/s5_1ch/local/real_noisy_chime4_data_prep.sh b/egs/chime4/s5_1ch/local/real_noisy_chime4_data_prep.sh index 0173b022176..f319d30c314 100755 --- a/egs/chime4/s5_1ch/local/real_noisy_chime4_data_prep.sh +++ b/egs/chime4/s5_1ch/local/real_noisy_chime4_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime4/s5_1ch/local/rnnlm/run_lstm_back.sh b/egs/chime4/s5_1ch/local/rnnlm/run_lstm_back.sh index 76e2b563e6b..be46d1934d4 100755 --- a/egs/chime4/s5_1ch/local/rnnlm/run_lstm_back.sh +++ b/egs/chime4/s5_1ch/local/rnnlm/run_lstm_back.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/chime4/s5_1ch/local/rnnlm/tuning/run_lstm_1a.sh b/egs/chime4/s5_1ch/local/rnnlm/tuning/run_lstm_1a.sh index a38b15048f0..dfec3e4915e 100755 --- a/egs/chime4/s5_1ch/local/rnnlm/tuning/run_lstm_1a.sh +++ b/egs/chime4/s5_1ch/local/rnnlm/tuning/run_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/chime4/s5_1ch/local/run_beamform_2ch_track.sh b/egs/chime4/s5_1ch/local/run_beamform_2ch_track.sh index c9ce5a72040..6282b1c8dd5 100755 --- a/egs/chime4/s5_1ch/local/run_beamform_2ch_track.sh +++ b/egs/chime4/s5_1ch/local/run_beamform_2ch_track.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Shinji Watanabe) diff --git a/egs/chime4/s5_1ch/local/run_beamform_6ch_track.sh b/egs/chime4/s5_1ch/local/run_beamform_6ch_track.sh index 6bdbc61adc2..2145cb3480b 100755 --- a/egs/chime4/s5_1ch/local/run_beamform_6ch_track.sh +++ b/egs/chime4/s5_1ch/local/run_beamform_6ch_track.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Shinji Watanabe) diff --git a/egs/chime4/s5_1ch/local/run_blstm_gev.sh b/egs/chime4/s5_1ch/local/run_blstm_gev.sh index 2ee92b70fbd..d581a9d1e09 100755 --- a/egs/chime4/s5_1ch/local/run_blstm_gev.sh +++ b/egs/chime4/s5_1ch/local/run_blstm_gev.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # Apache 2.0 diff --git a/egs/chime4/s5_1ch/local/run_gmm.sh b/egs/chime4/s5_1ch/local/run_gmm.sh index 5178433dfc2..d148761ce40 100755 --- a/egs/chime4/s5_1ch/local/run_gmm.sh +++ b/egs/chime4/s5_1ch/local/run_gmm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 University of Sheffield (Jon Barker, Ricard Marxer) # Inria (Emmanuel Vincent) diff --git a/egs/chime4/s5_1ch/local/run_init.sh b/egs/chime4/s5_1ch/local/run_init.sh index f8c4782cc48..36ae519dfe4 100755 --- a/egs/chime4/s5_1ch/local/run_init.sh +++ b/egs/chime4/s5_1ch/local/run_init.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 University of Sheffield (Jon Barker, Ricard Marxer) # Inria (Emmanuel Vincent) diff --git a/egs/chime4/s5_1ch/local/run_lmrescore.sh b/egs/chime4/s5_1ch/local/run_lmrescore.sh index 58a19c6da25..0c5bef0b757 100755 --- a/egs/chime4/s5_1ch/local/run_lmrescore.sh +++ b/egs/chime4/s5_1ch/local/run_lmrescore.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Sheffield (Jon Barker, Ricard Marxer) # Inria (Emmanuel Vincent) diff --git a/egs/chime4/s5_1ch/local/run_lmrescore_tdnn.sh b/egs/chime4/s5_1ch/local/run_lmrescore_tdnn.sh index 58af793615e..5d2555fb0dd 100755 --- a/egs/chime4/s5_1ch/local/run_lmrescore_tdnn.sh +++ b/egs/chime4/s5_1ch/local/run_lmrescore_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Sheffield (Jon Barker, Ricard Marxer) # Inria (Emmanuel Vincent) diff --git a/egs/chime4/s5_1ch/local/run_lmrescore_tdnn_lstm.sh b/egs/chime4/s5_1ch/local/run_lmrescore_tdnn_lstm.sh index 0bea4dd7102..1b7c28654d5 100755 --- a/egs/chime4/s5_1ch/local/run_lmrescore_tdnn_lstm.sh +++ b/egs/chime4/s5_1ch/local/run_lmrescore_tdnn_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Sheffield (Jon Barker, Ricard Marxer) # Inria (Emmanuel Vincent) diff --git a/egs/chime4/s5_1ch/local/run_nn-gev.sh b/egs/chime4/s5_1ch/local/run_nn-gev.sh index a17dd3d3f15..2f9222fefc2 100755 --- a/egs/chime4/s5_1ch/local/run_nn-gev.sh +++ b/egs/chime4/s5_1ch/local/run_nn-gev.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # Apache 2.0 diff --git a/egs/chime4/s5_1ch/local/score.sh b/egs/chime4/s5_1ch/local/score.sh index 93d8a11613c..6e2af231b07 100755 --- a/egs/chime4/s5_1ch/local/score.sh +++ b/egs/chime4/s5_1ch/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/chime4/s5_1ch/local/simu_enhan_chime4_data_prep.sh b/egs/chime4/s5_1ch/local/simu_enhan_chime4_data_prep.sh index d6419fa90b9..10873130853 100755 --- a/egs/chime4/s5_1ch/local/simu_enhan_chime4_data_prep.sh +++ b/egs/chime4/s5_1ch/local/simu_enhan_chime4_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime4/s5_1ch/local/simu_noisy_chime4_data_prep.sh b/egs/chime4/s5_1ch/local/simu_noisy_chime4_data_prep.sh index 124cde82b8a..0fed4cde63b 100755 --- a/egs/chime4/s5_1ch/local/simu_noisy_chime4_data_prep.sh +++ b/egs/chime4/s5_1ch/local/simu_noisy_chime4_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime4/s5_1ch/local/write_se_results.sh b/egs/chime4/s5_1ch/local/write_se_results.sh index 7ada63f8ccc..8a844467d5a 100755 --- a/egs/chime4/s5_1ch/local/write_se_results.sh +++ b/egs/chime4/s5_1ch/local/write_se_results.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # Apache 2.0 diff --git a/egs/chime4/s5_1ch/local/wsj_prepare_dict.sh b/egs/chime4/s5_1ch/local/wsj_prepare_dict.sh index 6ddebd60293..7c5b4f98506 100755 --- a/egs/chime4/s5_1ch/local/wsj_prepare_dict.sh +++ b/egs/chime4/s5_1ch/local/wsj_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation # 2012-2014 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime4/s5_1ch/run.sh b/egs/chime4/s5_1ch/run.sh index 5b980dec827..4265ed92a9e 100755 --- a/egs/chime4/s5_1ch/run.sh +++ b/egs/chime4/s5_1ch/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Kaldi ASR baseline for the CHiME-4 Challenge (1ch track: single channel track) # diff --git a/egs/chime4/s5_2ch/run.sh b/egs/chime4/s5_2ch/run.sh index 7ae5048c6fa..702a5b2fc58 100755 --- a/egs/chime4/s5_2ch/run.sh +++ b/egs/chime4/s5_2ch/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Kaldi ASR baseline for the CHiME-4 Challenge (2ch track: 2 channel track) # diff --git a/egs/chime5/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/chime5/s5/local/chain/tuning/run_tdnn_1a.sh index f0f469e46c8..5e8df0a64ae 100755 --- a/egs/chime5/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/chime5/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Set -e here so that we catch if any executable fails immediately set -euo pipefail diff --git a/egs/chime5/s5/local/chain/tuning/run_tdnn_1b.sh b/egs/chime5/s5/local/chain/tuning/run_tdnn_1b.sh index 920f2543132..d0ee46e8288 100755 --- a/egs/chime5/s5/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/chime5/s5/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This factorized TDNN (TDNN-F) script is ported from s5b recipe # It uses resnet-style skip connections. diff --git a/egs/chime5/s5/local/nnet3/compare_wer.sh b/egs/chime5/s5/local/nnet3/compare_wer.sh index 095e85cc338..4888de1f159 100755 --- a/egs/chime5/s5/local/nnet3/compare_wer.sh +++ b/egs/chime5/s5/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/chime5/s5/local/nnet3/run_ivector_common.sh b/egs/chime5/s5/local/nnet3/run_ivector_common.sh index 2b672063be7..2da57372a45 100755 --- a/egs/chime5/s5/local/nnet3/run_ivector_common.sh +++ b/egs/chime5/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/chime5/s5/local/prepare_data.sh b/egs/chime5/s5/local/prepare_data.sh index 98087322c38..ac07d02270f 100755 --- a/egs/chime5/s5/local/prepare_data.sh +++ b/egs/chime5/s5/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2017 Johns Hopkins University (Author: Shinji Watanabe, Yenda Trmal) # Apache 2.0 diff --git a/egs/chime5/s5/local/prepare_dict.sh b/egs/chime5/s5/local/prepare_dict.sh index 09083d0e795..1ea75af8a11 100755 --- a/egs/chime5/s5/local/prepare_dict.sh +++ b/egs/chime5/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2018, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/chime5/s5/local/run_beamformit.sh b/egs/chime5/s5/local/run_beamformit.sh index aa3badd90d8..4ac45eb98db 100755 --- a/egs/chime5/s5/local/run_beamformit.sh +++ b/egs/chime5/s5/local/run_beamformit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Shinji Watanabe) diff --git a/egs/chime5/s5/local/run_recog.sh b/egs/chime5/s5/local/run_recog.sh index 5c74c9ff242..4e13ae8c0fb 100755 --- a/egs/chime5/s5/local/run_recog.sh +++ b/egs/chime5/s5/local/run_recog.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Based mostly on the TED-LIUM and Switchboard recipe # diff --git a/egs/chime5/s5/local/run_wpe.sh b/egs/chime5/s5/local/run_wpe.sh index 8ecbbd6182a..0e6ba2676ba 100755 --- a/egs/chime5/s5/local/run_wpe.sh +++ b/egs/chime5/s5/local/run_wpe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # Apache 2.0 diff --git a/egs/chime5/s5/local/score_for_submit.sh b/egs/chime5/s5/local/score_for_submit.sh index 23121d68b93..c08fc022840 100755 --- a/egs/chime5/s5/local/score_for_submit.sh +++ b/egs/chime5/s5/local/score_for_submit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey, Yenda Trmal) # Apache 2.0 # diff --git a/egs/chime5/s5/local/train_lms_srilm.sh b/egs/chime5/s5/local/train_lms_srilm.sh index 5a1d56d24b3..3b19e58bb48 100755 --- a/egs/chime5/s5/local/train_lms_srilm.sh +++ b/egs/chime5/s5/local/train_lms_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017 Johns Hopkins University (Author: Yenda Trmal, Shinji Watanabe) # Apache 2.0 diff --git a/egs/chime5/s5/run.sh b/egs/chime5/s5/run.sh index 024c0190b3e..08779bd1aa1 100755 --- a/egs/chime5/s5/run.sh +++ b/egs/chime5/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Based mostly on the TED-LIUM and Switchboard recipe # diff --git a/egs/chime5/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1a.sh b/egs/chime5/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1a.sh index 95e9d934bd3..f81bbd59258 100755 --- a/egs/chime5/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1a.sh +++ b/egs/chime5/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Set -e here so that we catch if any executable fails immediately set -euo pipefail diff --git a/egs/chime5/s5b/local/chain/tuning/run_tdnn_1a.sh b/egs/chime5/s5b/local/chain/tuning/run_tdnn_1a.sh index daad37e2cd7..ca1de635168 100755 --- a/egs/chime5/s5b/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/chime5/s5b/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Set -e here so that we catch if any executable fails immediately set -euo pipefail diff --git a/egs/chime5/s5b/local/chain/tuning/run_tdnn_1b.sh b/egs/chime5/s5b/local/chain/tuning/run_tdnn_1b.sh index e033715d884..d9c4b20e513 100755 --- a/egs/chime5/s5b/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/chime5/s5b/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This factorized TDNN (TDNN-F) script is adapted from SWBD recipe 7q. # It uses resnet-style skip connections. diff --git a/egs/chime5/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/chime5/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh index e3d8e6ac4dc..2de79fdf593 100755 --- a/egs/chime5/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/chime5/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Set -e here so that we catch if any executable fails immediately set -euo pipefail diff --git a/egs/chime5/s5b/local/copy_lat_dir_parallel.sh b/egs/chime5/s5b/local/copy_lat_dir_parallel.sh index 82839604c9e..3e2c1b445b8 100755 --- a/egs/chime5/s5b/local/copy_lat_dir_parallel.sh +++ b/egs/chime5/s5b/local/copy_lat_dir_parallel.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cmd=queue.pl nj=40 diff --git a/egs/chime5/s5b/local/extract_vad_weights.sh b/egs/chime5/s5b/local/extract_vad_weights.sh index 250b021bd8f..d5019f100b1 100755 --- a/egs/chime5/s5b/local/extract_vad_weights.sh +++ b/egs/chime5/s5b/local/extract_vad_weights.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (Author: Daniel Povey, Vijayaditya Peddinti) # 2019 Vimal Manohar diff --git a/egs/chime5/s5b/local/nnet3/compare_wer.sh b/egs/chime5/s5b/local/nnet3/compare_wer.sh index fa627acd27b..6e4965dd819 100644 --- a/egs/chime5/s5b/local/nnet3/compare_wer.sh +++ b/egs/chime5/s5b/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/chime5/s5b/local/nnet3/decode.sh b/egs/chime5/s5b/local/nnet3/decode.sh index 8fa54e0d4a6..9c108430b94 100755 --- a/egs/chime5/s5b/local/nnet3/decode.sh +++ b/egs/chime5/s5b/local/nnet3/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (Author: Daniel Povey, Vijayaditya Peddinti) # 2019 Vimal Manohar diff --git a/egs/chime5/s5b/local/nnet3/run_ivector_common.sh b/egs/chime5/s5b/local/nnet3/run_ivector_common.sh index 3910e1812a3..ef7ce7c3534 100755 --- a/egs/chime5/s5b/local/nnet3/run_ivector_common.sh +++ b/egs/chime5/s5b/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/chime5/s5b/local/prepare_data.sh b/egs/chime5/s5b/local/prepare_data.sh index 98087322c38..ac07d02270f 100755 --- a/egs/chime5/s5b/local/prepare_data.sh +++ b/egs/chime5/s5b/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2017 Johns Hopkins University (Author: Shinji Watanabe, Yenda Trmal) # Apache 2.0 diff --git a/egs/chime5/s5b/local/prepare_dict.sh b/egs/chime5/s5b/local/prepare_dict.sh index 09083d0e795..1ea75af8a11 100755 --- a/egs/chime5/s5b/local/prepare_dict.sh +++ b/egs/chime5/s5b/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2018, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/chime5/s5b/local/reverberate_lat_dir.sh b/egs/chime5/s5b/local/reverberate_lat_dir.sh index f601a37c0e1..4a56d910489 100755 --- a/egs/chime5/s5b/local/reverberate_lat_dir.sh +++ b/egs/chime5/s5b/local/reverberate_lat_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Vimal Manohar # Apache 2.0 diff --git a/egs/chime5/s5b/local/run_beamformit.sh b/egs/chime5/s5b/local/run_beamformit.sh index aa3badd90d8..4ac45eb98db 100755 --- a/egs/chime5/s5b/local/run_beamformit.sh +++ b/egs/chime5/s5b/local/run_beamformit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Shinji Watanabe) diff --git a/egs/chime5/s5b/local/run_recog.sh b/egs/chime5/s5b/local/run_recog.sh index 989a5f95d01..4da9b1bf2fb 100755 --- a/egs/chime5/s5b/local/run_recog.sh +++ b/egs/chime5/s5b/local/run_recog.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Based mostly on the TED-LIUM and Switchboard recipe # diff --git a/egs/chime5/s5b/local/run_wpe.sh b/egs/chime5/s5b/local/run_wpe.sh index ed512e69aae..4c6ff0c7e71 100755 --- a/egs/chime5/s5b/local/run_wpe.sh +++ b/egs/chime5/s5b/local/run_wpe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # Apache 2.0 diff --git a/egs/chime5/s5b/local/score_for_submit.sh b/egs/chime5/s5b/local/score_for_submit.sh index 23121d68b93..c08fc022840 100755 --- a/egs/chime5/s5b/local/score_for_submit.sh +++ b/egs/chime5/s5b/local/score_for_submit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey, Yenda Trmal) # Apache 2.0 # diff --git a/egs/chime5/s5b/local/train_lms_srilm.sh b/egs/chime5/s5b/local/train_lms_srilm.sh index 5a1d56d24b3..3b19e58bb48 100755 --- a/egs/chime5/s5b/local/train_lms_srilm.sh +++ b/egs/chime5/s5b/local/train_lms_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017 Johns Hopkins University (Author: Yenda Trmal, Shinji Watanabe) # Apache 2.0 diff --git a/egs/chime5/s5b/run.sh b/egs/chime5/s5b/run.sh index 37bc5c2c94e..0358fab5269 100755 --- a/egs/chime5/s5b/run.sh +++ b/egs/chime5/s5b/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Based mostly on the TED-LIUM and Switchboard recipe # diff --git a/egs/chime6/s5_track1/local/add_location_to_uttid.sh b/egs/chime6/s5_track1/local/add_location_to_uttid.sh index 91bd0c0dd37..edb88c3f295 100755 --- a/egs/chime6/s5_track1/local/add_location_to_uttid.sh +++ b/egs/chime6/s5_track1/local/add_location_to_uttid.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Author: Ashish Arora # Apache 2.0 diff --git a/egs/chime6/s5_track1/local/chain/compare_wer.sh b/egs/chime6/s5_track1/local/chain/compare_wer.sh index cd6be14ed88..736a3177f17 100755 --- a/egs/chime6/s5_track1/local/chain/compare_wer.sh +++ b/egs/chime6/s5_track1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/chime6/s5_track1/local/chain/tuning/run_tdnn_1a.sh b/egs/chime6/s5_track1/local/chain/tuning/run_tdnn_1a.sh index daad37e2cd7..ca1de635168 100755 --- a/egs/chime6/s5_track1/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/chime6/s5_track1/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Set -e here so that we catch if any executable fails immediately set -euo pipefail diff --git a/egs/chime6/s5_track1/local/chain/tuning/run_tdnn_1b.sh b/egs/chime6/s5_track1/local/chain/tuning/run_tdnn_1b.sh index a9c797ffa33..031a3687262 100755 --- a/egs/chime6/s5_track1/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/chime6/s5_track1/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This factorized TDNN (TDNN-F) script is adapted from SWBD recipe 7q. # It uses resnet-style skip connections. diff --git a/egs/chime6/s5_track1/local/copy_lat_dir_parallel.sh b/egs/chime6/s5_track1/local/copy_lat_dir_parallel.sh index 82839604c9e..3e2c1b445b8 100755 --- a/egs/chime6/s5_track1/local/copy_lat_dir_parallel.sh +++ b/egs/chime6/s5_track1/local/copy_lat_dir_parallel.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cmd=queue.pl nj=40 diff --git a/egs/chime6/s5_track1/local/decode.sh b/egs/chime6/s5_track1/local/decode.sh index 7283a171000..cabf473535f 100755 --- a/egs/chime6/s5_track1/local/decode.sh +++ b/egs/chime6/s5_track1/local/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Based mostly on the TED-LIUM and Switchboard recipe # diff --git a/egs/chime6/s5_track1/local/extract_vad_weights.sh b/egs/chime6/s5_track1/local/extract_vad_weights.sh index 250b021bd8f..d5019f100b1 100755 --- a/egs/chime6/s5_track1/local/extract_vad_weights.sh +++ b/egs/chime6/s5_track1/local/extract_vad_weights.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (Author: Daniel Povey, Vijayaditya Peddinti) # 2019 Vimal Manohar diff --git a/egs/chime6/s5_track1/local/generate_chime6_data.sh b/egs/chime6/s5_track1/local/generate_chime6_data.sh index 93106cf605a..9ecdbe4208f 100755 --- a/egs/chime6/s5_track1/local/generate_chime6_data.sh +++ b/egs/chime6/s5_track1/local/generate_chime6_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019, Johns Hopkins University (Author: Shinji Watanabe) # Apache 2.0 diff --git a/egs/chime6/s5_track1/local/install_pb_chime5.sh b/egs/chime6/s5_track1/local/install_pb_chime5.sh index a151dc60f12..7863cbed437 100755 --- a/egs/chime6/s5_track1/local/install_pb_chime5.sh +++ b/egs/chime6/s5_track1/local/install_pb_chime5.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Installs pb_chime5 # miniconda should be installed in $HOME/miniconda3/ diff --git a/egs/chime6/s5_track1/local/nnet3/compare_wer.sh b/egs/chime6/s5_track1/local/nnet3/compare_wer.sh index 095e85cc338..4888de1f159 100755 --- a/egs/chime6/s5_track1/local/nnet3/compare_wer.sh +++ b/egs/chime6/s5_track1/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/chime6/s5_track1/local/nnet3/decode.sh b/egs/chime6/s5_track1/local/nnet3/decode.sh index 8fa54e0d4a6..9c108430b94 100755 --- a/egs/chime6/s5_track1/local/nnet3/decode.sh +++ b/egs/chime6/s5_track1/local/nnet3/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (Author: Daniel Povey, Vijayaditya Peddinti) # 2019 Vimal Manohar diff --git a/egs/chime6/s5_track1/local/nnet3/run_ivector_common.sh b/egs/chime6/s5_track1/local/nnet3/run_ivector_common.sh index cfa18cb7617..0afb983d2fc 100755 --- a/egs/chime6/s5_track1/local/nnet3/run_ivector_common.sh +++ b/egs/chime6/s5_track1/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/chime6/s5_track1/local/prepare_data.sh b/egs/chime6/s5_track1/local/prepare_data.sh index 3d1ffe859a5..b7cc56c4be4 100755 --- a/egs/chime6/s5_track1/local/prepare_data.sh +++ b/egs/chime6/s5_track1/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2017 Johns Hopkins University (Author: Shinji Watanabe, Yenda Trmal) # Apache 2.0 diff --git a/egs/chime6/s5_track1/local/prepare_dict.sh b/egs/chime6/s5_track1/local/prepare_dict.sh index 09083d0e795..1ea75af8a11 100755 --- a/egs/chime6/s5_track1/local/prepare_dict.sh +++ b/egs/chime6/s5_track1/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2018, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/chime6/s5_track1/local/reverberate_lat_dir.sh b/egs/chime6/s5_track1/local/reverberate_lat_dir.sh index f601a37c0e1..4a56d910489 100755 --- a/egs/chime6/s5_track1/local/reverberate_lat_dir.sh +++ b/egs/chime6/s5_track1/local/reverberate_lat_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Vimal Manohar # Apache 2.0 diff --git a/egs/chime6/s5_track1/local/run_beamformit.sh b/egs/chime6/s5_track1/local/run_beamformit.sh index aa3badd90d8..4ac45eb98db 100755 --- a/egs/chime6/s5_track1/local/run_beamformit.sh +++ b/egs/chime6/s5_track1/local/run_beamformit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Shinji Watanabe) diff --git a/egs/chime6/s5_track1/local/run_gss.sh b/egs/chime6/s5_track1/local/run_gss.sh index fbdc4af25d1..a9c01b20564 100755 --- a/egs/chime6/s5_track1/local/run_gss.sh +++ b/egs/chime6/s5_track1/local/run_gss.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Shinji Watanabe) diff --git a/egs/chime6/s5_track1/local/run_wpe.sh b/egs/chime6/s5_track1/local/run_wpe.sh index ed512e69aae..4c6ff0c7e71 100755 --- a/egs/chime6/s5_track1/local/run_wpe.sh +++ b/egs/chime6/s5_track1/local/run_wpe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # Apache 2.0 diff --git a/egs/chime6/s5_track1/local/score_for_submit.sh b/egs/chime6/s5_track1/local/score_for_submit.sh index ba7d6cde574..1d7564c6ee0 100755 --- a/egs/chime6/s5_track1/local/score_for_submit.sh +++ b/egs/chime6/s5_track1/local/score_for_submit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey, Yenda Trmal) # Copyright 2019 Johns Hopkins University (Author: Shinji Watanabe) # Apache 2.0 diff --git a/egs/chime6/s5_track1/local/train_lms_srilm.sh b/egs/chime6/s5_track1/local/train_lms_srilm.sh index 5a1d56d24b3..3b19e58bb48 100755 --- a/egs/chime6/s5_track1/local/train_lms_srilm.sh +++ b/egs/chime6/s5_track1/local/train_lms_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017 Johns Hopkins University (Author: Yenda Trmal, Shinji Watanabe) # Apache 2.0 diff --git a/egs/chime6/s5_track1/run.sh b/egs/chime6/s5_track1/run.sh index 0890a939faf..cbcb3cd2102 100755 --- a/egs/chime6/s5_track1/run.sh +++ b/egs/chime6/s5_track1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Based mostly on the TED-LIUM and Switchboard recipe # diff --git a/egs/chime6/s5_track2/local/decode.sh b/egs/chime6/s5_track2/local/decode.sh index 876cc0be126..3387a327194 100755 --- a/egs/chime6/s5_track2/local/decode.sh +++ b/egs/chime6/s5_track2/local/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This script decodes raw utterances through the entire pipeline: # Feature extraction -> SAD -> Diarization -> ASR diff --git a/egs/chime6/s5_track2/local/decode_diarized.sh b/egs/chime6/s5_track2/local/decode_diarized.sh index 2d0ad6a3b95..2ca43d8d03b 100755 --- a/egs/chime6/s5_track2/local/decode_diarized.sh +++ b/egs/chime6/s5_track2/local/decode_diarized.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Ashish Arora, Vimal Manohar # Apache 2.0. # This script takes an rttm file, and performs decoding on on a test directory. diff --git a/egs/chime6/s5_track2/local/diarize.sh b/egs/chime6/s5_track2/local/diarize.sh index 561d5fe7755..ffc11e7c637 100755 --- a/egs/chime6/s5_track2/local/diarize.sh +++ b/egs/chime6/s5_track2/local/diarize.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 David Snder # Apache 2.0. # diff --git a/egs/chime6/s5_track2/local/multispeaker_score.sh b/egs/chime6/s5_track2/local/multispeaker_score.sh index 74e089c4052..c7075d6cf14 100755 --- a/egs/chime6/s5_track2/local/multispeaker_score.sh +++ b/egs/chime6/s5_track2/local/multispeaker_score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Ashish Arora, Yusuke Fujita # Apache 2.0. # This script takes a reference and hypothesis text file, and performs diff --git a/egs/chime6/s5_track2/local/nnet3/xvector/prepare_feats.sh b/egs/chime6/s5_track2/local/nnet3/xvector/prepare_feats.sh index cb8fe2e6326..6b5ccd466c3 100755 --- a/egs/chime6/s5_track2/local/nnet3/xvector/prepare_feats.sh +++ b/egs/chime6/s5_track2/local/nnet3/xvector/prepare_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Apache 2.0. diff --git a/egs/chime6/s5_track2/local/nnet3/xvector/prepare_feats_for_egs.sh b/egs/chime6/s5_track2/local/nnet3/xvector/prepare_feats_for_egs.sh index dcdbe1b1593..326b6dbb9fa 100755 --- a/egs/chime6/s5_track2/local/nnet3/xvector/prepare_feats_for_egs.sh +++ b/egs/chime6/s5_track2/local/nnet3/xvector/prepare_feats_for_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Apache 2.0. diff --git a/egs/chime6/s5_track2/local/nnet3/xvector/tuning/run_xvector_1a.sh b/egs/chime6/s5_track2/local/nnet3/xvector/tuning/run_xvector_1a.sh index 94fc7e7682f..2189e406a7e 100755 --- a/egs/chime6/s5_track2/local/nnet3/xvector/tuning/run_xvector_1a.sh +++ b/egs/chime6/s5_track2/local/nnet3/xvector/tuning/run_xvector_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 David Snyder # 2018 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2018 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/chime6/s5_track2/local/prepare_data.sh b/egs/chime6/s5_track2/local/prepare_data.sh index c6b8121dab0..8bd2530d6db 100755 --- a/egs/chime6/s5_track2/local/prepare_data.sh +++ b/egs/chime6/s5_track2/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2017 Johns Hopkins University (Author: Shinji Watanabe, Yenda Trmal) # Apache 2.0 diff --git a/egs/chime6/s5_track2/local/score_for_submit.sh b/egs/chime6/s5_track2/local/score_for_submit.sh index 087a078316a..71a3a4dd607 100755 --- a/egs/chime6/s5_track2/local/score_for_submit.sh +++ b/egs/chime6/s5_track2/local/score_for_submit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Apache 2.0 # # This script provides CHiME-6 challenge track 2 submission scores. diff --git a/egs/chime6/s5_track2/local/segmentation/detect_speech_activity.sh b/egs/chime6/s5_track2/local/segmentation/detect_speech_activity.sh index 91d52b39269..c9719d472f3 100755 --- a/egs/chime6/s5_track2/local/segmentation/detect_speech_activity.sh +++ b/egs/chime6/s5_track2/local/segmentation/detect_speech_activity.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016-17 Vimal Manohar # 2017 Nagendra Kumar Goel diff --git a/egs/chime6/s5_track2/local/segmentation/tuning/train_lstm_sad_1a.sh b/egs/chime6/s5_track2/local/segmentation/tuning/train_lstm_sad_1a.sh index 5701424869a..7ea39f45639 100755 --- a/egs/chime6/s5_track2/local/segmentation/tuning/train_lstm_sad_1a.sh +++ b/egs/chime6/s5_track2/local/segmentation/tuning/train_lstm_sad_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Nagendra Kumar Goel # 2018 Vimal Manohar diff --git a/egs/chime6/s5_track2/local/segmentation/tuning/train_stats_sad_1a.sh b/egs/chime6/s5_track2/local/segmentation/tuning/train_stats_sad_1a.sh index bb985462f49..83bcd587d88 100755 --- a/egs/chime6/s5_track2/local/segmentation/tuning/train_stats_sad_1a.sh +++ b/egs/chime6/s5_track2/local/segmentation/tuning/train_stats_sad_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Nagendra Kumar Goel # 2018 Vimal Manohar diff --git a/egs/chime6/s5_track2/local/train_diarizer.sh b/egs/chime6/s5_track2/local/train_diarizer.sh index 71918e7cabc..845ac7840d5 100755 --- a/egs/chime6/s5_track2/local/train_diarizer.sh +++ b/egs/chime6/s5_track2/local/train_diarizer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright # 2019 David Snyder # Apache 2.0. diff --git a/egs/chime6/s5_track2/local/train_sad.sh b/egs/chime6/s5_track2/local/train_sad.sh index e12a0cad694..cbaf3dfc5de 100755 --- a/egs/chime6/s5_track2/local/train_sad.sh +++ b/egs/chime6/s5_track2/local/train_sad.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Nagendra Kumar Goel # 2017 Vimal Manohar diff --git a/egs/chime6/s5_track2/run.sh b/egs/chime6/s5_track2/run.sh index 1350b8e14d5..c1eeed1026e 100755 --- a/egs/chime6/s5_track2/run.sh +++ b/egs/chime6/s5_track2/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Chime-6 Track 2 baseline. Based mostly on the Chime-5 recipe, with the exception # that we are required to perform speech activity detection and speaker diff --git a/egs/cifar/v1/image/copy_data_dir.sh b/egs/cifar/v1/image/copy_data_dir.sh index c923f5cc07a..dd9fdbc086a 100755 --- a/egs/cifar/v1/image/copy_data_dir.sh +++ b/egs/cifar/v1/image/copy_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 diff --git a/egs/cifar/v1/image/fix_data_dir.sh b/egs/cifar/v1/image/fix_data_dir.sh index b85623b6e85..20f3de5dec6 100755 --- a/egs/cifar/v1/image/fix_data_dir.sh +++ b/egs/cifar/v1/image/fix_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script makes sure that only the segments present in # all of "feats.scp", "images.scp" [if present], segments [if present] diff --git a/egs/cifar/v1/image/validate_data_dir.sh b/egs/cifar/v1/image/validate_data_dir.sh index e4db9c2c92c..bf56c17632a 100755 --- a/egs/cifar/v1/image/validate_data_dir.sh +++ b/egs/cifar/v1/image/validate_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash no_feats=false diff --git a/egs/cifar/v1/local/nnet3/compare.sh b/egs/cifar/v1/local/nnet3/compare.sh index c5208c38ac0..8524efe9f60 100755 --- a/egs/cifar/v1/local/nnet3/compare.sh +++ b/egs/cifar/v1/local/nnet3/compare.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing trained models between systems. # e.g. local/nnet3/compare.sh exp/resnet1{b,c}_cifar10 diff --git a/egs/cifar/v1/local/nnet3/tuning/run_cnn_1a.sh b/egs/cifar/v1/local/nnet3/tuning/run_cnn_1a.sh index 3854bf24d82..94565e6588a 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_cnn_1a.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # note: the final 'valid accuracy' (0.69) is actually the test accuracy. diff --git a/egs/cifar/v1/local/nnet3/tuning/run_cnn_1b.sh b/egs/cifar/v1/local/nnet3/tuning/run_cnn_1b.sh index 907682454b9..6929eff139e 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_cnn_1b.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_cnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1b is like 1a but a smaller model. diff --git a/egs/cifar/v1/local/nnet3/tuning/run_cnn_1c.sh b/egs/cifar/v1/local/nnet3/tuning/run_cnn_1c.sh index 6cb94df49a0..c617145104e 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_cnn_1c.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_cnn_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1c uses dropout with fewer but larger layers diff --git a/egs/cifar/v1/local/nnet3/tuning/run_cnn_1d.sh b/egs/cifar/v1/local/nnet3/tuning/run_cnn_1d.sh index 6baad31fcbb..864f2cda711 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_cnn_1d.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_cnn_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1d is as 1c but adding batch-norm to all convolutional layers. # batch-norm helps (0.78 -> 0.8). diff --git a/egs/cifar/v1/local/nnet3/tuning/run_cnn_1e.sh b/egs/cifar/v1/local/nnet3/tuning/run_cnn_1e.sh index a4dbc949d56..4c30016f656 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_cnn_1e.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_cnn_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1e is as 1d but making the time subsampling symmetric with the # height subsampling (unfortunately this symmetry is not very visible diff --git a/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1a.sh b/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1a.sh index 1e3a6e10760..1f77a874ee7 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1a.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # aug_1a is as 1a but with data augmentation diff --git a/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1b.sh b/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1b.sh index 8e5f83ea2d5..2ae51a6320a 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1b.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_cnn_aug_1b is the same as run_cnn_1e but with data augmentation. diff --git a/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1c.sh b/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1c.sh index 184ea0fa306..28e3006bded 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1c.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # aug_1c is the same as aug_1b but with many more epochs and smaller # final learning rate diff --git a/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1d.sh b/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1d.sh index 1eb448149ba..5c7a89113e6 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1d.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_cnn_aug_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1d is as 1c but setting num-minibatches-history=40. diff --git a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1a.sh b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1a.sh index 8f41bb96c07..f5fc96a10f4 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1a.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_resnet_1a.sh is a quite well-performing resnet. # It includes a form of shrinkage that approximates l2 regularization. diff --git a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1b.sh b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1b.sh index f8f3b563e6c..3d4d4bfc3e3 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1b.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1b is as 1a but using more epochs: 100 instead of 60. # This helps a bit. diff --git a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1c.sh b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1c.sh index 0708b3d6eaa..34c487e4d00 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1c.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1c is as 1b but setting num-minibatches-history=40.0 in the configs, # so the Fisher matrix estimates change less fast. diff --git a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1d.sh b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1d.sh index 2d1ba279284..635dba70800 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1d.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1d is as 1c but adding rotation in image augmentation. diff --git a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1e.sh b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1e.sh index 0b6bd5ce2a9..35615985621 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1e.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1e is as 1d but with more filters and epochs. diff --git a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1f.sh b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1f.sh index 3bb3316441a..5f9fe9d692a 100755 --- a/egs/cifar/v1/local/nnet3/tuning/run_resnet_1f.sh +++ b/egs/cifar/v1/local/nnet3/tuning/run_resnet_1f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1f is as 1e but with l2-regularize instead of proportional shrink diff --git a/egs/cifar/v1/local/prepare_data.sh b/egs/cifar/v1/local/prepare_data.sh index f73cbe41e3c..6eb44668217 100755 --- a/egs/cifar/v1/local/prepare_data.sh +++ b/egs/cifar/v1/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (author: Hossein Hadian) # Apache 2.0 diff --git a/egs/cifar/v1/run.sh b/egs/cifar/v1/run.sh index 084a8a53041..a180920ac4d 100755 --- a/egs/cifar/v1/run.sh +++ b/egs/cifar/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 diff --git a/egs/cmu_cslu_kids/s5/local/chain/compare_wer.sh b/egs/cmu_cslu_kids/s5/local/chain/compare_wer.sh index 8ee5db2326a..411d2691bb9 100755 --- a/egs/cmu_cslu_kids/s5/local/chain/compare_wer.sh +++ b/egs/cmu_cslu_kids/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/cmu_cslu_kids/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/cmu_cslu_kids/s5/local/chain/tuning/run_tdnn_1a.sh index 51e0123d0f2..ca08fd4ada8 100755 --- a/egs/cmu_cslu_kids/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/cmu_cslu_kids/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Johns Hopkins University (author: Daniel Povey) # 2017-2018 Yiming Wang diff --git a/egs/cmu_cslu_kids/s5/local/download_cmu_dict.sh b/egs/cmu_cslu_kids/s5/local/download_cmu_dict.sh index 0248dd0cae1..3f58fd23c93 100755 --- a/egs/cmu_cslu_kids/s5/local/download_cmu_dict.sh +++ b/egs/cmu_cslu_kids/s5/local/download_cmu_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Fei Wu set -eu # Adapted from the local/prepare_dict script in diff --git a/egs/cmu_cslu_kids/s5/local/download_lm.sh b/egs/cmu_cslu_kids/s5/local/download_lm.sh index 382f313df7c..129ca1edbe3 100755 --- a/egs/cmu_cslu_kids/s5/local/download_lm.sh +++ b/egs/cmu_cslu_kids/s5/local/download_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/cmu_cslu_kids/s5/local/format_lms.sh b/egs/cmu_cslu_kids/s5/local/format_lms.sh index b530f61d2d9..d1a18bada88 100755 --- a/egs/cmu_cslu_kids/s5/local/format_lms.sh +++ b/egs/cmu_cslu_kids/s5/local/format_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/cmu_cslu_kids/s5/local/nnet3/compare_wer.sh b/egs/cmu_cslu_kids/s5/local/nnet3/compare_wer.sh index 095e85cc338..4888de1f159 100755 --- a/egs/cmu_cslu_kids/s5/local/nnet3/compare_wer.sh +++ b/egs/cmu_cslu_kids/s5/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/cmu_cslu_kids/s5/local/nnet3/run_ivector_common.sh b/egs/cmu_cslu_kids/s5/local/nnet3/run_ivector_common.sh index c695f2c9f1c..4a7d3a8913a 100755 --- a/egs/cmu_cslu_kids/s5/local/nnet3/run_ivector_common.sh +++ b/egs/cmu_cslu_kids/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh b/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh index de858973c98..2db79ce2734 100755 --- a/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh +++ b/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is a basic TDNN+LSTM nnet3 experiment. diff --git a/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1b.sh b/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1b.sh index ba4ecc268df..ee50322fdb1 100755 --- a/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1b.sh +++ b/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is like 1a, but adding dropout. It's definitely helpful, # and you can see in the objf values that the train-test difference diff --git a/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1c.sh b/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1c.sh index 74df56b0537..cc21d2c8dab 100755 --- a/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1c.sh +++ b/egs/cmu_cslu_kids/s5/local/nnet3/tuning/run_tdnn_lstm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1c is like 1b, but changing renorm to batchnorm and adding l2 regularization. diff --git a/egs/cmu_cslu_kids/s5/local/prepare_grammar.sh b/egs/cmu_cslu_kids/s5/local/prepare_grammar.sh index 5b26615eaf7..542447d8126 100755 --- a/egs/cmu_cslu_kids/s5/local/prepare_grammar.sh +++ b/egs/cmu_cslu_kids/s5/local/prepare_grammar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/cmu_cslu_kids/s5/local/score.sh b/egs/cmu_cslu_kids/s5/local/score.sh index c812199fc98..cb5bbb7277b 100755 --- a/egs/cmu_cslu_kids/s5/local/score.sh +++ b/egs/cmu_cslu_kids/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/cmu_cslu_kids/s5/local/subset_dataset.sh b/egs/cmu_cslu_kids/s5/local/subset_dataset.sh index 050128247a4..f8936b64c97 100755 --- a/egs/cmu_cslu_kids/s5/local/subset_dataset.sh +++ b/egs/cmu_cslu_kids/s5/local/subset_dataset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Luminar Technologies, Inc. (author: Daniel Galvez) # Apache 2.0 diff --git a/egs/cmu_cslu_kids/s5/local/train_lms.sh b/egs/cmu_cslu_kids/s5/local/train_lms.sh index 0807210be18..a5aaf415e44 100755 --- a/egs/cmu_cslu_kids/s5/local/train_lms.sh +++ b/egs/cmu_cslu_kids/s5/local/train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script trains LMs on the WSJ LM-training data. # It requires that you have already run wsj_extend_dict.sh, diff --git a/egs/cmu_cslu_kids/s5/local/vtln.sh b/egs/cmu_cslu_kids/s5/local/vtln.sh index 0ca179ce89f..0f3f0d375d3 100755 --- a/egs/cmu_cslu_kids/s5/local/vtln.sh +++ b/egs/cmu_cslu_kids/s5/local/vtln.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University # 2019 Fei Wu diff --git a/egs/cnceleb/v1/local/make_cnceleb.sh b/egs/cnceleb/v1/local/make_cnceleb.sh index 14d44d6d3d0..620c0dfe76a 100755 --- a/egs/cnceleb/v1/local/make_cnceleb.sh +++ b/egs/cnceleb/v1/local/make_cnceleb.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Ignacio Viñals # 2017-2018 David Snyder # 2019 Jiawen Kang diff --git a/egs/cnceleb/v1/run.sh b/egs/cnceleb/v1/run.sh index 0ca7ed8f277..0afeddb8ffd 100755 --- a/egs/cnceleb/v1/run.sh +++ b/egs/cnceleb/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) # 2017-2018 David Snyder diff --git a/egs/commonvoice/s5/local/chain/compare_wer.sh b/egs/commonvoice/s5/local/chain/compare_wer.sh index 133b6b5d250..217ec057a1a 100755 --- a/egs/commonvoice/s5/local/chain/compare_wer.sh +++ b/egs/commonvoice/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copied from egs/mini_librispeech/s5/local/chain/compare_wer.sh (commit 87d95c5efff7da3b6f04e719a96de4204a367f8b) diff --git a/egs/commonvoice/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/commonvoice/s5/local/chain/tuning/run_tdnn_1a.sh index d4acd0fed4b..68cb129d9ed 100755 --- a/egs/commonvoice/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/commonvoice/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Adapted from egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1e.sh diff --git a/egs/commonvoice/s5/local/download_and_untar.sh b/egs/commonvoice/s5/local/download_and_untar.sh index 5590b36486d..23650b1d475 100755 --- a/egs/commonvoice/s5/local/download_and_untar.sh +++ b/egs/commonvoice/s5/local/download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # 2017 Luminar Technologies, Inc. (author: Daniel Galvez) diff --git a/egs/commonvoice/s5/local/nnet3/compare_wer.sh b/egs/commonvoice/s5/local/nnet3/compare_wer.sh index 17cbe1bbcef..5e3c0b0f9bd 100755 --- a/egs/commonvoice/s5/local/nnet3/compare_wer.sh +++ b/egs/commonvoice/s5/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copied from egs/mini_librispeech/s5/local/nnet3/compare_wer.sh (commit 87d95c5efff7da3b6f04e719a96de4204a367f8b) diff --git a/egs/commonvoice/s5/local/nnet3/run_ivector_common.sh b/egs/commonvoice/s5/local/nnet3/run_ivector_common.sh index 5560120677e..ab43a277218 100755 --- a/egs/commonvoice/s5/local/nnet3/run_ivector_common.sh +++ b/egs/commonvoice/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Adapted from egs/mini_librispeech/s5/local/nnet3/run_ivector_common.sh (commit 92c99ee51caeba4be7c5ab39ea7c1d6100f3d67b) diff --git a/egs/commonvoice/s5/local/prepare_dict.sh b/egs/commonvoice/s5/local/prepare_dict.sh index cdfffe42080..670dc972d26 100755 --- a/egs/commonvoice/s5/local/prepare_dict.sh +++ b/egs/commonvoice/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # 2017 Ewald Enzinger diff --git a/egs/commonvoice/s5/local/prepare_lm.sh b/egs/commonvoice/s5/local/prepare_lm.sh index 8bd689ac73e..86d9df1a996 100755 --- a/egs/commonvoice/s5/local/prepare_lm.sh +++ b/egs/commonvoice/s5/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # 2017 Ewald Enzinger diff --git a/egs/commonvoice/s5/run.sh b/egs/commonvoice/s5/run.sh index 3e0e46c89f1..6065857ade2 100755 --- a/egs/commonvoice/s5/run.sh +++ b/egs/commonvoice/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Recipe for Mozilla Common Voice corpus v1 # diff --git a/egs/csj/s5/local/chain/compare_wer.sh b/egs/csj/s5/local/chain/compare_wer.sh index d7017a51a71..3076d394f41 100644 --- a/egs/csj/s5/local/chain/compare_wer.sh +++ b/egs/csj/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn{1a,1b} diff --git a/egs/csj/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/csj/s5/local/chain/tuning/run_tdnn_1a.sh index 75ceb80e3e0..b622b9eb262 100755 --- a/egs/csj/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/csj/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is a basic TDNN experiment.(As the speed_perturbation is done by default, # the _sp suffix on the directory name is removed.) diff --git a/egs/csj/s5/local/csj_data_prep.sh b/egs/csj/s5/local/csj_data_prep.sh index 69e2865e316..b3fe966a4e2 100755 --- a/egs/csj/s5/local/csj_data_prep.sh +++ b/egs/csj/s5/local/csj_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Tokyo Institute of Technology (Authors: Takafumi Moriya and Takahiro Shinozaki) # 2015 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe) diff --git a/egs/csj/s5/local/csj_eval_data_prep.sh b/egs/csj/s5/local/csj_eval_data_prep.sh index c452ee9f239..18d2fa5422c 100755 --- a/egs/csj/s5/local/csj_eval_data_prep.sh +++ b/egs/csj/s5/local/csj_eval_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Tokyo Institute of Technology (Authors: Takafumi Moriya and Takahiro Shinozaki) # 2015 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe) diff --git a/egs/csj/s5/local/csj_prepare_dict.sh b/egs/csj/s5/local/csj_prepare_dict.sh index 5620b7d99af..a2ff0c2dcc7 100755 --- a/egs/csj/s5/local/csj_prepare_dict.sh +++ b/egs/csj/s5/local/csj_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Making dictionary using CSJ data with morpheme analysis. # from the one in Kaldi s5 recipe in that it uses lower-case --Arnab (Jan 2013) diff --git a/egs/csj/s5/local/csj_run_rnnlm.sh b/egs/csj/s5/local/csj_run_rnnlm.sh index b3cb79478b1..53d50acfcc1 100755 --- a/egs/csj/s5/local/csj_run_rnnlm.sh +++ b/egs/csj/s5/local/csj_run_rnnlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Tokyo Institute of Technology (Authors: Tomohiro Tanaka, Takafumi Moriya and Takahiro Shinozaki) # 2016 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe) diff --git a/egs/csj/s5/local/nnet/run_dnn.sh b/egs/csj/s5/local/nnet/run_dnn.sh index 54b1da88fd3..d615b55674f 100755 --- a/egs/csj/s5/local/nnet/run_dnn.sh +++ b/egs/csj/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/csj/s5/local/nnet/run_dnn_tandem_uc.sh b/egs/csj/s5/local/nnet/run_dnn_tandem_uc.sh index 297aed1f486..a405f13095b 100755 --- a/egs/csj/s5/local/nnet/run_dnn_tandem_uc.sh +++ b/egs/csj/s5/local/nnet/run_dnn_tandem_uc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 2016 Modified by Takafumi Moriya at Tokyo Institute of Technology # for Japanese speech recognition using CSJ. diff --git a/egs/csj/s5/local/nnet/run_lstm.sh b/egs/csj/s5/local/nnet/run_lstm.sh index dc0f40dec24..17af4a1ed85 100755 --- a/egs/csj/s5/local/nnet/run_lstm.sh +++ b/egs/csj/s5/local/nnet/run_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 2016 Modified by Takafumi Moriya at Tokyo Institute of Technology # for Japanese speech recognition using CSJ. diff --git a/egs/csj/s5/local/nnet3/run_ivector_common.sh b/egs/csj/s5/local/nnet3/run_ivector_common.sh index 9c6b02b6e59..8ea140869fd 100755 --- a/egs/csj/s5/local/nnet3/run_ivector_common.sh +++ b/egs/csj/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/csj/s5/local/nnet3/run_tdnn.sh b/egs/csj/s5/local/nnet3/run_tdnn.sh index e656b825517..f14f216d51b 100755 --- a/egs/csj/s5/local/nnet3/run_tdnn.sh +++ b/egs/csj/s5/local/nnet3/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is modified from swbd/s5c/local/nnet3/run_tdnn.sh # Tomohiro Tanaka 15/05/2016 diff --git a/egs/csj/s5/local/run_mmi.sh b/egs/csj/s5/local/run_mmi.sh index 1f844f697c3..7f44b89633a 100644 --- a/egs/csj/s5/local/run_mmi.sh +++ b/egs/csj/s5/local/run_mmi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . cmd.sh diff --git a/egs/csj/s5/local/run_sgmm2.sh b/egs/csj/s5/local/run_sgmm2.sh index c66b43c4f7f..66477a9c7b1 100755 --- a/egs/csj/s5/local/run_sgmm2.sh +++ b/egs/csj/s5/local/run_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh . ./path.sh diff --git a/egs/csj/s5/local/score_csj.sh b/egs/csj/s5/local/score_csj.sh index 91cc944e0b5..92e28adf8b3 100755 --- a/egs/csj/s5/local/score_csj.sh +++ b/egs/csj/s5/local/score_csj.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # Modified by Takafumi Moriya for Japanese speech recognition using CSJ. diff --git a/egs/csj/s5/run.sh b/egs/csj/s5/run.sh index aaf2e51313e..dde2197666b 100755 --- a/egs/csj/s5/run.sh +++ b/egs/csj/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Tokyo Institute of Technology # (Authors: Takafumi Moriya, Tomohiro Tanaka and Takahiro Shinozaki) diff --git a/egs/dihard_2018/v1/local/make_dihard_2018_dev.sh b/egs/dihard_2018/v1/local/make_dihard_2018_dev.sh index cc48e2e792a..161bcd4d5f2 100755 --- a/egs/dihard_2018/v1/local/make_dihard_2018_dev.sh +++ b/egs/dihard_2018/v1/local/make_dihard_2018_dev.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Zili Huang # Apache 2.0. # diff --git a/egs/dihard_2018/v1/local/make_dihard_2018_eval.sh b/egs/dihard_2018/v1/local/make_dihard_2018_eval.sh index 0a461c635ec..86bb0c31bb7 100755 --- a/egs/dihard_2018/v1/local/make_dihard_2018_eval.sh +++ b/egs/dihard_2018/v1/local/make_dihard_2018_eval.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Zili Huang # Apache 2.0. # diff --git a/egs/dihard_2018/v1/local/prepare_feats.sh b/egs/dihard_2018/v1/local/prepare_feats.sh index 9fa70a2d91e..d9e0c2b49c9 100755 --- a/egs/dihard_2018/v1/local/prepare_feats.sh +++ b/egs/dihard_2018/v1/local/prepare_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Apache 2.0. diff --git a/egs/dihard_2018/v1/run.sh b/egs/dihard_2018/v1/run.sh index eb23ac500cd..be7cc9a6df6 100755 --- a/egs/dihard_2018/v1/run.sh +++ b/egs/dihard_2018/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) # 2017-2018 David Snyder diff --git a/egs/dihard_2018/v2/local/nnet3/xvector/prepare_feats.sh b/egs/dihard_2018/v2/local/nnet3/xvector/prepare_feats.sh index 4ad2c42d8b9..19d202bc0dd 100755 --- a/egs/dihard_2018/v2/local/nnet3/xvector/prepare_feats.sh +++ b/egs/dihard_2018/v2/local/nnet3/xvector/prepare_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Apache 2.0. diff --git a/egs/dihard_2018/v2/local/nnet3/xvector/prepare_feats_for_egs.sh b/egs/dihard_2018/v2/local/nnet3/xvector/prepare_feats_for_egs.sh index 1d8ac6153e7..cf0519aded9 100755 --- a/egs/dihard_2018/v2/local/nnet3/xvector/prepare_feats_for_egs.sh +++ b/egs/dihard_2018/v2/local/nnet3/xvector/prepare_feats_for_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copied from egs/sre16/v1/local/nnet3/xvector/prepare_feats_for_egs.sh (commit 3ea534070fd2cccd2e4ee21772132230033022ce). # diff --git a/egs/dihard_2018/v2/local/nnet3/xvector/tuning/run_xvector_1a.sh b/egs/dihard_2018/v2/local/nnet3/xvector/tuning/run_xvector_1a.sh index 4ee472b1c71..7e39b8a2110 100755 --- a/egs/dihard_2018/v2/local/nnet3/xvector/tuning/run_xvector_1a.sh +++ b/egs/dihard_2018/v2/local/nnet3/xvector/tuning/run_xvector_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 David Snyder # 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/dihard_2018/v2/run.sh b/egs/dihard_2018/v2/run.sh index 6cd6630a838..542fc0930dd 100755 --- a/egs/dihard_2018/v2/run.sh +++ b/egs/dihard_2018/v2/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) # 2017-2018 David Snyder diff --git a/egs/fame/s5/local/fame_data_prep.sh b/egs/fame/s5/local/fame_data_prep.sh index 11c28c1d130..fb5ae71e4bf 100755 --- a/egs/fame/s5/local/fame_data_prep.sh +++ b/egs/fame/s5/local/fame_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 Sarah Flora Juan # Copyright 2016 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2016 Radboud University (Author: Emre Yilmaz) diff --git a/egs/fame/s5/local/fame_dict_prep.sh b/egs/fame/s5/local/fame_dict_prep.sh index 95b5d846e6a..2202b1adf91 100755 --- a/egs/fame/s5/local/fame_dict_prep.sh +++ b/egs/fame/s5/local/fame_dict_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 Sarah Flora Juan # Copyright 2016 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2016 Radboud University (Author: Emre Yilmaz) diff --git a/egs/fame/s5/local/nnet/run_dnn.sh b/egs/fame/s5/local/nnet/run_dnn.sh index ca1efa5e0ac..80c877dc50e 100755 --- a/egs/fame/s5/local/nnet/run_dnn.sh +++ b/egs/fame/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Copyright 2016 Radboud University (Author: Emre Yilmaz) diff --git a/egs/fame/s5/local/nnet/run_dnn_fbank.sh b/egs/fame/s5/local/nnet/run_dnn_fbank.sh index a81449ffbcf..9d068c71455 100755 --- a/egs/fame/s5/local/nnet/run_dnn_fbank.sh +++ b/egs/fame/s5/local/nnet/run_dnn_fbank.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Copyright 2016 Radboud University (Author: Emre Yilmaz) diff --git a/egs/fame/s5/run.sh b/egs/fame/s5/run.sh index de6fe46b7c4..a8ed7bbd917 100755 --- a/egs/fame/s5/run.sh +++ b/egs/fame/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh . ./path.sh diff --git a/egs/fame/v1/local/dnn/run_nnet2_common.sh b/egs/fame/v1/local/dnn/run_nnet2_common.sh index df5804d7d78..54223c76d71 100755 --- a/egs/fame/v1/local/dnn/run_nnet2_common.sh +++ b/egs/fame/v1/local/dnn/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Make the features. diff --git a/egs/fame/v1/local/dnn/run_nnet2_multisplice.sh b/egs/fame/v1/local/dnn/run_nnet2_multisplice.sh index bba54c5583f..c9523f0e920 100755 --- a/egs/fame/v1/local/dnn/run_nnet2_multisplice.sh +++ b/egs/fame/v1/local/dnn/run_nnet2_multisplice.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Radboud University (Author: Emre Yilmaz) # # This script is based on run_nnet2_multisplice.sh in diff --git a/egs/fame/v1/local/dnn/train_dnn.sh b/egs/fame/v1/local/dnn/train_dnn.sh index 7155f32d6a4..c211feb7173 100755 --- a/egs/fame/v1/local/dnn/train_dnn.sh +++ b/egs/fame/v1/local/dnn/train_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Radboud University (Author: Emre Yilmaz) . ./cmd.sh diff --git a/egs/fame/v1/local/fame_data_prep.sh b/egs/fame/v1/local/fame_data_prep.sh index bbe30976dd5..996b32fe82d 100755 --- a/egs/fame/v1/local/fame_data_prep.sh +++ b/egs/fame/v1/local/fame_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 Sarah Flora Juan # Copyright 2016 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2017 Radboud University (Author: Emre Yilmaz) diff --git a/egs/fame/v1/local/fame_dict_prep.sh b/egs/fame/v1/local/fame_dict_prep.sh index 122c34c837b..52c1f5d32f4 100755 --- a/egs/fame/v1/local/fame_dict_prep.sh +++ b/egs/fame/v1/local/fame_dict_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 Sarah Flora Juan # Copyright 2016 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2016 Radboud University (Author: Emre Yilmaz) diff --git a/egs/fame/v1/local/plda_scoring.sh b/egs/fame/v1/local/plda_scoring.sh index 63d4a4f0d4c..d3e9c0c0e9d 100755 --- a/egs/fame/v1/local/plda_scoring.sh +++ b/egs/fame/v1/local/plda_scoring.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Apache 2.0. # diff --git a/egs/fame/v1/local/prepare_train.sh b/egs/fame/v1/local/prepare_train.sh index 0a3979dd6a7..c1d91b85645 100755 --- a/egs/fame/v1/local/prepare_train.sh +++ b/egs/fame/v1/local/prepare_train.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 Sarah Flora Juan # Copyright 2016 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2017 Radboud University (Author: Emre Yilmaz) diff --git a/egs/fame/v1/local/scoring_common.sh b/egs/fame/v1/local/scoring_common.sh index 63950ae5711..0d9f74f6600 100755 --- a/egs/fame/v1/local/scoring_common.sh +++ b/egs/fame/v1/local/scoring_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Copyright 2017 Emre Yilmaz (Adapted) # Apache 2.0. diff --git a/egs/fame/v1/run.sh b/egs/fame/v1/run.sh index 34c425adcf7..8a1c6334e55 100755 --- a/egs/fame/v1/run.sh +++ b/egs/fame/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # 2015 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2015 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/fame/v2/run.sh b/egs/fame/v2/run.sh index 43fb5a275de..d3bb35a64f4 100755 --- a/egs/fame/v2/run.sh +++ b/egs/fame/v2/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 David Snyder # 2015 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2015 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/farsdat/s5/local/farsdat_data_prep.sh b/egs/farsdat/s5/local/farsdat_data_prep.sh index 0a086c535d2..9c114501537 100755 --- a/egs/farsdat/s5/local/farsdat_data_prep.sh +++ b/egs/farsdat/s5/local/farsdat_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Univercity of Tehran (Author: Bagher BabaAli) diff --git a/egs/farsdat/s5/local/farsdat_format_data.sh b/egs/farsdat/s5/local/farsdat_format_data.sh index 8e565f11fd0..2415f163bf8 100644 --- a/egs/farsdat/s5/local/farsdat_format_data.sh +++ b/egs/farsdat/s5/local/farsdat_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 (Author: Daniel Povey, Bagher BabaAli) # Apache 2.0 diff --git a/egs/farsdat/s5/local/farsdat_norm_trans.sh b/egs/farsdat/s5/local/farsdat_norm_trans.sh index 369843c95a6..7bb53f1aeed 100755 --- a/egs/farsdat/s5/local/farsdat_norm_trans.sh +++ b/egs/farsdat/s5/local/farsdat_norm_trans.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 University of Tehran (Author: Bagher BabaAli) # Apache 2.0. diff --git a/egs/farsdat/s5/local/farsdat_prepare_dict.sh b/egs/farsdat/s5/local/farsdat_prepare_dict.sh index af03e4f44b3..6d2730b6937 100755 --- a/egs/farsdat/s5/local/farsdat_prepare_dict.sh +++ b/egs/farsdat/s5/local/farsdat_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 (Authors: Daniel Povey, Bagher BabaAli) diff --git a/egs/farsdat/s5/local/farsdat_prepare_lm.sh b/egs/farsdat/s5/local/farsdat_prepare_lm.sh index c04f756d438..6476fa3b168 100755 --- a/egs/farsdat/s5/local/farsdat_prepare_lm.sh +++ b/egs/farsdat/s5/local/farsdat_prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/farsdat/s5/local/nnet/run_dnn.sh b/egs/farsdat/s5/local/nnet/run_dnn.sh index a02894a7322..19f49ad6bd2 100755 --- a/egs/farsdat/s5/local/nnet/run_dnn.sh +++ b/egs/farsdat/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/farsdat/s5/local/score_sclite.sh b/egs/farsdat/s5/local/score_sclite.sh index 6269f7c494b..90cb91ad33c 100755 --- a/egs/farsdat/s5/local/score_sclite.sh +++ b/egs/farsdat/s5/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/farsdat/s5/run.sh b/egs/farsdat/s5/run.sh index 4c3d3c5882b..a08bd8af308 100755 --- a/egs/farsdat/s5/run.sh +++ b/egs/farsdat/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 University of Tehran (Author: Bagher BabaAli) diff --git a/egs/fisher_callhome_spanish/s5/local/callhome_data_prep.sh b/egs/fisher_callhome_spanish/s5/local/callhome_data_prep.sh index f61b0fa9519..31202c5a406 100755 --- a/egs/fisher_callhome_spanish/s5/local/callhome_data_prep.sh +++ b/egs/fisher_callhome_spanish/s5/local/callhome_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Gaurav Kumar. Apache 2.0 # The input is the Callhome Spanish Dataset. (*.sph files) diff --git a/egs/fisher_callhome_spanish/s5/local/chain/run_tdnn_1g.sh b/egs/fisher_callhome_spanish/s5/local/chain/run_tdnn_1g.sh index 7f407552c2e..087f95c5392 100755 --- a/egs/fisher_callhome_spanish/s5/local/chain/run_tdnn_1g.sh +++ b/egs/fisher_callhome_spanish/s5/local/chain/run_tdnn_1g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1g is like 1f but upgrading to a "resnet-style TDNN-F model", i.e. # with bypass resnet connections, and re-tuned. diff --git a/egs/fisher_callhome_spanish/s5/local/fsp_create_test_lang.sh b/egs/fisher_callhome_spanish/s5/local/fsp_create_test_lang.sh index fb765b57e69..195b9f25713 100755 --- a/egs/fisher_callhome_spanish/s5/local/fsp_create_test_lang.sh +++ b/egs/fisher_callhome_spanish/s5/local/fsp_create_test_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Gaurav Kumar. Apache 2.0 # diff --git a/egs/fisher_callhome_spanish/s5/local/fsp_data_prep.sh b/egs/fisher_callhome_spanish/s5/local/fsp_data_prep.sh index 11d65da3e95..0bcd4abca8b 100755 --- a/egs/fisher_callhome_spanish/s5/local/fsp_data_prep.sh +++ b/egs/fisher_callhome_spanish/s5/local/fsp_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Gaurav Kumar. Apache 2.0 # The input is the Fisher Dataset which contains DISC1 and DISC2. (*.sph files) diff --git a/egs/fisher_callhome_spanish/s5/local/fsp_train_lms.sh b/egs/fisher_callhome_spanish/s5/local/fsp_train_lms.sh index cebf3b222ab..c839dd16255 100755 --- a/egs/fisher_callhome_spanish/s5/local/fsp_train_lms.sh +++ b/egs/fisher_callhome_spanish/s5/local/fsp_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Gaurav Kumar. Apache 2.0 # To be run from one level above this directory diff --git a/egs/fisher_callhome_spanish/s5/local/nnet3/run_ivector_common.sh b/egs/fisher_callhome_spanish/s5/local/nnet3/run_ivector_common.sh index cc9de4d26c5..4204e94fad9 100755 --- a/egs/fisher_callhome_spanish/s5/local/nnet3/run_ivector_common.sh +++ b/egs/fisher_callhome_spanish/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/fisher_callhome_spanish/s5/local/rnnlm/train_rnnlm.sh b/egs/fisher_callhome_spanish/s5/local/rnnlm/train_rnnlm.sh index 3713fe228d6..300d54b0945 100755 --- a/egs/fisher_callhome_spanish/s5/local/rnnlm/train_rnnlm.sh +++ b/egs/fisher_callhome_spanish/s5/local/rnnlm/train_rnnlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/fisher_callhome_spanish/s5/local/run_sgmm2x.sh b/egs/fisher_callhome_spanish/s5/local/run_sgmm2x.sh index 9148b1f1171..7b9d1cc7ab3 100755 --- a/egs/fisher_callhome_spanish/s5/local/run_sgmm2x.sh +++ b/egs/fisher_callhome_spanish/s5/local/run_sgmm2x.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Gaurav Kumar. Apache 2.0 # This is as run_sgmm2.sh but excluding the "speaker-dependent weights", diff --git a/egs/fisher_callhome_spanish/s5/local/subset_data_prep.sh b/egs/fisher_callhome_spanish/s5/local/subset_data_prep.sh index 9f5855d56c4..433201609cb 100755 --- a/egs/fisher_callhome_spanish/s5/local/subset_data_prep.sh +++ b/egs/fisher_callhome_spanish/s5/local/subset_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Gaurav Kumar. Apache 2.0 # The input is a subset of the dataset in use. (*.sph files) diff --git a/egs/fisher_callhome_spanish/s5/run.sh b/egs/fisher_callhome_spanish/s5/run.sh index 6e2752a7b68..c8e6adab40f 100755 --- a/egs/fisher_callhome_spanish/s5/run.sh +++ b/egs/fisher_callhome_spanish/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2018 Nagendra Goel, Saikiran Valluri Apache 2.0 # Copyright 2014 Gaurav Kumar. Apache 2.0 diff --git a/egs/fisher_english/s5/local/chain/compare_wer_general.sh b/egs/fisher_english/s5/local/chain/compare_wer_general.sh index 2f724c8ff81..4d80fb90687 100755 --- a/egs/fisher_english/s5/local/chain/compare_wer_general.sh +++ b/egs/fisher_english/s5/local/chain/compare_wer_general.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer_general.sh exp/chain_cleaned/tdnn_{c,d}_sp diff --git a/egs/fisher_english/s5/local/chain/run_tdnn.sh b/egs/fisher_english/s5/local/chain/run_tdnn.sh index 1fd0f1fdf3a..1df1a4555c5 100755 --- a/egs/fisher_english/s5/local/chain/run_tdnn.sh +++ b/egs/fisher_english/s5/local/chain/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Based on run_tdnn_7b.sh in the fisher swbd recipe diff --git a/egs/fisher_english/s5/local/fisher_create_test_lang.sh b/egs/fisher_english/s5/local/fisher_create_test_lang.sh index ac3e16c9c78..3202589a16a 100755 --- a/egs/fisher_english/s5/local/fisher_create_test_lang.sh +++ b/egs/fisher_english/s5/local/fisher_create_test_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script formats ARPA LM into G.fst. diff --git a/egs/fisher_english/s5/local/fisher_data_prep.sh b/egs/fisher_english/s5/local/fisher_data_prep.sh index f3ad3c3f5bd..900ee385768 100755 --- a/egs/fisher_english/s5/local/fisher_data_prep.sh +++ b/egs/fisher_english/s5/local/fisher_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0. diff --git a/egs/fisher_english/s5/local/fisher_prepare_dict.sh b/egs/fisher_english/s5/local/fisher_prepare_dict.sh index f52ec61823a..bd6b6f45b67 100755 --- a/egs/fisher_english/s5/local/fisher_prepare_dict.sh +++ b/egs/fisher_english/s5/local/fisher_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # To be run from one directory above this script. diff --git a/egs/fisher_english/s5/local/fisher_train_lms.sh b/egs/fisher_english/s5/local/fisher_train_lms.sh index 881d3ce9466..d1c8b1e9714 100755 --- a/egs/fisher_english/s5/local/fisher_train_lms.sh +++ b/egs/fisher_english/s5/local/fisher_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/fisher_english/s5/local/fisher_train_lms_pocolm.sh b/egs/fisher_english/s5/local/fisher_train_lms_pocolm.sh index 906703953a1..570339104f7 100755 --- a/egs/fisher_english/s5/local/fisher_train_lms_pocolm.sh +++ b/egs/fisher_english/s5/local/fisher_train_lms_pocolm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/fisher_english/s5/local/nnet2/run_6c_gpu.sh b/egs/fisher_english/s5/local/nnet2/run_6c_gpu.sh index 210d0f5646f..8e4218f34ff 100755 --- a/egs/fisher_english/s5/local/nnet2/run_6c_gpu.sh +++ b/egs/fisher_english/s5/local/nnet2/run_6c_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this (local/nnet2/run_6c_gpu.sh) trains a p-norm neural network on top of diff --git a/egs/fisher_english/s5/local/nnet3/run_ivector_common.sh b/egs/fisher_english/s5/local/nnet3/run_ivector_common.sh index b203f9638b4..d8c3945a5d9 100755 --- a/egs/fisher_english/s5/local/nnet3/run_ivector_common.sh +++ b/egs/fisher_english/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # 2017 Vimal Manohar diff --git a/egs/fisher_english/s5/local/online/run_nnet2.sh b/egs/fisher_english/s5/local/online/run_nnet2.sh index 2204a16e363..fbd0953f42c 100755 --- a/egs/fisher_english/s5/local/online/run_nnet2.sh +++ b/egs/fisher_english/s5/local/online/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/fisher_english/s5/local/online/run_nnet2_b.sh b/egs/fisher_english/s5/local/online/run_nnet2_b.sh index 512f35d8043..2664fe8a718 100755 --- a/egs/fisher_english/s5/local/online/run_nnet2_b.sh +++ b/egs/fisher_english/s5/local/online/run_nnet2_b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script run_nnet2_b.sh is as run_nnet2.sh but it trains a larger network, # with 5 instead of 4 hidden layers and p-norm (input,output) dims of diff --git a/egs/fisher_english/s5/local/online/run_nnet2_common.sh b/egs/fisher_english/s5/local/online/run_nnet2_common.sh index 5a23e6b32da..af3f9f25695 100755 --- a/egs/fisher_english/s5/local/online/run_nnet2_common.sh +++ b/egs/fisher_english/s5/local/online/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Make the features, build the iVector extractor diff --git a/egs/fisher_english/s5/local/online/run_nnet2_discriminative.sh b/egs/fisher_english/s5/local/online/run_nnet2_discriminative.sh index 8c85a989fdd..25d618d2674 100755 --- a/egs/fisher_english/s5/local/online/run_nnet2_discriminative.sh +++ b/egs/fisher_english/s5/local/online/run_nnet2_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is to be run after run_nnet2.sh diff --git a/egs/fisher_english/s5/local/online/run_nnet2_multisplice.sh b/egs/fisher_english/s5/local/online/run_nnet2_multisplice.sh index b5361f2f8d8..c8ad9d8d1de 100755 --- a/egs/fisher_english/s5/local/online/run_nnet2_multisplice.sh +++ b/egs/fisher_english/s5/local/online/run_nnet2_multisplice.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/fisher_english/s5/local/run_data_cleaning.sh b/egs/fisher_english/s5/local/run_data_cleaning.sh index 68b752ad577..7154da73e27 100755 --- a/egs/fisher_english/s5/local/run_data_cleaning.sh +++ b/egs/fisher_english/s5/local/run_data_cleaning.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script shows how you can do data-cleaning, and exclude data that has a diff --git a/egs/fisher_english/s5/local/run_nnet2.sh b/egs/fisher_english/s5/local/run_nnet2.sh index 359b6c5afdf..6f971129878 100755 --- a/egs/fisher_english/s5/local/run_nnet2.sh +++ b/egs/fisher_english/s5/local/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This shows what you can potentially run; you'd probably want to pick and choose. diff --git a/egs/fisher_english/s5/local/run_unk_model.sh b/egs/fisher_english/s5/local/run_unk_model.sh index 1fe658bda79..1894acf7bdb 100755 --- a/egs/fisher_english/s5/local/run_unk_model.sh +++ b/egs/fisher_english/s5/local/run_unk_model.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar diff --git a/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_100k_semisupervised_1a.sh b/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_100k_semisupervised_1a.sh index 07636a8b3c8..24c64d84ba9 100644 --- a/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_100k_semisupervised_1a.sh +++ b/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_100k_semisupervised_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_1a.sh b/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_1a.sh index b1c133942ef..d934db2929d 100755 --- a/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_1a.sh +++ b/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_50k_semisupervised_1a.sh b/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_50k_semisupervised_1a.sh index 04244014502..66ff7363a0e 100755 --- a/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_50k_semisupervised_1a.sh +++ b/egs/fisher_english/s5/local/semisup/chain/tuning/run_tdnn_50k_semisupervised_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/fisher_english/s5/local/semisup/run_100k.sh b/egs/fisher_english/s5/local/semisup/run_100k.sh index 7657e94b7f2..0d93820d865 100644 --- a/egs/fisher_english/s5/local/semisup/run_100k.sh +++ b/egs/fisher_english/s5/local/semisup/run_100k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/fisher_english/s5/local/semisup/run_50k.sh b/egs/fisher_english/s5/local/semisup/run_50k.sh index c2a5c0db7e7..27fb54d7659 100644 --- a/egs/fisher_english/s5/local/semisup/run_50k.sh +++ b/egs/fisher_english/s5/local/semisup/run_50k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/fisher_english/s5/run.sh b/egs/fisher_english/s5/run.sh index 67c0d5ce638..256cc7f850f 100755 --- a/egs/fisher_english/s5/run.sh +++ b/egs/fisher_english/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # It's best to run the commands in this one by one. diff --git a/egs/fisher_swbd/s5/local/chain/run_blstm_6h.sh b/egs/fisher_swbd/s5/local/chain/run_blstm_6h.sh index 66f87c8da8f..ba116ca472e 100755 --- a/egs/fisher_swbd/s5/local/chain/run_blstm_6h.sh +++ b/egs/fisher_swbd/s5/local/chain/run_blstm_6h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # based on run_tdnn_6h.sh diff --git a/egs/fisher_swbd/s5/local/chain/run_blstm_6j.sh b/egs/fisher_swbd/s5/local/chain/run_blstm_6j.sh index c12f604f26b..87a77127a21 100755 --- a/egs/fisher_swbd/s5/local/chain/run_blstm_6j.sh +++ b/egs/fisher_swbd/s5/local/chain/run_blstm_6j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/fisher_swbd/s5/local/chain/run_tdnn_7b.sh b/egs/fisher_swbd/s5/local/chain/run_tdnn_7b.sh index 543f753bd4e..eea6efea2b9 100755 --- a/egs/fisher_swbd/s5/local/chain/run_tdnn_7b.sh +++ b/egs/fisher_swbd/s5/local/chain/run_tdnn_7b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/egs/fisher_swbd/s5/local/chain/run_tdnn_7c.sh b/egs/fisher_swbd/s5/local/chain/run_tdnn_7c.sh index efcd1eced4a..8d31a580ea1 100644 --- a/egs/fisher_swbd/s5/local/chain/run_tdnn_7c.sh +++ b/egs/fisher_swbd/s5/local/chain/run_tdnn_7c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/fisher_swbd/s5/local/chain/run_tdnn_7d.sh b/egs/fisher_swbd/s5/local/chain/run_tdnn_7d.sh index e4a555abfdd..ad6139e909c 100644 --- a/egs/fisher_swbd/s5/local/chain/run_tdnn_7d.sh +++ b/egs/fisher_swbd/s5/local/chain/run_tdnn_7d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1a.sh b/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1a.sh index 5650cedca28..52d8e2b7ae1 100755 --- a/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1a.sh +++ b/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1a_svd.sh b/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1a_svd.sh index 5beb2e74a9a..cab547fc1e4 100644 --- a/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1a_svd.sh +++ b/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1a_svd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2018 Nagendra Kumar Goel, # Saikiran Valluri, Govivace.Inc - Apache 2.0 diff --git a/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1b.sh b/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1b.sh index f3cc869e6de..37ab5ba5e4c 100755 --- a/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1b.sh +++ b/egs/fisher_swbd/s5/local/chain/run_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/fisher_swbd/s5/local/chain/run_tdnn_opgru_1a.sh b/egs/fisher_swbd/s5/local/chain/run_tdnn_opgru_1a.sh index 059a81e15fc..73344f74995 100755 --- a/egs/fisher_swbd/s5/local/chain/run_tdnn_opgru_1a.sh +++ b/egs/fisher_swbd/s5/local/chain/run_tdnn_opgru_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/fisher_swbd/s5/local/chain/run_tdnn_opgru_1b.sh b/egs/fisher_swbd/s5/local/chain/run_tdnn_opgru_1b.sh index d86b699d6f6..613c4fde163 100755 --- a/egs/fisher_swbd/s5/local/chain/run_tdnn_opgru_1b.sh +++ b/egs/fisher_swbd/s5/local/chain/run_tdnn_opgru_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/fisher_swbd/s5/local/eval2000_data_prep.sh b/egs/fisher_swbd/s5/local/eval2000_data_prep.sh index 533b5ecf46e..17e069964ff 100755 --- a/egs/fisher_swbd/s5/local/eval2000_data_prep.sh +++ b/egs/fisher_swbd/s5/local/eval2000_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Hub-5 Eval 2000 data preparation # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/fisher_swbd/s5/local/fisher_create_test_lang.sh b/egs/fisher_swbd/s5/local/fisher_create_test_lang.sh index f0926d2ceab..250257e071d 100755 --- a/egs/fisher_swbd/s5/local/fisher_create_test_lang.sh +++ b/egs/fisher_swbd/s5/local/fisher_create_test_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # if [ -f path.sh ]; then . ./path.sh; fi diff --git a/egs/fisher_swbd/s5/local/fisher_create_test_lang_fsh.sh b/egs/fisher_swbd/s5/local/fisher_create_test_lang_fsh.sh index 44291ddace9..e1c174c135f 100755 --- a/egs/fisher_swbd/s5/local/fisher_create_test_lang_fsh.sh +++ b/egs/fisher_swbd/s5/local/fisher_create_test_lang_fsh.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # if [ -f path.sh ]; then . ./path.sh; fi diff --git a/egs/fisher_swbd/s5/local/fisher_data_prep.sh b/egs/fisher_swbd/s5/local/fisher_data_prep.sh index 186f7d7e122..d8cd7bc1ba3 100755 --- a/egs/fisher_swbd/s5/local/fisher_data_prep.sh +++ b/egs/fisher_swbd/s5/local/fisher_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0. diff --git a/egs/fisher_swbd/s5/local/fisher_prepare_dict.sh b/egs/fisher_swbd/s5/local/fisher_prepare_dict.sh index ddc70295e40..3b7148d46ce 100755 --- a/egs/fisher_swbd/s5/local/fisher_prepare_dict.sh +++ b/egs/fisher_swbd/s5/local/fisher_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # To be run from one directory above this script. diff --git a/egs/fisher_swbd/s5/local/fisher_swbd_prepare_dict.sh b/egs/fisher_swbd/s5/local/fisher_swbd_prepare_dict.sh index bae19603285..90786b78209 100755 --- a/egs/fisher_swbd/s5/local/fisher_swbd_prepare_dict.sh +++ b/egs/fisher_swbd/s5/local/fisher_swbd_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # To be run from one directory above this script. diff --git a/egs/fisher_swbd/s5/local/fisher_train_lms.sh b/egs/fisher_swbd/s5/local/fisher_train_lms.sh index 7df4353338e..3cf89d4c48e 100755 --- a/egs/fisher_swbd/s5/local/fisher_train_lms.sh +++ b/egs/fisher_swbd/s5/local/fisher_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/fisher_swbd/s5/local/fisher_train_lms_fsh.sh b/egs/fisher_swbd/s5/local/fisher_train_lms_fsh.sh index 4d90cacc1b9..46418100f07 100755 --- a/egs/fisher_swbd/s5/local/fisher_train_lms_fsh.sh +++ b/egs/fisher_swbd/s5/local/fisher_train_lms_fsh.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/fisher_swbd/s5/local/nnet3/run_ivector_common.sh b/egs/fisher_swbd/s5/local/nnet3/run_ivector_common.sh index 01c988709f1..b711d2e9304 100755 --- a/egs/fisher_swbd/s5/local/nnet3/run_ivector_common.sh +++ b/egs/fisher_swbd/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh set -e diff --git a/egs/fisher_swbd/s5/local/online/run_nnet2_common.sh b/egs/fisher_swbd/s5/local/online/run_nnet2_common.sh index ad2a54bd8bf..e7cff4dd606 100755 --- a/egs/fisher_swbd/s5/local/online/run_nnet2_common.sh +++ b/egs/fisher_swbd/s5/local/online/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Make the features, build the iVector extractor diff --git a/egs/fisher_swbd/s5/local/online/run_nnet2_ms.sh b/egs/fisher_swbd/s5/local/online/run_nnet2_ms.sh index 91dc19a1e71..ad1417daf19 100755 --- a/egs/fisher_swbd/s5/local/online/run_nnet2_ms.sh +++ b/egs/fisher_swbd/s5/local/online/run_nnet2_ms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/fisher_swbd/s5/local/rt03_data_prep.sh b/egs/fisher_swbd/s5/local/rt03_data_prep.sh index f537b88b609..15e03f70498 100755 --- a/egs/fisher_swbd/s5/local/rt03_data_prep.sh +++ b/egs/fisher_swbd/s5/local/rt03_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # RT-03 data preparation (conversational telephone speech part only) # Adapted from Arnab Ghoshal's script for Hub-5 Eval 2000 by Peng Qi diff --git a/egs/fisher_swbd/s5/local/score.sh b/egs/fisher_swbd/s5/local/score.sh index 189d49119ab..ba8f43d7efd 100755 --- a/egs/fisher_swbd/s5/local/score.sh +++ b/egs/fisher_swbd/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. orig_args= diff --git a/egs/fisher_swbd/s5/local/score_basic.sh b/egs/fisher_swbd/s5/local/score_basic.sh index 6d3ac65c383..18a939d0455 100755 --- a/egs/fisher_swbd/s5/local/score_basic.sh +++ b/egs/fisher_swbd/s5/local/score_basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/fisher_swbd/s5/local/score_sclite.sh b/egs/fisher_swbd/s5/local/score_sclite.sh index c17b3c69c9b..18ad3853255 100755 --- a/egs/fisher_swbd/s5/local/score_sclite.sh +++ b/egs/fisher_swbd/s5/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/fisher_swbd/s5/local/score_sclite_conf.sh b/egs/fisher_swbd/s5/local/score_sclite_conf.sh index bb354fd50cf..d6d052ee763 100755 --- a/egs/fisher_swbd/s5/local/score_sclite_conf.sh +++ b/egs/fisher_swbd/s5/local/score_sclite_conf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/fisher_swbd/s5/local/swbd1_data_download.sh b/egs/fisher_swbd/s5/local/swbd1_data_download.sh index 0f46a3a1fa0..7f5ea2e13cb 100755 --- a/egs/fisher_swbd/s5/local/swbd1_data_download.sh +++ b/egs/fisher_swbd/s5/local/swbd1_data_download.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Switchboard-1 training data preparation customized for Edinburgh # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/fisher_swbd/s5/local/swbd1_data_prep.sh b/egs/fisher_swbd/s5/local/swbd1_data_prep.sh index ce5d580eb5a..ee5bfc204aa 100755 --- a/egs/fisher_swbd/s5/local/swbd1_data_prep.sh +++ b/egs/fisher_swbd/s5/local/swbd1_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Switchboard-1 training data preparation customized for Edinburgh # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/fisher_swbd/s5/local/swbd1_prepare_dict.sh b/egs/fisher_swbd/s5/local/swbd1_prepare_dict.sh index fc951d14fa0..da978a21c87 100755 --- a/egs/fisher_swbd/s5/local/swbd1_prepare_dict.sh +++ b/egs/fisher_swbd/s5/local/swbd1_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Formatting the Mississippi State dictionary for use in Edinburgh. Differs # from the one in Kaldi s5 recipe in that it uses lower-case --Arnab (Jan 2013) diff --git a/egs/fisher_swbd/s5/run.sh b/egs/fisher_swbd/s5/run.sh index fcb0ac8ebb6..09da3ab7c91 100755 --- a/egs/fisher_swbd/s5/run.sh +++ b/egs/fisher_swbd/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # It's best to run the commands in this one by one. . ./cmd.sh diff --git a/egs/formosa/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/formosa/s5/local/chain/tuning/run_tdnn_1a.sh index 66c5ad3335f..f9ceb667553 100755 --- a/egs/formosa/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/formosa/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on run_tdnn_7h.sh in swbd chain recipe. diff --git a/egs/formosa/s5/local/chain/tuning/run_tdnn_1b.sh b/egs/formosa/s5/local/chain/tuning/run_tdnn_1b.sh index 1981bb0530d..d27f2884e10 100755 --- a/egs/formosa/s5/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/formosa/s5/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script shows improvement arising from data cleaning. diff --git a/egs/formosa/s5/local/chain/tuning/run_tdnn_1c.sh b/egs/formosa/s5/local/chain/tuning/run_tdnn_1c.sh index 6fa10344cfc..3e1f7ac7b15 100755 --- a/egs/formosa/s5/local/chain/tuning/run_tdnn_1c.sh +++ b/egs/formosa/s5/local/chain/tuning/run_tdnn_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # CER: # %WER 16.44 [ 35459 / 215718, 4216 ins, 11278 del, 19965 sub ] exp/chain/tdnn_1b_sp/decode_test/cer_10_0.0 diff --git a/egs/formosa/s5/local/chain/tuning/run_tdnn_1d.sh b/egs/formosa/s5/local/chain/tuning/run_tdnn_1d.sh index 1f4b7e12850..2f83db14ad1 100755 --- a/egs/formosa/s5/local/chain/tuning/run_tdnn_1d.sh +++ b/egs/formosa/s5/local/chain/tuning/run_tdnn_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # CER: # 1a: %WER 16.83 [ 36305 / 215718, 4772 ins, 10810 del, 20723 sub ] exp/chain/tdnn_1a_sp/decode_test/cer_9_0.0 diff --git a/egs/formosa/s5/local/nnet3/run_ivector_common.sh b/egs/formosa/s5/local/nnet3/run_ivector_common.sh index 723589ddd2e..11542e55760 100755 --- a/egs/formosa/s5/local/nnet3/run_ivector_common.sh +++ b/egs/formosa/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/formosa/s5/local/nnet3/run_tdnn.sh b/egs/formosa/s5/local/nnet3/run_tdnn.sh index a41d990a9b2..9a0d6a6dbc1 100755 --- a/egs/formosa/s5/local/nnet3/run_tdnn.sh +++ b/egs/formosa/s5/local/nnet3/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on swbd/s5c/local/nnet3/run_tdnn.sh diff --git a/egs/formosa/s5/local/prepare_data.sh b/egs/formosa/s5/local/prepare_data.sh index 68f342e1549..ed08513bbd8 100755 --- a/egs/formosa/s5/local/prepare_data.sh +++ b/egs/formosa/s5/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 Sarah Flora Juan # Copyright 2016 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2018 Yuan-Fu Liao, National Taipei University of Technology diff --git a/egs/formosa/s5/local/prepare_dict.sh b/egs/formosa/s5/local/prepare_dict.sh index 4e580f5f6e8..82f93895919 100755 --- a/egs/formosa/s5/local/prepare_dict.sh +++ b/egs/formosa/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 Sarah Flora Juan # Copyright 2016 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2018 Yuan-Fu Liao, National Taipei University of Technology diff --git a/egs/formosa/s5/local/prepare_lm.sh b/egs/formosa/s5/local/prepare_lm.sh index 59fe1529658..b137bb2886f 100755 --- a/egs/formosa/s5/local/prepare_lm.sh +++ b/egs/formosa/s5/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 Sarah Flora Juan # Copyright 2016 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/formosa/s5/local/run_cleanup_segmentation.sh b/egs/formosa/s5/local/run_cleanup_segmentation.sh index b72cd89b4d1..1515411969c 100755 --- a/egs/formosa/s5/local/run_cleanup_segmentation.sh +++ b/egs/formosa/s5/local/run_cleanup_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/formosa/s5/local/score.sh b/egs/formosa/s5/local/score.sh index a9786169973..d283ceb68dc 100755 --- a/egs/formosa/s5/local/score.sh +++ b/egs/formosa/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail set -x diff --git a/egs/formosa/s5/local/train_lms.sh b/egs/formosa/s5/local/train_lms.sh index efc5b92c573..8c91b351867 100755 --- a/egs/formosa/s5/local/train_lms.sh +++ b/egs/formosa/s5/local/train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/formosa/s5/run.sh b/egs/formosa/s5/run.sh index a4d0f2dcd1d..7cf4dbac00e 100755 --- a/egs/formosa/s5/run.sh +++ b/egs/formosa/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2018, Yuan-Fu Liao, National Taipei University of Technology, yfliao@mail.ntut.edu.tw # diff --git a/egs/gale_arabic/s5/local/gale_data_prep_txt.sh b/egs/gale_arabic/s5/local/gale_data_prep_txt.sh index a95b37ab14f..960a3ced161 100755 --- a/egs/gale_arabic/s5/local/gale_data_prep_txt.sh +++ b/egs/gale_arabic/s5/local/gale_data_prep_txt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 QCRI (author: Ahmed Ali) # Apache 2.0 diff --git a/egs/gale_arabic/s5/local/gale_format_data.sh b/egs/gale_arabic/s5/local/gale_format_data.sh index 053323dc194..8e86f75b085 100755 --- a/egs/gale_arabic/s5/local/gale_format_data.sh +++ b/egs/gale_arabic/s5/local/gale_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 QCRI (author: Ahmed Ali) # Apache 2.0 diff --git a/egs/gale_arabic/s5/local/gale_prep_dict.sh b/egs/gale_arabic/s5/local/gale_prep_dict.sh index f6fd83378d0..5aa3894272d 100755 --- a/egs/gale_arabic/s5/local/gale_prep_dict.sh +++ b/egs/gale_arabic/s5/local/gale_prep_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 QCRI (author: Ahmed Ali) # Apache 2.0 diff --git a/egs/gale_arabic/s5/local/gale_train_lms.sh b/egs/gale_arabic/s5/local/gale_train_lms.sh index 8f8e715390f..9f91749a0dd 100755 --- a/egs/gale_arabic/s5/local/gale_train_lms.sh +++ b/egs/gale_arabic/s5/local/gale_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/gale_arabic/s5/local/nnet/run_lstm.sh b/egs/gale_arabic/s5/local/nnet/run_lstm.sh index aeb2272976b..7969538b3c5 100755 --- a/egs/gale_arabic/s5/local/nnet/run_lstm.sh +++ b/egs/gale_arabic/s5/local/nnet/run_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 QCRI (author: Ahmed Ali) # Apache 2.0 diff --git a/egs/gale_arabic/s5/local/online/run_nnet2.sh b/egs/gale_arabic/s5/local/online/run_nnet2.sh index afc3166c9eb..4f24df40fd4 100644 --- a/egs/gale_arabic/s5/local/online/run_nnet2.sh +++ b/egs/gale_arabic/s5/local/online/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar # This is our online neural net build for Gale system diff --git a/egs/gale_arabic/s5/local/run_sgmm.sh b/egs/gale_arabic/s5/local/run_sgmm.sh index a5d32d18038..b0112004aa2 100755 --- a/egs/gale_arabic/s5/local/run_sgmm.sh +++ b/egs/gale_arabic/s5/local/run_sgmm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./path.sh diff --git a/egs/gale_arabic/s5/local/score.sh b/egs/gale_arabic/s5/local/score.sh index abd8149a672..332f038c575 100755 --- a/egs/gale_arabic/s5/local/score.sh +++ b/egs/gale_arabic/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/gale_arabic/s5/local/score_combine.sh b/egs/gale_arabic/s5/local/score_combine.sh index 65caab06ecc..c4d3c13886a 100755 --- a/egs/gale_arabic/s5/local/score_combine.sh +++ b/egs/gale_arabic/s5/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal diff --git a/egs/gale_arabic/s5/local/score_mbr.sh b/egs/gale_arabic/s5/local/score_mbr.sh index 04b84ccce5a..8c752368906 100755 --- a/egs/gale_arabic/s5/local/score_mbr.sh +++ b/egs/gale_arabic/s5/local/score_mbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script for minimum bayes risk decoding. diff --git a/egs/gale_arabic/s5/local/split_wer.sh b/egs/gale_arabic/s5/local/split_wer.sh index 26d8a3c6023..dbcc9f03e73 100755 --- a/egs/gale_arabic/s5/local/split_wer.sh +++ b/egs/gale_arabic/s5/local/split_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Report WER for reports and conversational # Copyright 2014 QCRI (author: Ahmed Ali) diff --git a/egs/gale_arabic/s5/local/split_wer_per_corpus.sh b/egs/gale_arabic/s5/local/split_wer_per_corpus.sh index 53716f809ac..556eb320a0d 100755 --- a/egs/gale_arabic/s5/local/split_wer_per_corpus.sh +++ b/egs/gale_arabic/s5/local/split_wer_per_corpus.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Report WER for reports and conversational # Copyright 2014 QCRI (author: Ahmed Ali) diff --git a/egs/gale_arabic/s5/run.sh b/egs/gale_arabic/s5/run.sh index 5f20c14c414..7e672d67eb2 100755 --- a/egs/gale_arabic/s5/run.sh +++ b/egs/gale_arabic/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/egs/gale_arabic/s5b/local/chain/compare_wer.sh b/egs/gale_arabic/s5b/local/chain/compare_wer.sh index 1a40523355a..ece324c279e 100755 --- a/egs/gale_arabic/s5b/local/chain/compare_wer.sh +++ b/egs/gale_arabic/s5b/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/gale_arabic/s5b/local/chain/run_chain_common.sh b/egs/gale_arabic/s5b/local/chain/run_chain_common.sh index da37e148441..710625cf489 100755 --- a/egs/gale_arabic/s5b/local/chain/run_chain_common.sh +++ b/egs/gale_arabic/s5b/local/chain/run_chain_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script has common stages shared across librispeech chain recipes. # It generates a new topology in a new lang directory, gets the alignments as diff --git a/egs/gale_arabic/s5b/local/chain/tuning/run_tdnn_1a.sh b/egs/gale_arabic/s5b/local/chain/tuning/run_tdnn_1a.sh index bf2e45c9914..346c3f39ccb 100755 --- a/egs/gale_arabic/s5b/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/gale_arabic/s5b/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ./local/chain/compare_wer.sh exp/chain/tdnn_1a_sp # System tdnn_1a_sp diff --git a/egs/gale_arabic/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/gale_arabic/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh index deebafc95e4..259e660532d 100755 --- a/egs/gale_arabic/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/gale_arabic/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #started from tedlium recipe with few edits diff --git a/egs/gale_arabic/s5b/local/nnet3/run_ivector_common.sh b/egs/gale_arabic/s5b/local/nnet3/run_ivector_common.sh index a03cc5b2fa3..3732e2e4518 100755 --- a/egs/gale_arabic/s5b/local/nnet3/run_ivector_common.sh +++ b/egs/gale_arabic/s5b/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/gale_arabic/s5b/local/nnet3/tuning/run_lstm_1a.sh b/egs/gale_arabic/s5b/local/nnet3/tuning/run_lstm_1a.sh index 7f7b8b3ba56..6e481f2ea7d 100755 --- a/egs/gale_arabic/s5b/local/nnet3/tuning/run_lstm_1a.sh +++ b/egs/gale_arabic/s5b/local/nnet3/tuning/run_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #started from tedlium recipe with few edits diff --git a/egs/gale_arabic/s5b/local/nnet3/tuning/run_tdnn_1a.sh b/egs/gale_arabic/s5b/local/nnet3/tuning/run_tdnn_1a.sh index 6619df668ef..c624d4e8535 100755 --- a/egs/gale_arabic/s5b/local/nnet3/tuning/run_tdnn_1a.sh +++ b/egs/gale_arabic/s5b/local/nnet3/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # started from tedlium recipe with few edits diff --git a/egs/gale_arabic/s5b/local/prepare_lm.sh b/egs/gale_arabic/s5b/local/prepare_lm.sh index 6fdf35f471a..70ad8bc1b76 100755 --- a/egs/gale_arabic/s5b/local/prepare_lm.sh +++ b/egs/gale_arabic/s5b/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # 2017 Ewald Enzinger diff --git a/egs/gale_arabic/s5b/local/score.sh b/egs/gale_arabic/s5b/local/score.sh index 1d84815fc69..6168f38a929 100755 --- a/egs/gale_arabic/s5b/local/score.sh +++ b/egs/gale_arabic/s5b/local/score.sh @@ -1,5 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh "$@" diff --git a/egs/gale_arabic/s5b/local/split_wer.sh b/egs/gale_arabic/s5b/local/split_wer.sh index d83a0f79e8c..c4c323003a3 100755 --- a/egs/gale_arabic/s5b/local/split_wer.sh +++ b/egs/gale_arabic/s5b/local/split_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Report WER for reports and conversational # Copyright 2014 QCRI (author: Ahmed Ali) diff --git a/egs/gale_arabic/s5c/local/chain/compare_wer.sh b/egs/gale_arabic/s5c/local/chain/compare_wer.sh index 1a40523355a..ece324c279e 100755 --- a/egs/gale_arabic/s5c/local/chain/compare_wer.sh +++ b/egs/gale_arabic/s5c/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/gale_arabic/s5c/local/chain/run_chain_common.sh b/egs/gale_arabic/s5c/local/chain/run_chain_common.sh index da37e148441..710625cf489 100755 --- a/egs/gale_arabic/s5c/local/chain/run_chain_common.sh +++ b/egs/gale_arabic/s5c/local/chain/run_chain_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script has common stages shared across librispeech chain recipes. # It generates a new topology in a new lang directory, gets the alignments as diff --git a/egs/gale_arabic/s5c/local/chain/tuning/run_tdnn_1a.sh b/egs/gale_arabic/s5c/local/chain/tuning/run_tdnn_1a.sh index bf2e45c9914..346c3f39ccb 100755 --- a/egs/gale_arabic/s5c/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/gale_arabic/s5c/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ./local/chain/compare_wer.sh exp/chain/tdnn_1a_sp # System tdnn_1a_sp diff --git a/egs/gale_arabic/s5c/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/gale_arabic/s5c/local/chain/tuning/run_tdnn_lstm_1a.sh index deebafc95e4..259e660532d 100755 --- a/egs/gale_arabic/s5c/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/gale_arabic/s5c/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #started from tedlium recipe with few edits diff --git a/egs/gale_arabic/s5c/local/nnet3/run_ivector_common.sh b/egs/gale_arabic/s5c/local/nnet3/run_ivector_common.sh index a03cc5b2fa3..3732e2e4518 100755 --- a/egs/gale_arabic/s5c/local/nnet3/run_ivector_common.sh +++ b/egs/gale_arabic/s5c/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/gale_arabic/s5c/local/nnet3/tuning/run_lstm_1a.sh b/egs/gale_arabic/s5c/local/nnet3/tuning/run_lstm_1a.sh index 7f7b8b3ba56..6e481f2ea7d 100755 --- a/egs/gale_arabic/s5c/local/nnet3/tuning/run_lstm_1a.sh +++ b/egs/gale_arabic/s5c/local/nnet3/tuning/run_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #started from tedlium recipe with few edits diff --git a/egs/gale_arabic/s5c/local/nnet3/tuning/run_tdnn_1a.sh b/egs/gale_arabic/s5c/local/nnet3/tuning/run_tdnn_1a.sh index 6619df668ef..c624d4e8535 100755 --- a/egs/gale_arabic/s5c/local/nnet3/tuning/run_tdnn_1a.sh +++ b/egs/gale_arabic/s5c/local/nnet3/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # started from tedlium recipe with few edits diff --git a/egs/gale_arabic/s5c/local/prepare_lm.sh b/egs/gale_arabic/s5c/local/prepare_lm.sh index 6fdf35f471a..70ad8bc1b76 100755 --- a/egs/gale_arabic/s5c/local/prepare_lm.sh +++ b/egs/gale_arabic/s5c/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # 2017 Ewald Enzinger diff --git a/egs/gale_arabic/s5c/local/prepare_lm_subword.sh b/egs/gale_arabic/s5c/local/prepare_lm_subword.sh index a5d5c1d1c94..7ba19c95277 100755 --- a/egs/gale_arabic/s5c/local/prepare_lm_subword.sh +++ b/egs/gale_arabic/s5c/local/prepare_lm_subword.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # 2017 Ewald Enzinger diff --git a/egs/gale_arabic/s5c/local/score.sh b/egs/gale_arabic/s5c/local/score.sh index 1d84815fc69..6168f38a929 100755 --- a/egs/gale_arabic/s5c/local/score.sh +++ b/egs/gale_arabic/s5c/local/score.sh @@ -1,5 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh "$@" diff --git a/egs/gale_arabic/s5c/local/split_wer.sh b/egs/gale_arabic/s5c/local/split_wer.sh index d83a0f79e8c..c4c323003a3 100755 --- a/egs/gale_arabic/s5c/local/split_wer.sh +++ b/egs/gale_arabic/s5c/local/split_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Report WER for reports and conversational # Copyright 2014 QCRI (author: Ahmed Ali) diff --git a/egs/gale_arabic/s5d/local/chain/compare_wer.sh b/egs/gale_arabic/s5d/local/chain/compare_wer.sh index 1a40523355a..ece324c279e 100755 --- a/egs/gale_arabic/s5d/local/chain/compare_wer.sh +++ b/egs/gale_arabic/s5d/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/gale_arabic/s5d/local/chain/run_chain_common.sh b/egs/gale_arabic/s5d/local/chain/run_chain_common.sh index da37e148441..710625cf489 100755 --- a/egs/gale_arabic/s5d/local/chain/run_chain_common.sh +++ b/egs/gale_arabic/s5d/local/chain/run_chain_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script has common stages shared across librispeech chain recipes. # It generates a new topology in a new lang directory, gets the alignments as diff --git a/egs/gale_arabic/s5d/local/chain/tuning/run_tdnn_1a.sh b/egs/gale_arabic/s5d/local/chain/tuning/run_tdnn_1a.sh index dd0f7824295..16e9b928714 100755 --- a/egs/gale_arabic/s5d/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/gale_arabic/s5d/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail stage=0 diff --git a/egs/gale_arabic/s5d/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/gale_arabic/s5d/local/chain/tuning/run_tdnn_lstm_1a.sh index cbcdc0a3248..4273e83835a 100755 --- a/egs/gale_arabic/s5d/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/gale_arabic/s5d/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #started from tedlium recipe with few edits diff --git a/egs/gale_arabic/s5d/local/gale_train_lms.sh b/egs/gale_arabic/s5d/local/gale_train_lms.sh index 21170be5f71..bd55db6b28b 100755 --- a/egs/gale_arabic/s5d/local/gale_train_lms.sh +++ b/egs/gale_arabic/s5d/local/gale_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal # Johns Hopkins University (author: Daniel Povey) diff --git a/egs/gale_arabic/s5d/local/nnet3/run_ivector_common.sh b/egs/gale_arabic/s5d/local/nnet3/run_ivector_common.sh index 4e958271562..31c58ef06b4 100755 --- a/egs/gale_arabic/s5d/local/nnet3/run_ivector_common.sh +++ b/egs/gale_arabic/s5d/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/gale_arabic/s5d/local/nnet3/tuning/run_lstm_1a.sh b/egs/gale_arabic/s5d/local/nnet3/tuning/run_lstm_1a.sh index 7f7b8b3ba56..6e481f2ea7d 100755 --- a/egs/gale_arabic/s5d/local/nnet3/tuning/run_lstm_1a.sh +++ b/egs/gale_arabic/s5d/local/nnet3/tuning/run_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #started from tedlium recipe with few edits diff --git a/egs/gale_arabic/s5d/local/nnet3/tuning/run_tdnn_1a.sh b/egs/gale_arabic/s5d/local/nnet3/tuning/run_tdnn_1a.sh index 6619df668ef..c624d4e8535 100755 --- a/egs/gale_arabic/s5d/local/nnet3/tuning/run_tdnn_1a.sh +++ b/egs/gale_arabic/s5d/local/nnet3/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # started from tedlium recipe with few edits diff --git a/egs/gale_arabic/s5d/local/prepare_arabic_giga.sh b/egs/gale_arabic/s5d/local/prepare_arabic_giga.sh index 1c041df7e9a..7063f4774c6 100755 --- a/egs/gale_arabic/s5d/local/prepare_arabic_giga.sh +++ b/egs/gale_arabic/s5d/local/prepare_arabic_giga.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash data_dir=/export/corpora/LDC/LDC2011T11/ arabic_giga_dir=Arabic_giga/ diff --git a/egs/gale_arabic/s5d/local/prepare_lm.sh b/egs/gale_arabic/s5d/local/prepare_lm.sh index c97c9d31fdf..a4f38a3da13 100755 --- a/egs/gale_arabic/s5d/local/prepare_lm.sh +++ b/egs/gale_arabic/s5d/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # 2017 Ewald Enzinger diff --git a/egs/gale_arabic/s5d/local/prepare_lm_pocolm.sh b/egs/gale_arabic/s5d/local/prepare_lm_pocolm.sh index ec938452bec..e85f97d2faf 100755 --- a/egs/gale_arabic/s5d/local/prepare_lm_pocolm.sh +++ b/egs/gale_arabic/s5d/local/prepare_lm_pocolm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dongji Gao diff --git a/egs/gale_arabic/s5d/local/rnnlm/run_tdnn_lstm.sh b/egs/gale_arabic/s5d/local/rnnlm/run_tdnn_lstm.sh index b54ff8edd51..18e6b784fef 100755 --- a/egs/gale_arabic/s5d/local/rnnlm/run_tdnn_lstm.sh +++ b/egs/gale_arabic/s5d/local/rnnlm/run_tdnn_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/gale_arabic/s5d/local/score.sh b/egs/gale_arabic/s5d/local/score.sh index 1d84815fc69..6168f38a929 100755 --- a/egs/gale_arabic/s5d/local/score.sh +++ b/egs/gale_arabic/s5d/local/score.sh @@ -1,5 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh "$@" diff --git a/egs/gale_arabic/s5d/local/split_wer.sh b/egs/gale_arabic/s5d/local/split_wer.sh index d83a0f79e8c..c4c323003a3 100755 --- a/egs/gale_arabic/s5d/local/split_wer.sh +++ b/egs/gale_arabic/s5d/local/split_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Report WER for reports and conversational # Copyright 2014 QCRI (author: Ahmed Ali) diff --git a/egs/gale_mandarin/s5/local/gale_data_prep_audio.sh b/egs/gale_mandarin/s5/local/gale_data_prep_audio.sh index 21f325b9b84..0ea6cfcf9f9 100755 --- a/egs/gale_mandarin/s5/local/gale_data_prep_audio.sh +++ b/egs/gale_mandarin/s5/local/gale_data_prep_audio.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 QCRI (author: Ahmed Ali) # Copyright 2016 Johns Hopkins Univeersity (author: Jan "Yenda" Trmal) diff --git a/egs/gale_mandarin/s5/local/gale_data_prep_split.sh b/egs/gale_mandarin/s5/local/gale_data_prep_split.sh index f7ca324355d..23774cd299b 100755 --- a/egs/gale_mandarin/s5/local/gale_data_prep_split.sh +++ b/egs/gale_mandarin/s5/local/gale_data_prep_split.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 (author: Ahmed Ali, Hainan Xu) # Copyright 2016 Johns Hopkins Univeersity (author: Jan "Yenda" Trmal) diff --git a/egs/gale_mandarin/s5/local/gale_data_prep_txt.sh b/egs/gale_mandarin/s5/local/gale_data_prep_txt.sh index d9b82902f0d..8404529e85a 100755 --- a/egs/gale_mandarin/s5/local/gale_data_prep_txt.sh +++ b/egs/gale_mandarin/s5/local/gale_data_prep_txt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 (author: Ahmed Ali, Hainan Xu) # Copyright 2016 Johns Hopkins Univeersity (author: Jan "Yenda" Trmal) diff --git a/egs/gale_mandarin/s5/local/gale_format_data.sh b/egs/gale_mandarin/s5/local/gale_format_data.sh index fcd04e572e8..4ecac74d340 100755 --- a/egs/gale_mandarin/s5/local/gale_format_data.sh +++ b/egs/gale_mandarin/s5/local/gale_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 QCRI (author: Ahmed Ali) # Apache 2.0 diff --git a/egs/gale_mandarin/s5/local/gale_prep_dict.sh b/egs/gale_mandarin/s5/local/gale_prep_dict.sh index 19dec2831d3..bc7c91b7fc7 100755 --- a/egs/gale_mandarin/s5/local/gale_prep_dict.sh +++ b/egs/gale_mandarin/s5/local/gale_prep_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # prepare dictionary for HKUST # it is done for English and Chinese separately, # For English, we use CMU dictionary, and Sequitur G2P diff --git a/egs/gale_mandarin/s5/local/gale_train_lms.sh b/egs/gale_mandarin/s5/local/gale_train_lms.sh index b70bf8de564..11573d06ffe 100755 --- a/egs/gale_mandarin/s5/local/gale_train_lms.sh +++ b/egs/gale_mandarin/s5/local/gale_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/gale_mandarin/s5/local/nnet/run_dnn.sh b/egs/gale_mandarin/s5/local/nnet/run_dnn.sh index 31159ae1754..79a20851a94 100755 --- a/egs/gale_mandarin/s5/local/nnet/run_dnn.sh +++ b/egs/gale_mandarin/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 (author: Hainan Xu, Ahmed Ali) # Apache 2.0 diff --git a/egs/gale_mandarin/s5/local/score_combine.sh b/egs/gale_mandarin/s5/local/score_combine.sh index 65caab06ecc..c4d3c13886a 100755 --- a/egs/gale_mandarin/s5/local/score_combine.sh +++ b/egs/gale_mandarin/s5/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal diff --git a/egs/gale_mandarin/s5/local/score_mbr.sh b/egs/gale_mandarin/s5/local/score_mbr.sh index 04b84ccce5a..8c752368906 100755 --- a/egs/gale_mandarin/s5/local/score_mbr.sh +++ b/egs/gale_mandarin/s5/local/score_mbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script for minimum bayes risk decoding. diff --git a/egs/gale_mandarin/s5/local/split_wer_per_corpus.sh b/egs/gale_mandarin/s5/local/split_wer_per_corpus.sh index baaf55e50a9..a438a142891 100755 --- a/egs/gale_mandarin/s5/local/split_wer_per_corpus.sh +++ b/egs/gale_mandarin/s5/local/split_wer_per_corpus.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Report WER for reports and conversational # Copyright 2014 QCRI (author: Ahmed Ali) diff --git a/egs/gale_mandarin/s5/run.sh b/egs/gale_mandarin/s5/run.sh index fe9fdbdd483..7cb89ab6b65 100755 --- a/egs/gale_mandarin/s5/run.sh +++ b/egs/gale_mandarin/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 (author: Hainan Xu, Ahmed Ali) # Apache 2.0 diff --git a/egs/gop/s5/local/make_testcase.sh b/egs/gop/s5/local/make_testcase.sh index 884563066b1..93ed03e3653 100755 --- a/egs/gop/s5/local/make_testcase.sh +++ b/egs/gop/s5/local/make_testcase.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash src=$1 dst=$2 diff --git a/egs/gop/s5/run.sh b/egs/gop/s5/run.sh index a731b913552..f9ae0d45672 100755 --- a/egs/gop/s5/run.sh +++ b/egs/gop/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Junbo Zhang # Apache 2.0 diff --git a/egs/gp/s1/install.sh b/egs/gp/s1/install.sh index 0222b098664..ab486ee1f97 100755 --- a/egs/gp/s1/install.sh +++ b/egs/gp/s1/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Arnab Ghoshal diff --git a/egs/gp/s1/local/gp_train_multi_ubm.sh b/egs/gp/s1/local/gp_train_multi_ubm.sh index 9afc78ae7c0..f6d4abc19c8 100755 --- a/egs/gp/s1/local/gp_train_multi_ubm.sh +++ b/egs/gp/s1/local/gp_train_multi_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Arnab Ghoshal # Copyright 2010-2011 Microsoft Corporation diff --git a/egs/gp/s1/steps/align_deltas.sh b/egs/gp/s1/steps/align_deltas.sh index 22da04432c7..a9d25853fdf 100755 --- a/egs/gp/s1/steps/align_deltas.sh +++ b/egs/gp/s1/steps/align_deltas.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation; Arnab Ghoshal diff --git a/egs/gp/s1/steps/decode_deltas.sh b/egs/gp/s1/steps/decode_deltas.sh index 98f9c8ed337..58cf9ae3873 100755 --- a/egs/gp/s1/steps/decode_deltas.sh +++ b/egs/gp/s1/steps/decode_deltas.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2011 Microsoft Corporation diff --git a/egs/gp/s1/steps/train_deltas.sh b/egs/gp/s1/steps/train_deltas.sh index 0efe7b60379..975faa93bc6 100755 --- a/egs/gp/s1/steps/train_deltas.sh +++ b/egs/gp/s1/steps/train_deltas.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Arnab Ghoshal # Copyright 2010-2011 Microsoft Corporation diff --git a/egs/gp/s1/steps/train_mono.sh b/egs/gp/s1/steps/train_mono.sh index e82c14fcaf2..10970a5714b 100755 --- a/egs/gp/s1/steps/train_mono.sh +++ b/egs/gp/s1/steps/train_mono.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Arnab Ghoshal # Copyright 2010-2011 Microsoft Corporation diff --git a/egs/gp/s1/steps/train_trees.sh b/egs/gp/s1/steps/train_trees.sh index 9a3a51c8654..52511a0a5c6 100755 --- a/egs/gp/s1/steps/train_trees.sh +++ b/egs/gp/s1/steps/train_trees.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Arnab Ghoshal # Copyright 2010-2011 Microsoft Corporation diff --git a/egs/gp/s1/steps/train_ubm_deltas.sh b/egs/gp/s1/steps/train_ubm_deltas.sh index 7a666ca7668..73617e2a1d6 100755 --- a/egs/gp/s1/steps/train_ubm_deltas.sh +++ b/egs/gp/s1/steps/train_ubm_deltas.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Arnab Ghoshal # Copyright 2010-2011 Microsoft Corporation diff --git a/egs/gp/s1/utils/lmrescore.sh b/egs/gp/s1/utils/lmrescore.sh index c911d0ce8b0..9e706395c4f 100755 --- a/egs/gp/s1/utils/lmrescore.sh +++ b/egs/gp/s1/utils/lmrescore.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation; Arnab Ghoshal diff --git a/egs/gp/s1/utils/mkgraph.sh b/egs/gp/s1/utils/mkgraph.sh index 3aba742832d..c9225a63b81 100755 --- a/egs/gp/s1/utils/mkgraph.sh +++ b/egs/gp/s1/utils/mkgraph.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2011 Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/gp/s1/utils/score_lats.sh b/egs/gp/s1/utils/score_lats.sh index 5aed89b5ef4..fadb3d635f5 100755 --- a/egs/gp/s1/utils/score_lats.sh +++ b/egs/gp/s1/utils/score_lats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2011 Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/gp/s1/utils/score_sclite.sh b/egs/gp/s1/utils/score_sclite.sh index 9e7426e84b7..49e2398095b 100755 --- a/egs/gp/s1/utils/score_sclite.sh +++ b/egs/gp/s1/utils/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2011 Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/gp/s1/utils/score_text.sh b/egs/gp/s1/utils/score_text.sh index cf485261bca..b71e0bc030e 100755 --- a/egs/gp/s1/utils/score_text.sh +++ b/egs/gp/s1/utils/score_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2011 Microsoft Corporation if [ -f ./path.sh ]; then . ./path.sh; fi diff --git a/egs/gp/s1/utils/split_data.sh b/egs/gp/s1/utils/split_data.sh index 19431aa5c6d..e8f5f048edb 100755 --- a/egs/gp/s1/utils/split_data.sh +++ b/egs/gp/s1/utils/split_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2011 Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/gp/s5/local/gp_install.sh b/egs/gp/s5/local/gp_install.sh index 85d16bc5c21..6f65704e5f4 100755 --- a/egs/gp/s5/local/gp_install.sh +++ b/egs/gp/s5/local/gp_install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Arnab Ghoshal diff --git a/egs/gp/s5/local/score.sh b/egs/gp/s5/local/score.sh index d74868282f1..802be09ba9c 100755 --- a/egs/gp/s5/local/score.sh +++ b/egs/gp/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/heroico/s5/local/chain/compare_wer.sh b/egs/heroico/s5/local/chain/compare_wer.sh index 3ee755dee36..157e618927b 100755 --- a/egs/heroico/s5/local/chain/compare_wer.sh +++ b/egs/heroico/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/heroico/s5/local/chain/tuning/run_cnn_tdnn_1a.sh b/egs/heroico/s5/local/chain/tuning/run_cnn_tdnn_1a.sh index 361879b4142..715e7f398b7 100755 --- a/egs/heroico/s5/local/chain/tuning/run_cnn_tdnn_1a.sh +++ b/egs/heroico/s5/local/chain/tuning/run_cnn_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_cnn_tdnn_1a.sh is modified from run_tdnn_1b.sh but taking # the xconfig from mini-librispeech's run_cnn_tdnn_1a54.sh; only diff --git a/egs/heroico/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/heroico/s5/local/chain/tuning/run_tdnn_1a.sh index 290bd4c7970..42391b37e5f 100755 --- a/egs/heroico/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/heroico/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # local/chain/compare_wer.sh exp/chain/tdnn1a_sp # ./local/chain/compare_wer.sh exp/chain/tdnn1a_sp diff --git a/egs/heroico/s5/local/chain/tuning/run_tdnn_1b.sh b/egs/heroico/s5/local/chain/tuning/run_tdnn_1b.sh index cfb4dc1f697..b8f397baff8 100755 --- a/egs/heroico/s5/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/heroico/s5/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1b is as 1a but a re-tuned model with quite a few changes, including moving to # a resnet-style factored TDNN-F model. diff --git a/egs/heroico/s5/local/get_wav_list.sh b/egs/heroico/s5/local/get_wav_list.sh index 2d79079935b..419b449f2ab 100755 --- a/egs/heroico/s5/local/get_wav_list.sh +++ b/egs/heroico/s5/local/get_wav_list.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 John Morgan # Apache 2.0. diff --git a/egs/heroico/s5/local/nnet3/run_ivector_common.sh b/egs/heroico/s5/local/nnet3/run_ivector_common.sh index e882ce0c918..4d2014cd4fb 100755 --- a/egs/heroico/s5/local/nnet3/run_ivector_common.sh +++ b/egs/heroico/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/heroico/s5/local/prepare_data.sh b/egs/heroico/s5/local/prepare_data.sh index b78d9f1d1cb..d5fcd782766 100755 --- a/egs/heroico/s5/local/prepare_data.sh +++ b/egs/heroico/s5/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 John Morgan # Apache 2.0. diff --git a/egs/heroico/s5/local/prepare_lm.sh b/egs/heroico/s5/local/prepare_lm.sh index e2a92ba3c5a..7072b9b7088 100755 --- a/egs/heroico/s5/local/prepare_lm.sh +++ b/egs/heroico/s5/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 John Morgan # Apache 2.0. diff --git a/egs/heroico/s5/local/subs_download.sh b/egs/heroico/s5/local/subs_download.sh index 98dcb42d4e0..ab236a8ecb5 100755 --- a/egs/heroico/s5/local/subs_download.sh +++ b/egs/heroico/s5/local/subs_download.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 John Morgan # Apache 2.0. diff --git a/egs/heroico/s5/run.sh b/egs/heroico/s5/run.sh index 4cc5617e985..c990468a9db 100755 --- a/egs/heroico/s5/run.sh +++ b/egs/heroico/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh . ./path.sh diff --git a/egs/hkust/s5/local/chain/compare_wer.sh b/egs/hkust/s5/local/chain/compare_wer.sh index 27a6b783433..364d40d4ec4 100755 --- a/egs/hkust/s5/local/chain/compare_wer.sh +++ b/egs/hkust/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Emotech LTD (Author: Xuechen Liu) # compare wer between diff. models in hkust chain directory diff --git a/egs/hkust/s5/local/chain/tuning/run_tdnn_2a.sh b/egs/hkust/s5/local/chain/tuning/run_tdnn_2a.sh index c62b776de2b..85e2323688e 100755 --- a/egs/hkust/s5/local/chain/tuning/run_tdnn_2a.sh +++ b/egs/hkust/s5/local/chain/tuning/run_tdnn_2a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on run_tdnn_7p.sh in swbd chain recipe. diff --git a/egs/hkust/s5/local/ext/score.sh b/egs/hkust/s5/local/ext/score.sh index e4009abfe94..f6f5d5af61d 100755 --- a/egs/hkust/s5/local/ext/score.sh +++ b/egs/hkust/s5/local/ext/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012-2013. # Hong Kong University of Science and Technology (Ricky Chan) 2013. Apache 2.0. diff --git a/egs/hkust/s5/local/ext/score_basic_ext.sh b/egs/hkust/s5/local/ext/score_basic_ext.sh index c54c732edf1..1378cbd16c5 100755 --- a/egs/hkust/s5/local/ext/score_basic_ext.sh +++ b/egs/hkust/s5/local/ext/score_basic_ext.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012-2013. # Hong Kong University of Science and Technology (Author: Ricky Chan Ho Yin). Apache 2.0. # diff --git a/egs/hkust/s5/local/hkust_data_prep.sh b/egs/hkust/s5/local/hkust_data_prep.sh index 6342ccfe861..7857f2c6722 100755 --- a/egs/hkust/s5/local/hkust_data_prep.sh +++ b/egs/hkust/s5/local/hkust_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./path.sh || exit 1; diff --git a/egs/hkust/s5/local/hkust_format_data.sh b/egs/hkust/s5/local/hkust_format_data.sh index 7fc9b701f49..7396485e4bb 100755 --- a/egs/hkust/s5/local/hkust_format_data.sh +++ b/egs/hkust/s5/local/hkust_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # if [ -f ./path.sh ]; then . ./path.sh; fi diff --git a/egs/hkust/s5/local/hkust_prepare_dict.sh b/egs/hkust/s5/local/hkust_prepare_dict.sh index 49f27f2f868..0f3f26efa53 100755 --- a/egs/hkust/s5/local/hkust_prepare_dict.sh +++ b/egs/hkust/s5/local/hkust_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 LeSpeech (Author: Xingyu Na) # prepare dictionary for HKUST diff --git a/egs/hkust/s5/local/hkust_train_lms.sh b/egs/hkust/s5/local/hkust_train_lms.sh index 8520bb26d2d..7d83ffd00fc 100755 --- a/egs/hkust/s5/local/hkust_train_lms.sh +++ b/egs/hkust/s5/local/hkust_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/hkust/s5/local/nnet/run_cnn.sh b/egs/hkust/s5/local/nnet/run_cnn.sh index e0b7e10df86..1d92bcb0cb5 100755 --- a/egs/hkust/s5/local/nnet/run_cnn.sh +++ b/egs/hkust/s5/local/nnet/run_cnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh ## You'll want to change cmd.sh to something that will work on your system. ## This relates to the queue. diff --git a/egs/hkust/s5/local/nnet/run_dnn.sh b/egs/hkust/s5/local/nnet/run_dnn.sh index e7e229b1d2b..4cfa53a9cc7 100755 --- a/egs/hkust/s5/local/nnet/run_dnn.sh +++ b/egs/hkust/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # 2014 Guoguo Chen diff --git a/egs/hkust/s5/local/nnet/run_lstm.sh b/egs/hkust/s5/local/nnet/run_lstm.sh index ec5d0e3a856..6a15f87c1d1 100755 --- a/egs/hkust/s5/local/nnet/run_lstm.sh +++ b/egs/hkust/s5/local/nnet/run_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/hkust/s5/local/nnet2/run_5d.sh b/egs/hkust/s5/local/nnet2/run_5d.sh index b97f5c8af99..d73c04e6112 100755 --- a/egs/hkust/s5/local/nnet2/run_5d.sh +++ b/egs/hkust/s5/local/nnet2/run_5d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This runs on the full training set (with duplicates removed), with p-norm diff --git a/egs/hkust/s5/local/nnet2/run_convnet.sh b/egs/hkust/s5/local/nnet2/run_convnet.sh index 56b81c42a11..f21727643b8 100755 --- a/egs/hkust/s5/local/nnet2/run_convnet.sh +++ b/egs/hkust/s5/local/nnet2/run_convnet.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 2015 Xingyu Na # This script runs on the full training set, using ConvNet setup on top of diff --git a/egs/hkust/s5/local/nnet3/compare_wer.sh b/egs/hkust/s5/local/nnet3/compare_wer.sh index 252fab12e18..8216ed6b00e 100755 --- a/egs/hkust/s5/local/nnet3/compare_wer.sh +++ b/egs/hkust/s5/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Emotech LTD (Author: Xuechen Liu) # compare wer between diff. models in hkust nnet3 directory diff --git a/egs/hkust/s5/local/nnet3/run_ivector_common.sh b/egs/hkust/s5/local/nnet3/run_ivector_common.sh index de952e08904..e7c79cdf3bf 100755 --- a/egs/hkust/s5/local/nnet3/run_ivector_common.sh +++ b/egs/hkust/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is modified based on swbd/s5c/local/nnet3/run_ivector_common.sh diff --git a/egs/hkust/s5/local/nnet3/run_lstm.sh b/egs/hkust/s5/local/nnet3/run_lstm.sh index 2a470868298..279302759d9 100755 --- a/egs/hkust/s5/local/nnet3/run_lstm.sh +++ b/egs/hkust/s5/local/nnet3/run_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a basic lstm script diff --git a/egs/hkust/s5/local/nnet3/tuning/run_tdnn_2a.sh b/egs/hkust/s5/local/nnet3/tuning/run_tdnn_2a.sh index 1cdbbf3bb2c..7339ce595c6 100755 --- a/egs/hkust/s5/local/nnet3/tuning/run_tdnn_2a.sh +++ b/egs/hkust/s5/local/nnet3/tuning/run_tdnn_2a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on run_tdnn_7h.sh in swbd chain recipe. # exp 2a: change the step of making configs, using xconfig with diff --git a/egs/hkust/s5/local/online/run_nnet2_common.sh b/egs/hkust/s5/local/online/run_nnet2_common.sh index 185bca38d8f..737694e625a 100755 --- a/egs/hkust/s5/local/online/run_nnet2_common.sh +++ b/egs/hkust/s5/local/online/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh set -e diff --git a/egs/hkust/s5/local/online/run_nnet2_ms.sh b/egs/hkust/s5/local/online/run_nnet2_ms.sh index c3177e1136e..4c3f01de3fc 100755 --- a/egs/hkust/s5/local/online/run_nnet2_ms.sh +++ b/egs/hkust/s5/local/online/run_nnet2_ms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh set -e diff --git a/egs/hkust/s5/local/run_discriminative.sh b/egs/hkust/s5/local/run_discriminative.sh index f7c399c65dd..6d62c493cd0 100755 --- a/egs/hkust/s5/local/run_discriminative.sh +++ b/egs/hkust/s5/local/run_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Alibaba Robotics Corp. (Author: Xingyu Na) # Apache 2.0 diff --git a/egs/hkust/s5/local/run_sgmm.sh b/egs/hkust/s5/local/run_sgmm.sh index 74c4811f0a3..58ce1b6dafa 100755 --- a/egs/hkust/s5/local/run_sgmm.sh +++ b/egs/hkust/s5/local/run_sgmm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Alibaba Robotics Corp. (Author: Xingyu Na) # Apache2.0 diff --git a/egs/hkust/s5/local/score.sh b/egs/hkust/s5/local/score.sh index a9786169973..d283ceb68dc 100755 --- a/egs/hkust/s5/local/score.sh +++ b/egs/hkust/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail set -x diff --git a/egs/hkust/s5/run.sh b/egs/hkust/s5/run.sh index 9b684d5a215..9347598464c 100755 --- a/egs/hkust/s5/run.sh +++ b/egs/hkust/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Chao Weng # 2016 Alibaba Robotics Corp. (Author: Xingyu Na) diff --git a/egs/hub4_english/s5/local/data_prep/prepare_1996_bn_data.sh b/egs/hub4_english/s5/local/data_prep/prepare_1996_bn_data.sh index ea4e5699ce3..da355ddfc19 100755 --- a/egs/hub4_english/s5/local/data_prep/prepare_1996_bn_data.sh +++ b/egs/hub4_english/s5/local/data_prep/prepare_1996_bn_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # 2017 Vimal Manohar # License: Apache 2.0 diff --git a/egs/hub4_english/s5/local/data_prep/prepare_1997_bn_data.sh b/egs/hub4_english/s5/local/data_prep/prepare_1997_bn_data.sh index 5f049f7831c..865d6eb54d4 100755 --- a/egs/hub4_english/s5/local/data_prep/prepare_1997_bn_data.sh +++ b/egs/hub4_english/s5/local/data_prep/prepare_1997_bn_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # 2017 Vimal Manohar # License: Apache 2.0 diff --git a/egs/hub4_english/s5/local/format_lms.sh b/egs/hub4_english/s5/local/format_lms.sh index 1d18209aa60..7afdf51757f 100755 --- a/egs/hub4_english/s5/local/format_lms.sh +++ b/egs/hub4_english/s5/local/format_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # Apache 2.0 diff --git a/egs/hub4_english/s5/local/prepare_dict.sh b/egs/hub4_english/s5/local/prepare_dict.sh index 3f53ec6af74..acbbd6de364 100755 --- a/egs/hub4_english/s5/local/prepare_dict.sh +++ b/egs/hub4_english/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation # 2012-2014 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/hub4_english/s5/local/run_cleanup_segmentation.sh b/egs/hub4_english/s5/local/run_cleanup_segmentation.sh index e91ec318650..3d3558d032c 100755 --- a/egs/hub4_english/s5/local/run_cleanup_segmentation.sh +++ b/egs/hub4_english/s5/local/run_cleanup_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/hub4_english/s5/local/run_segmentation_wsj.sh b/egs/hub4_english/s5/local/run_segmentation_wsj.sh index a321abe9a29..89598e7916d 100755 --- a/egs/hub4_english/s5/local/run_segmentation_wsj.sh +++ b/egs/hub4_english/s5/local/run_segmentation_wsj.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016-18 Vimal Manohar # Apache 2.0 diff --git a/egs/hub4_english/s5/local/score_sclite.sh b/egs/hub4_english/s5/local/score_sclite.sh index add014c2dcc..f8ec12e8339 100755 --- a/egs/hub4_english/s5/local/score_sclite.sh +++ b/egs/hub4_english/s5/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/hub4_english/s5/local/train_lm.sh b/egs/hub4_english/s5/local/train_lm.sh index 4378a287d42..04f979af135 100755 --- a/egs/hub4_english/s5/local/train_lm.sh +++ b/egs/hub4_english/s5/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # Apache 2.0 diff --git a/egs/hub4_english/s5/run.sh b/egs/hub4_english/s5/run.sh index 5db61d4eb10..f9e6cf4ab2c 100755 --- a/egs/hub4_english/s5/run.sh +++ b/egs/hub4_english/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # Apache 2.0. diff --git a/egs/hub4_spanish/s5/local/chain/compare_wer.sh b/egs/hub4_spanish/s5/local/chain/compare_wer.sh index 0194b86ac69..72bb3ab1dc9 100755 --- a/egs/hub4_spanish/s5/local/chain/compare_wer.sh +++ b/egs/hub4_spanish/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/hub4_spanish/s5/local/chain/tuning/run_cnn_tdnn_1a.sh b/egs/hub4_spanish/s5/local/chain/tuning/run_cnn_tdnn_1a.sh index d1b657a2d74..b18d8ec0aaa 100755 --- a/egs/hub4_spanish/s5/local/chain/tuning/run_cnn_tdnn_1a.sh +++ b/egs/hub4_spanish/s5/local/chain/tuning/run_cnn_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## This is taken from mini_librispeech. diff --git a/egs/hub4_spanish/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/hub4_spanish/s5/local/chain/tuning/run_tdnn_1a.sh index 40bbbe1ae79..0c13f46ffa6 100755 --- a/egs/hub4_spanish/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/hub4_spanish/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## This is taken from mini_librispeech, but the proportional-shrink value was # tuned for this corpus (hub4-spanish) diff --git a/egs/hub4_spanish/s5/local/chain/tuning/run_tdnn_1b.sh b/egs/hub4_spanish/s5/local/chain/tuning/run_tdnn_1b.sh index a498d8157f3..159f3134fb4 100755 --- a/egs/hub4_spanish/s5/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/hub4_spanish/s5/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## This is taken from mini_librispeech diff --git a/egs/hub4_spanish/s5/local/nnet3/run_ivector_common.sh b/egs/hub4_spanish/s5/local/nnet3/run_ivector_common.sh index 623e0e7e02f..14387b7a30c 100755 --- a/egs/hub4_spanish/s5/local/nnet3/run_ivector_common.sh +++ b/egs/hub4_spanish/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/hub4_spanish/s5/local/prepare_data.sh b/egs/hub4_spanish/s5/local/prepare_data.sh index cadefe560a8..6a8e8a60213 100755 --- a/egs/hub4_spanish/s5/local/prepare_data.sh +++ b/egs/hub4_spanish/s5/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/hub4_spanish/s5/local/prepare_lexicon.sh b/egs/hub4_spanish/s5/local/prepare_lexicon.sh index 1460e60e558..c54bdbc92a3 100755 --- a/egs/hub4_spanish/s5/local/prepare_lexicon.sh +++ b/egs/hub4_spanish/s5/local/prepare_lexicon.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/hub4_spanish/s5/local/reestimate_langp.sh b/egs/hub4_spanish/s5/local/reestimate_langp.sh index 62fc4c24a16..3380152aa3b 100755 --- a/egs/hub4_spanish/s5/local/reestimate_langp.sh +++ b/egs/hub4_spanish/s5/local/reestimate_langp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_1a.sh b/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_1a.sh index 3055fe95928..255872e1b33 100755 --- a/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_1a.sh +++ b/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_1b.sh b/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_1b.sh index 5835de9d373..4577f966574 100755 --- a/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_1b.sh +++ b/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_tdnn.sh b/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_tdnn.sh index 5dc840d9b03..6d0fbdead34 100755 --- a/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_tdnn.sh +++ b/egs/hub4_spanish/s5/local/rnnlm/tuning/run_lstm_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/hub4_spanish/s5/local/run_sgmm2.sh b/egs/hub4_spanish/s5/local/run_sgmm2.sh index eb23eddea2d..c0a515c26e3 100755 --- a/egs/hub4_spanish/s5/local/run_sgmm2.sh +++ b/egs/hub4_spanish/s5/local/run_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/hub4_spanish/s5/local/train_lms_srilm.sh b/egs/hub4_spanish/s5/local/train_lms_srilm.sh index 12ce6d79490..29d60eecd60 100755 --- a/egs/hub4_spanish/s5/local/train_lms_srilm.sh +++ b/egs/hub4_spanish/s5/local/train_lms_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017 Johns Hopkins University (Author: Yenda Trmal ) # Apache 2.0 diff --git a/egs/hub4_spanish/s5/run.sh b/egs/hub4_spanish/s5/run.sh index a0420c99839..6857976567f 100755 --- a/egs/hub4_spanish/s5/run.sh +++ b/egs/hub4_spanish/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/iam/v1/local/augment_data.sh b/egs/iam/v1/local/augment_data.sh index 31e4a8217ca..e5179a77c72 100755 --- a/egs/iam/v1/local/augment_data.sh +++ b/egs/iam/v1/local/augment_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # 2018 Ashish Arora diff --git a/egs/iam/v1/local/chain/compare_wer.sh b/egs/iam/v1/local/chain/compare_wer.sh index 4a2cc29481c..ae575b29d4f 100755 --- a/egs/iam/v1/local/chain/compare_wer.sh +++ b/egs/iam/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/iam/v1/local/chain/tuning/run_cnn_1a.sh b/egs/iam/v1/local/chain/tuning/run_cnn_1a.sh index ef1273f3961..1c766e270ad 100755 --- a/egs/iam/v1/local/chain/tuning/run_cnn_1a.sh +++ b/egs/iam/v1/local/chain/tuning/run_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # 2017 Chun Chieh Chang diff --git a/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1a.sh b/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1a.sh index bbcc55aa2b0..7b334fdbdbc 100755 --- a/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1a.sh +++ b/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # chainali_1a is as 1a except it uses chain alignments (using 1a system) instead of gmm alignments # local/chain/compare_wer.sh exp/chain/cnn_chainali_1a diff --git a/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1b.sh b/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1b.sh index 401ffa14e19..840803f0249 100755 --- a/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1b.sh +++ b/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # chainali_1b is as chainali_1a except it has 3 more cnn layers and 1 less tdnn layer. # local/chain/compare_wer.sh exp/chain/cnn_chainali_1b diff --git a/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1c.sh b/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1c.sh index 17209b9204f..9423612f029 100755 --- a/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1c.sh +++ b/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # chainali_1c is as chainali_1b except it uses l2-regularize # local/chain/compare_wer.sh exp/chain/cnn_chainali_1c diff --git a/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1d.sh b/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1d.sh index 89a40ed2a13..a26882e99da 100755 --- a/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1d.sh +++ b/egs/iam/v1/local/chain/tuning/run_cnn_chainali_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # chainali_1d is as chainali_1c except it uses unconstrained egs # local/chain/compare_wer.sh exp/chain/cnn_chainali_1d diff --git a/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1a.sh b/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1a.sh index 703d404159a..76493fcc0f1 100755 --- a/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1a.sh +++ b/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # local/chain/compare_wer.sh exp/chain/cnn_e2eali_1a # System cnn_e2eali_1a_(dict_50k) cnn_e2eali_1a_(dict_50k + unk model) diff --git a/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1b.sh b/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1b.sh index 905c4661477..af3ff312cc0 100755 --- a/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1b.sh +++ b/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1b is the same as e2eali_1a but uses unconstrained egs # local/chain/compare_wer.sh exp/chain/cnn_e2eali_1b diff --git a/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1c.sh b/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1c.sh index 26b1aca0929..fa884390c26 100755 --- a/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1c.sh +++ b/egs/iam/v1/local/chain/tuning/run_cnn_e2eali_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1c is the same as e2eali_1b but has more CNN layers, different filter size # smaller lm-opts, minibatch, frams-per-iter, less epochs and more initial/finaljobs. diff --git a/egs/iam/v1/local/chain/tuning/run_e2e_cnn_1a.sh b/egs/iam/v1/local/chain/tuning/run_e2e_cnn_1a.sh index 462ad0522de..35528afcad0 100755 --- a/egs/iam/v1/local/chain/tuning/run_e2e_cnn_1a.sh +++ b/egs/iam/v1/local/chain/tuning/run_e2e_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script does end2end chain training (i.e. from scratch) diff --git a/egs/iam/v1/local/extract_features.sh b/egs/iam/v1/local/extract_features.sh index 1741ad3f9b2..1479f21d127 100755 --- a/egs/iam/v1/local/extract_features.sh +++ b/egs/iam/v1/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/iam/v1/local/prepare_data.sh b/egs/iam/v1/local/prepare_data.sh index dc07f07e318..59e619f196f 100755 --- a/egs/iam/v1/local/prepare_data.sh +++ b/egs/iam/v1/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Chun Chieh Chang # 2017 Ashish Arora diff --git a/egs/iam/v1/local/score.sh b/egs/iam/v1/local/score.sh index d964d70206b..2e27f23ce29 100755 --- a/egs/iam/v1/local/score.sh +++ b/egs/iam/v1/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey, Yenda Trmal) # Apache 2.0 diff --git a/egs/iam/v1/local/train_lm.sh b/egs/iam/v1/local/train_lm.sh index 3e8c838efdb..57afa897743 100755 --- a/egs/iam/v1/local/train_lm.sh +++ b/egs/iam/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/iam/v1/run.sh b/egs/iam/v1/run.sh index 85811b6cb3d..9362c353346 100755 --- a/egs/iam/v1/run.sh +++ b/egs/iam/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Chun Chieh Chang # 2017 Ashish Arora diff --git a/egs/iam/v1/run_end2end.sh b/egs/iam/v1/run_end2end.sh index 0a8b014715f..2f85a9940a9 100755 --- a/egs/iam/v1/run_end2end.sh +++ b/egs/iam/v1/run_end2end.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian set -e diff --git a/egs/iam/v2/local/augment_data.sh b/egs/iam/v2/local/augment_data.sh index 31e4a8217ca..e5179a77c72 100755 --- a/egs/iam/v2/local/augment_data.sh +++ b/egs/iam/v2/local/augment_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # 2018 Ashish Arora diff --git a/egs/iam/v2/local/chain/compare_wer.sh b/egs/iam/v2/local/chain/compare_wer.sh index 2ce14e13694..a1b8fffe166 100755 --- a/egs/iam/v2/local/chain/compare_wer.sh +++ b/egs/iam/v2/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1a.sh b/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1a.sh index 9a01688ba35..07188c7186e 100755 --- a/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1a.sh +++ b/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1a is the same as chainali_1c but uses the e2e chain model to get the # lattice alignments and to build a tree diff --git a/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1b.sh b/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1b.sh index 28aa246f334..3db893e7a65 100755 --- a/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1b.sh +++ b/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1b is the same as e2eali_1a but uses unconstrained egs diff --git a/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1c.sh b/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1c.sh index f158317950a..1ceec555b7a 100755 --- a/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1c.sh +++ b/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1c is the same as e2eali_1b but has fewer CNN layers, smaller # l2-regularize, more epochs and uses dropout. diff --git a/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1d.sh b/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1d.sh index 1c44057454a..9575b55c3c6 100755 --- a/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1d.sh +++ b/egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1d is the same as e2eali_1c but has more CNN layers, different filter size # smaller lm-opts, minibatch, frams-per-iter, less epochs and more initial/finaljobs. diff --git a/egs/iam/v2/local/chain/tuning/run_e2e_cnn_1a.sh b/egs/iam/v2/local/chain/tuning/run_e2e_cnn_1a.sh index cb2bfa0a82d..cf7f3051654 100755 --- a/egs/iam/v2/local/chain/tuning/run_e2e_cnn_1a.sh +++ b/egs/iam/v2/local/chain/tuning/run_e2e_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script does end2end chain training (i.e. from scratch) diff --git a/egs/iam/v2/local/chain/tuning/run_e2e_cnn_1b.sh b/egs/iam/v2/local/chain/tuning/run_e2e_cnn_1b.sh index d5f79602695..72703583954 100755 --- a/egs/iam/v2/local/chain/tuning/run_e2e_cnn_1b.sh +++ b/egs/iam/v2/local/chain/tuning/run_e2e_cnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script does end2end chain training (i.e. from scratch) diff --git a/egs/iam/v2/local/extract_features.sh b/egs/iam/v2/local/extract_features.sh index 1741ad3f9b2..1479f21d127 100755 --- a/egs/iam/v2/local/extract_features.sh +++ b/egs/iam/v2/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/iam/v2/local/prepare_data.sh b/egs/iam/v2/local/prepare_data.sh index cf729d9a939..97ceb618b1a 100755 --- a/egs/iam/v2/local/prepare_data.sh +++ b/egs/iam/v2/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Chun Chieh Chang # 2017 Ashish Arora diff --git a/egs/iam/v2/local/score.sh b/egs/iam/v2/local/score.sh index 1d84815fc69..6168f38a929 100755 --- a/egs/iam/v2/local/score.sh +++ b/egs/iam/v2/local/score.sh @@ -1,5 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh "$@" diff --git a/egs/iam/v2/local/train_lm.sh b/egs/iam/v2/local/train_lm.sh index cc0119eb748..a63ec51d874 100755 --- a/egs/iam/v2/local/train_lm.sh +++ b/egs/iam/v2/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/iam/v2/run_end2end.sh b/egs/iam/v2/run_end2end.sh index c515c85fc72..1b0538f2560 100755 --- a/egs/iam/v2/run_end2end.sh +++ b/egs/iam/v2/run_end2end.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian set -e diff --git a/egs/iban/s5/local/arpa2G.sh b/egs/iban/s5/local/arpa2G.sh index dddd7eb9097..97a139db0ec 100755 --- a/egs/iban/s5/local/arpa2G.sh +++ b/egs/iban/s5/local/arpa2G.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 Johns Hopkins University (authors: Yenda Trmal, Daniel Povey) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/iban/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/iban/s5/local/chain/tuning/run_tdnn_1a.sh index 10650a18269..23bacb2cc23 100755 --- a/egs/iban/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/iban/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Johns Hopkins University (author: Daniel Povey) # 2017-2018 Yiming Wang diff --git a/egs/iban/s5/local/chain/tuning/run_tdnn_1b.sh b/egs/iban/s5/local/chain/tuning/run_tdnn_1b.sh index db62e6f8a55..338fc090e07 100755 --- a/egs/iban/s5/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/iban/s5/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Johns Hopkins University (author: Daniel Povey) # 2017-2018 Yiming Wang diff --git a/egs/iban/s5/local/nnet3/run_ivector_common.sh b/egs/iban/s5/local/nnet3/run_ivector_common.sh index b909ed04cde..ddec4419a61 100755 --- a/egs/iban/s5/local/nnet3/run_ivector_common.sh +++ b/egs/iban/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/iban/s5/local/nnet3/tuning/run_tdnn_1a.sh b/egs/iban/s5/local/nnet3/tuning/run_tdnn_1a.sh index f53c5443ba8..88ff628e3df 100755 --- a/egs/iban/s5/local/nnet3/tuning/run_tdnn_1a.sh +++ b/egs/iban/s5/local/nnet3/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # cat exp/nnet3/tdnn_1a/decode_dev/scoring_kaldi/best_wer # %WER 17.34 [ 1908 / 11006, 257 ins, 303 del, 1348 sub ] exp/nnet3/tdnn_1a/decode_dev/wer_12_0.0 diff --git a/egs/iban/s5/local/prepare_data.sh b/egs/iban/s5/local/prepare_data.sh index 8afffb56898..cb1077054d3 100755 --- a/egs/iban/s5/local/prepare_data.sh +++ b/egs/iban/s5/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 Sarah Flora Juan # Copyright 2016 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/iban/s5/local/prepare_dict.sh b/egs/iban/s5/local/prepare_dict.sh index ebec12bc171..6f87e1c1fe4 100755 --- a/egs/iban/s5/local/prepare_dict.sh +++ b/egs/iban/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 Sarah Flora Juan # Copyright 2016 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/iban/s5/local/prepare_lm.sh b/egs/iban/s5/local/prepare_lm.sh index 10d5e276aa3..2c3a1aee1da 100755 --- a/egs/iban/s5/local/prepare_lm.sh +++ b/egs/iban/s5/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2016 Sarah Flora Juan # Copyright 2016 Johns Hopkins University (Author: Yenda Trmal) # Apache 2.0 diff --git a/egs/iban/s5/local/train_lms_srilm.sh b/egs/iban/s5/local/train_lms_srilm.sh index f72596e750a..ecc88611554 100755 --- a/egs/iban/s5/local/train_lms_srilm.sh +++ b/egs/iban/s5/local/train_lms_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export LC_ALL=C words_file= diff --git a/egs/iban/s5/run.sh b/egs/iban/s5/run.sh index 278a8177c0e..2d08c0ad6fd 100755 --- a/egs/iban/s5/run.sh +++ b/egs/iban/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Sarah Samson Juan # Apache 2.0 diff --git a/egs/ifnenit/v1/local/chain/compare_wer.sh b/egs/ifnenit/v1/local/chain/compare_wer.sh index ff2a766f9e2..2e7d657f330 100755 --- a/egs/ifnenit/v1/local/chain/compare_wer.sh +++ b/egs/ifnenit/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/ifnenit/v1/local/chain/run_cnn_1a.sh b/egs/ifnenit/v1/local/chain/run_cnn_1a.sh index b0ecd547741..135d74fa8c9 100755 --- a/egs/ifnenit/v1/local/chain/run_cnn_1a.sh +++ b/egs/ifnenit/v1/local/chain/run_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # steps/info/chain_dir_info.pl exp/chainfsf4/cnn1a_1/ # exp/chainfsf4/cnn1a_1/: num-iters=21 nj=2..4 num-params=4.4M dim=40->380 combine=-0.033->-0.025 xent:train/valid[13,20,final]=(-1.07,-1.31,-0.560/-1.30,-1.70,-0.978) logprob:train/valid[13,20,final]=(-0.064,-0.119,-0.011/-0.115,-0.208,-0.096) diff --git a/egs/ifnenit/v1/local/chain/run_cnn_chainali_1a.sh b/egs/ifnenit/v1/local/chain/run_cnn_chainali_1a.sh index 7f3132d657e..4ca73450b77 100755 --- a/egs/ifnenit/v1/local/chain/run_cnn_chainali_1a.sh +++ b/egs/ifnenit/v1/local/chain/run_cnn_chainali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # chainali_1b is as chainali_1a except it has 3 more cnn layers and 1 less tdnn layer. diff --git a/egs/ifnenit/v1/local/ienit_initialize.sh b/egs/ifnenit/v1/local/ienit_initialize.sh index e9412eb715f..072d85388ba 100755 --- a/egs/ifnenit/v1/local/ienit_initialize.sh +++ b/egs/ifnenit/v1/local/ienit_initialize.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is originally from qatip project (http://qatsdemo.cloudapp.net/qatip/demo/) # of Qatar Computing Research Institute (http://qcri.qa/) diff --git a/egs/ifnenit/v1/local/prepare_data.sh b/egs/ifnenit/v1/local/prepare_data.sh index ee20822d557..99fce0b239d 100755 --- a/egs/ifnenit/v1/local/prepare_data.sh +++ b/egs/ifnenit/v1/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. # Creat text, utt2spk, spk2utt, images.scp, and feats.scp for test and train. diff --git a/egs/ifnenit/v1/local/prepare_dict.sh b/egs/ifnenit/v1/local/prepare_dict.sh index de0ee6a433c..38b461ba6ad 100755 --- a/egs/ifnenit/v1/local/prepare_dict.sh +++ b/egs/ifnenit/v1/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh . ./path.sh diff --git a/egs/ifnenit/v1/path.sh b/egs/ifnenit/v1/path.sh index 0d7641cd5c1..85a0ae8e0d0 100755 --- a/egs/ifnenit/v1/path.sh +++ b/egs/ifnenit/v1/path.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # path to Kaldi's root directory export KALDI_ROOT=`pwd`/../../.. diff --git a/egs/ifnenit/v1/run.sh b/egs/ifnenit/v1/run.sh index 2df5a06161c..65cc7adf9a4 100755 --- a/egs/ifnenit/v1/run.sh +++ b/egs/ifnenit/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 nj=8 diff --git a/egs/librispeech/s5/local/chain/compare_wer.sh b/egs/librispeech/s5/local/chain/compare_wer.sh index ec205670b76..dd84279df30 100755 --- a/egs/librispeech/s5/local/chain/compare_wer.sh +++ b/egs/librispeech/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/librispeech/s5/local/chain/run_chain_common.sh b/egs/librispeech/s5/local/chain/run_chain_common.sh index da37e148441..710625cf489 100755 --- a/egs/librispeech/s5/local/chain/run_chain_common.sh +++ b/egs/librispeech/s5/local/chain/run_chain_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script has common stages shared across librispeech chain recipes. # It generates a new topology in a new lang directory, gets the alignments as diff --git a/egs/librispeech/s5/local/chain/run_tdnn_discriminative.sh b/egs/librispeech/s5/local/chain/run_tdnn_discriminative.sh index ac3b74ed0c5..02214315263 100755 --- a/egs/librispeech/s5/local/chain/run_tdnn_discriminative.sh +++ b/egs/librispeech/s5/local/chain/run_tdnn_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "This script has not yet been tested, you would have to comment this statement if you want to run it. Please let us know if you see any issues" && exit 1; diff --git a/egs/librispeech/s5/local/chain/tuning/run_cnn_tdnn_1a.sh b/egs/librispeech/s5/local/chain/tuning/run_cnn_tdnn_1a.sh index db17a35be64..b995ff10b16 100755 --- a/egs/librispeech/s5/local/chain/tuning/run_cnn_tdnn_1a.sh +++ b/egs/librispeech/s5/local/chain/tuning/run_cnn_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is based on tdnn_1d_sp, but adding cnn as the front-end. # The cnn-tdnn-f (tdnn_cnn_1a_sp) outperforms the tdnn-f (tdnn_1d_sp). diff --git a/egs/librispeech/s5/local/chain/tuning/run_tdnn_1b.sh b/egs/librispeech/s5/local/chain/tuning/run_tdnn_1b.sh index 48d6ddb804f..d8eedcfad2b 100755 --- a/egs/librispeech/s5/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/librispeech/s5/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # run_tdnn_1b.sh's topo is similiar with run_tdnn_1a.sh but we used the xconfigs. Otherwise "frames_per_eg=150,140,100". diff --git a/egs/librispeech/s5/local/chain/tuning/run_tdnn_1c.sh b/egs/librispeech/s5/local/chain/tuning/run_tdnn_1c.sh index 101fd6a4c15..9c7194a2041 100755 --- a/egs/librispeech/s5/local/chain/tuning/run_tdnn_1c.sh +++ b/egs/librispeech/s5/local/chain/tuning/run_tdnn_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e ## Adapted from swbd for librispeech by David van Leeuwen diff --git a/egs/librispeech/s5/local/chain/tuning/run_tdnn_1d.sh b/egs/librispeech/s5/local/chain/tuning/run_tdnn_1d.sh index 865b10dea0c..cae7e0249a1 100755 --- a/egs/librispeech/s5/local/chain/tuning/run_tdnn_1d.sh +++ b/egs/librispeech/s5/local/chain/tuning/run_tdnn_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # 1d is as 1c but a recipe based on the newer, more compact configs, and with diff --git a/egs/librispeech/s5/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/librispeech/s5/local/chain/tuning/run_tdnn_lstm_1a.sh index 0e97e46194d..a25078fbbec 100755 --- a/egs/librispeech/s5/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/librispeech/s5/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is the tdnn-lstmp based on the run_tdnn_lstm_1n.sh under Switchboard. # training acoustic model and decoding: diff --git a/egs/librispeech/s5/local/chain/tuning/run_tdnn_lstm_1b.sh b/egs/librispeech/s5/local/chain/tuning/run_tdnn_lstm_1b.sh index 0da813267fc..27f15581e67 100755 --- a/egs/librispeech/s5/local/chain/tuning/run_tdnn_lstm_1b.sh +++ b/egs/librispeech/s5/local/chain/tuning/run_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is the tdnn-lstmp based on the run_tdnn_lstm_1a.sh under Librispeech but with larger model size. # training acoustic model and decoding: diff --git a/egs/librispeech/s5/local/data_prep.sh b/egs/librispeech/s5/local/data_prep.sh index 20c5697d61f..c05c3f89109 100755 --- a/egs/librispeech/s5/local/data_prep.sh +++ b/egs/librispeech/s5/local/data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # 2014 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/librispeech/s5/local/decode_example.sh b/egs/librispeech/s5/local/decode_example.sh index 815bf17b9f7..3b1b93d90d9 100755 --- a/egs/librispeech/s5/local/decode_example.sh +++ b/egs/librispeech/s5/local/decode_example.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Guoguo Chen # Apache 2.0 diff --git a/egs/librispeech/s5/local/download_and_untar.sh b/egs/librispeech/s5/local/download_and_untar.sh index 1bb6d909edc..5cf6adde8bc 100755 --- a/egs/librispeech/s5/local/download_and_untar.sh +++ b/egs/librispeech/s5/local/download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 diff --git a/egs/librispeech/s5/local/download_lm.sh b/egs/librispeech/s5/local/download_lm.sh index 382f313df7c..129ca1edbe3 100755 --- a/egs/librispeech/s5/local/download_lm.sh +++ b/egs/librispeech/s5/local/download_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/librispeech/s5/local/format_data.sh b/egs/librispeech/s5/local/format_data.sh index 71ef6f0e36c..7b5a0823b15 100755 --- a/egs/librispeech/s5/local/format_data.sh +++ b/egs/librispeech/s5/local/format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/librispeech/s5/local/format_lms.sh b/egs/librispeech/s5/local/format_lms.sh index b530f61d2d9..d1a18bada88 100755 --- a/egs/librispeech/s5/local/format_lms.sh +++ b/egs/librispeech/s5/local/format_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/librispeech/s5/local/g2p.sh b/egs/librispeech/s5/local/g2p.sh index 5bc934499d9..b3ffa8e19b1 100755 --- a/egs/librispeech/s5/local/g2p.sh +++ b/egs/librispeech/s5/local/g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/librispeech/s5/local/g2p/train_g2p.sh b/egs/librispeech/s5/local/g2p/train_g2p.sh index 635a382e575..216fc3b5dc0 100755 --- a/egs/librispeech/s5/local/g2p/train_g2p.sh +++ b/egs/librispeech/s5/local/g2p/train_g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/librispeech/s5/local/lm/install_festival.sh b/egs/librispeech/s5/local/lm/install_festival.sh index d5fa72b6d45..01dacd29b71 100755 --- a/egs/librispeech/s5/local/lm/install_festival.sh +++ b/egs/librispeech/s5/local/lm/install_festival.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./path.sh || exit 1 diff --git a/egs/librispeech/s5/local/lm/normalize_text.sh b/egs/librispeech/s5/local/lm/normalize_text.sh index 1c4286401ea..50e58205382 100755 --- a/egs/librispeech/s5/local/lm/normalize_text.sh +++ b/egs/librispeech/s5/local/lm/normalize_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/librispeech/s5/local/lm/train_lm.sh b/egs/librispeech/s5/local/lm/train_lm.sh index 6e6ae5970fb..0af3bb0e28c 100755 --- a/egs/librispeech/s5/local/lm/train_lm.sh +++ b/egs/librispeech/s5/local/lm/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/librispeech/s5/local/nnet2/run_5a_clean_100.sh b/egs/librispeech/s5/local/nnet2/run_5a_clean_100.sh index b0b46859170..c84072995ac 100755 --- a/egs/librispeech/s5/local/nnet2/run_5a_clean_100.sh +++ b/egs/librispeech/s5/local/nnet2/run_5a_clean_100.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is p-norm neural net training, with the "fast" script, on top of adapted # 40-dimensional features. diff --git a/egs/librispeech/s5/local/nnet2/run_5c.sh b/egs/librispeech/s5/local/nnet2/run_5c.sh index fefca74b748..bce646615c7 100755 --- a/egs/librispeech/s5/local/nnet2/run_5c.sh +++ b/egs/librispeech/s5/local/nnet2/run_5c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is neural net training on top of adapted 40-dimensional features. # diff --git a/egs/librispeech/s5/local/nnet2/run_6a_clean_460.sh b/egs/librispeech/s5/local/nnet2/run_6a_clean_460.sh index 06be974d8ac..1e33e50681c 100755 --- a/egs/librispeech/s5/local/nnet2/run_6a_clean_460.sh +++ b/egs/librispeech/s5/local/nnet2/run_6a_clean_460.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is p-norm neural net training, with the "fast" script, on top of adapted # 40-dimensional features. diff --git a/egs/librispeech/s5/local/nnet2/run_7a_960.sh b/egs/librispeech/s5/local/nnet2/run_7a_960.sh index f05ff8d2542..0eb2af6434f 100755 --- a/egs/librispeech/s5/local/nnet2/run_7a_960.sh +++ b/egs/librispeech/s5/local/nnet2/run_7a_960.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is p-norm neural net training, with the "fast" script, on top of adapted # 40-dimensional features. diff --git a/egs/librispeech/s5/local/nnet3/compare_wer.sh b/egs/librispeech/s5/local/nnet3/compare_wer.sh index aaf811bb0d4..4a272839687 100755 --- a/egs/librispeech/s5/local/nnet3/compare_wer.sh +++ b/egs/librispeech/s5/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/librispeech/s5/local/nnet3/run_ivector_common.sh b/egs/librispeech/s5/local/nnet3/run_ivector_common.sh index b937232eb8d..1e1d4aef901 100755 --- a/egs/librispeech/s5/local/nnet3/run_ivector_common.sh +++ b/egs/librispeech/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/librispeech/s5/local/nnet3/run_tdnn_discriminative.sh b/egs/librispeech/s5/local/nnet3/run_tdnn_discriminative.sh index f283d69e7fe..d4ecd6ea0f0 100755 --- a/egs/librispeech/s5/local/nnet3/run_tdnn_discriminative.sh +++ b/egs/librispeech/s5/local/nnet3/run_tdnn_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "This script has not yet been tested, you would have to comment this statement if you want to run it. Please let us know if you see any issues" && exit 1; diff --git a/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1a.sh b/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1a.sh index 28ee2b92004..e4c98ccef12 100755 --- a/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1a.sh +++ b/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is the standard "tdnn" system, built in nnet3; it's what we use to # call multi-splice. diff --git a/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1b.sh b/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1b.sh index 850f73214f9..bb695d8bd79 100755 --- a/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1b.sh +++ b/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1b is as 1a but uses xconfigs. diff --git a/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1c.sh b/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1c.sh index 3ce593025ac..2f1ceb7595e 100755 --- a/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1c.sh +++ b/egs/librispeech/s5/local/nnet3/tuning/run_tdnn_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1c is as 1b, but uses more modern TDNN configuration. diff --git a/egs/librispeech/s5/local/online/run_nnet2.sh b/egs/librispeech/s5/local/online/run_nnet2.sh index 5e0a616906f..b7dbe22a8d5 100755 --- a/egs/librispeech/s5/local/online/run_nnet2.sh +++ b/egs/librispeech/s5/local/online/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # example script for online-nnet2 system training and decoding, # based on the one for fisher-English. diff --git a/egs/librispeech/s5/local/online/run_nnet2_common.sh b/egs/librispeech/s5/local/online/run_nnet2_common.sh index 1813233e7d0..9666e6b26b9 100755 --- a/egs/librispeech/s5/local/online/run_nnet2_common.sh +++ b/egs/librispeech/s5/local/online/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script contains some common (shared) parts of the run_nnet*.sh scripts. diff --git a/egs/librispeech/s5/local/online/run_nnet2_disc.sh b/egs/librispeech/s5/local/online/run_nnet2_disc.sh index 65a661a21fe..108b1717871 100755 --- a/egs/librispeech/s5/local/online/run_nnet2_disc.sh +++ b/egs/librispeech/s5/local/online/run_nnet2_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script does discriminative training on top of the online, diff --git a/egs/librispeech/s5/local/online/run_nnet2_ms.sh b/egs/librispeech/s5/local/online/run_nnet2_ms.sh index c74de372fcc..7fa3f179fd6 100755 --- a/egs/librispeech/s5/local/online/run_nnet2_ms.sh +++ b/egs/librispeech/s5/local/online/run_nnet2_ms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the "multi-splice" version of the online-nnet2 training script. # It's currently the best recipe. diff --git a/egs/librispeech/s5/local/online/run_nnet2_ms_disc.sh b/egs/librispeech/s5/local/online/run_nnet2_ms_disc.sh index f20d3230cc2..6c52db7831b 100755 --- a/egs/librispeech/s5/local/online/run_nnet2_ms_disc.sh +++ b/egs/librispeech/s5/local/online/run_nnet2_ms_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script does discriminative training on top of the online, multi-splice diff --git a/egs/librispeech/s5/local/online_pitch/run_nnet2_common.sh b/egs/librispeech/s5/local/online_pitch/run_nnet2_common.sh index c5fdd6033f6..32e03f922ae 100755 --- a/egs/librispeech/s5/local/online_pitch/run_nnet2_common.sh +++ b/egs/librispeech/s5/local/online_pitch/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script contains some common (shared) parts of the run_nnet*.sh scripts. diff --git a/egs/librispeech/s5/local/online_pitch/run_nnet2_ms.sh b/egs/librispeech/s5/local/online_pitch/run_nnet2_ms.sh index ca7b6139e0b..3509e0d2eed 100755 --- a/egs/librispeech/s5/local/online_pitch/run_nnet2_ms.sh +++ b/egs/librispeech/s5/local/online_pitch/run_nnet2_ms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the "multi-splice" version of the online-nnet2 training script, # with pitch. diff --git a/egs/librispeech/s5/local/prepare_dict.sh b/egs/librispeech/s5/local/prepare_dict.sh index f9efb2ee46b..7b345b6bf1c 100755 --- a/egs/librispeech/s5/local/prepare_dict.sh +++ b/egs/librispeech/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/librispeech/s5/local/prepare_example_data.sh b/egs/librispeech/s5/local/prepare_example_data.sh index 169aaea52a3..fc010dcc907 100755 --- a/egs/librispeech/s5/local/prepare_example_data.sh +++ b/egs/librispeech/s5/local/prepare_example_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Guoguo Chen # Apache 2.0 diff --git a/egs/librispeech/s5/local/rnnlm/tuning/run_tdnn_lstm_1a.sh b/egs/librispeech/s5/local/rnnlm/tuning/run_tdnn_lstm_1a.sh index 137a972f3d9..b0eace29773 100755 --- a/egs/librispeech/s5/local/rnnlm/tuning/run_tdnn_lstm_1a.sh +++ b/egs/librispeech/s5/local/rnnlm/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) # 2018 Ke Li diff --git a/egs/librispeech/s5/local/run_cleanup_segmentation.sh b/egs/librispeech/s5/local/run_cleanup_segmentation.sh index c67d76a0096..e88b4e44619 100755 --- a/egs/librispeech/s5/local/run_cleanup_segmentation.sh +++ b/egs/librispeech/s5/local/run_cleanup_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Yiming Wang diff --git a/egs/librispeech/s5/local/run_data_cleaning.sh b/egs/librispeech/s5/local/run_data_cleaning.sh index 3300ad4c4a1..f856ce1154e 100755 --- a/egs/librispeech/s5/local/run_data_cleaning.sh +++ b/egs/librispeech/s5/local/run_data_cleaning.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script shows how you can do data-cleaning, and exclude data that has a diff --git a/egs/librispeech/s5/local/run_nnet2.sh b/egs/librispeech/s5/local/run_nnet2.sh index f816e41af6e..be50a1c8608 100755 --- a/egs/librispeech/s5/local/run_nnet2.sh +++ b/egs/librispeech/s5/local/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash train_set="train-clean-100" test_sets="dev-clean dev-other" diff --git a/egs/librispeech/s5/local/run_nnet2_clean_100.sh b/egs/librispeech/s5/local/run_nnet2_clean_100.sh index 091bf2ab237..d64f6861395 100755 --- a/egs/librispeech/s5/local/run_nnet2_clean_100.sh +++ b/egs/librispeech/s5/local/run_nnet2_clean_100.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . utils/parse_options.sh . ./cmd.sh diff --git a/egs/librispeech/s5/local/run_nnet2_clean_460.sh b/egs/librispeech/s5/local/run_nnet2_clean_460.sh index 67d40eab629..fb5ecfbea28 100755 --- a/egs/librispeech/s5/local/run_nnet2_clean_460.sh +++ b/egs/librispeech/s5/local/run_nnet2_clean_460.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . utils/parse_options.sh . ./cmd.sh diff --git a/egs/librispeech/s5/local/run_rnnlm.sh b/egs/librispeech/s5/local/run_rnnlm.sh index ebb1832040b..819a2fafd61 100755 --- a/egs/librispeech/s5/local/run_rnnlm.sh +++ b/egs/librispeech/s5/local/run_rnnlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Yandex (Author: Ilya Edrenkin) # Apache 2.0 diff --git a/egs/librispeech/s5/local/score.sh b/egs/librispeech/s5/local/score.sh index c812199fc98..cb5bbb7277b 100755 --- a/egs/librispeech/s5/local/score.sh +++ b/egs/librispeech/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/librispeech/s5/run.sh b/egs/librispeech/s5/run.sh index f784a8972db..86907413503 100755 --- a/egs/librispeech/s5/run.sh +++ b/egs/librispeech/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Set this to somewhere where you want to put your data, or where diff --git a/egs/lre/v1/lid/extract_ivectors.sh b/egs/lre/v1/lid/extract_ivectors.sh index 4a5bf5650cc..a6fb4953332 100755 --- a/egs/lre/v1/lid/extract_ivectors.sh +++ b/egs/lre/v1/lid/extract_ivectors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014 David Snyder diff --git a/egs/lre/v1/lid/get_vtln_warps.sh b/egs/lre/v1/lid/get_vtln_warps.sh index 72a8fb33200..94f06bb6b80 100755 --- a/egs/lre/v1/lid/get_vtln_warps.sh +++ b/egs/lre/v1/lid/get_vtln_warps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Daniel Povey # Apache 2.0 diff --git a/egs/lre/v1/lid/train_diag_ubm.sh b/egs/lre/v1/lid/train_diag_ubm.sh index 8ba703073c0..52a947b7a39 100755 --- a/egs/lre/v1/lid/train_diag_ubm.sh +++ b/egs/lre/v1/lid/train_diag_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2013 Daniel Povey diff --git a/egs/lre/v1/lid/train_full_ubm.sh b/egs/lre/v1/lid/train_full_ubm.sh index 4511d0985fa..7fc25e86667 100755 --- a/egs/lre/v1/lid/train_full_ubm.sh +++ b/egs/lre/v1/lid/train_full_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # 2013 Daniel Povey # 2014 David Snyder diff --git a/egs/lre/v1/lid/train_ivector_extractor.sh b/egs/lre/v1/lid/train_ivector_extractor.sh index eda607a9eff..17f87600892 100755 --- a/egs/lre/v1/lid/train_ivector_extractor.sh +++ b/egs/lre/v1/lid/train_ivector_extractor.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014 David Snyder diff --git a/egs/lre/v1/lid/train_lvtln_model.sh b/egs/lre/v1/lid/train_lvtln_model.sh index 35e6968e4e6..015e80ea62c 100755 --- a/egs/lre/v1/lid/train_lvtln_model.sh +++ b/egs/lre/v1/lid/train_lvtln_model.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Daniel Povey # Apache 2.0 diff --git a/egs/lre/v1/local/split_long_utts.sh b/egs/lre/v1/local/split_long_utts.sh index 083954ea288..f8df872d77b 100755 --- a/egs/lre/v1/local/split_long_utts.sh +++ b/egs/lre/v1/local/split_long_utts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash max_utt_len=60 # 60 seconds. stage=0 diff --git a/egs/lre/v1/run.sh b/egs/lre/v1/run.sh index 9818a8aa5f7..6941196f94a 100755 --- a/egs/lre/v1/run.sh +++ b/egs/lre/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 David Snyder # 2014 Daniel Povey # Apache 2.0. diff --git a/egs/lre/v1/run_logistic_regression.sh b/egs/lre/v1/run_logistic_regression.sh index d39dc3353c2..d19d0d29638 100755 --- a/egs/lre/v1/run_logistic_regression.sh +++ b/egs/lre/v1/run_logistic_regression.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 David Snyder, Daniel Povey # Apache 2.0. # diff --git a/egs/lre07/v1/lid/extract_ivectors.sh b/egs/lre07/v1/lid/extract_ivectors.sh index b1d745dda32..0ed3bbd53d8 100755 --- a/egs/lre07/v1/lid/extract_ivectors.sh +++ b/egs/lre07/v1/lid/extract_ivectors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014 David Snyder diff --git a/egs/lre07/v1/lid/extract_ivectors_dnn.sh b/egs/lre07/v1/lid/extract_ivectors_dnn.sh index f2c3f2697d3..56b8d339dc0 100755 --- a/egs/lre07/v1/lid/extract_ivectors_dnn.sh +++ b/egs/lre07/v1/lid/extract_ivectors_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014-2015 David Snyder diff --git a/egs/lre07/v1/lid/get_vtln_warps.sh b/egs/lre07/v1/lid/get_vtln_warps.sh index 72a8fb33200..94f06bb6b80 100755 --- a/egs/lre07/v1/lid/get_vtln_warps.sh +++ b/egs/lre07/v1/lid/get_vtln_warps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Daniel Povey # Apache 2.0 diff --git a/egs/lre07/v1/lid/init_full_ubm_from_dnn.sh b/egs/lre07/v1/lid/init_full_ubm_from_dnn.sh index 45e32477cfc..334a88551a3 100755 --- a/egs/lre07/v1/lid/init_full_ubm_from_dnn.sh +++ b/egs/lre07/v1/lid/init_full_ubm_from_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # 2015 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2015 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/lre07/v1/lid/nnet2/get_egs2.sh b/egs/lre07/v1/lid/nnet2/get_egs2.sh index 78f4b5a5101..3edf37e97d7 100755 --- a/egs/lre07/v1/lid/nnet2/get_egs2.sh +++ b/egs/lre07/v1/lid/nnet2/get_egs2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2015 David Snyder diff --git a/egs/lre07/v1/lid/nnet2/get_lda.sh b/egs/lre07/v1/lid/nnet2/get_lda.sh index a8b0a87fa22..a030abbda2b 100755 --- a/egs/lre07/v1/lid/nnet2/get_lda.sh +++ b/egs/lre07/v1/lid/nnet2/get_lda.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). # 2015 David Snyder diff --git a/egs/lre07/v1/lid/nnet2/train_multisplice_accel2.sh b/egs/lre07/v1/lid/nnet2/train_multisplice_accel2.sh index 533001934ab..48fd79556cb 100755 --- a/egs/lre07/v1/lid/nnet2/train_multisplice_accel2.sh +++ b/egs/lre07/v1/lid/nnet2/train_multisplice_accel2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/lre07/v1/lid/run_logistic_regression.sh b/egs/lre07/v1/lid/run_logistic_regression.sh index 9caeda2423f..3ce16e40297 100755 --- a/egs/lre07/v1/lid/run_logistic_regression.sh +++ b/egs/lre07/v1/lid/run_logistic_regression.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 David Snyder, Daniel Povey # Apache 2.0. # diff --git a/egs/lre07/v1/lid/train_diag_ubm.sh b/egs/lre07/v1/lid/train_diag_ubm.sh index a5e256818ce..3092f1c559b 100755 --- a/egs/lre07/v1/lid/train_diag_ubm.sh +++ b/egs/lre07/v1/lid/train_diag_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2013 Daniel Povey diff --git a/egs/lre07/v1/lid/train_full_ubm.sh b/egs/lre07/v1/lid/train_full_ubm.sh index 4511d0985fa..7fc25e86667 100755 --- a/egs/lre07/v1/lid/train_full_ubm.sh +++ b/egs/lre07/v1/lid/train_full_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # 2013 Daniel Povey # 2014 David Snyder diff --git a/egs/lre07/v1/lid/train_ivector_extractor.sh b/egs/lre07/v1/lid/train_ivector_extractor.sh index 55bd54bb275..6bdc23c08e2 100755 --- a/egs/lre07/v1/lid/train_ivector_extractor.sh +++ b/egs/lre07/v1/lid/train_ivector_extractor.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014 David Snyder diff --git a/egs/lre07/v1/lid/train_ivector_extractor_dnn.sh b/egs/lre07/v1/lid/train_ivector_extractor_dnn.sh index 72c7e486273..19e1315d7f0 100755 --- a/egs/lre07/v1/lid/train_ivector_extractor_dnn.sh +++ b/egs/lre07/v1/lid/train_ivector_extractor_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014-2015 David Snyder diff --git a/egs/lre07/v1/lid/train_lvtln_model.sh b/egs/lre07/v1/lid/train_lvtln_model.sh index 77dd8c4bb5a..531e18bc246 100755 --- a/egs/lre07/v1/lid/train_lvtln_model.sh +++ b/egs/lre07/v1/lid/train_lvtln_model.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Daniel Povey # Apache 2.0 diff --git a/egs/lre07/v1/local/lre07_eval/lre07_eval.sh b/egs/lre07/v1/local/lre07_eval/lre07_eval.sh index e12ddccece0..fe185a1c397 100755 --- a/egs/lre07/v1/local/lre07_eval/lre07_eval.sh +++ b/egs/lre07/v1/local/lre07_eval/lre07_eval.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 David Snyder # Apache 2.0. # diff --git a/egs/lre07/v1/local/split_long_utts.sh b/egs/lre07/v1/local/split_long_utts.sh index 083954ea288..f8df872d77b 100755 --- a/egs/lre07/v1/local/split_long_utts.sh +++ b/egs/lre07/v1/local/split_long_utts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash max_utt_len=60 # 60 seconds. stage=0 diff --git a/egs/lre07/v1/run.sh b/egs/lre07/v1/run.sh index ca9f3df41bb..984b1982c6a 100755 --- a/egs/lre07/v1/run.sh +++ b/egs/lre07/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014-2015 David Snyder # Daniel Povey # Apache 2.0. diff --git a/egs/lre07/v2/local/dnn/fisher_data_prep.sh b/egs/lre07/v2/local/dnn/fisher_data_prep.sh index 771c868064d..fc96c491f51 100755 --- a/egs/lre07/v2/local/dnn/fisher_data_prep.sh +++ b/egs/lre07/v2/local/dnn/fisher_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0. diff --git a/egs/lre07/v2/local/dnn/fisher_prepare_dict.sh b/egs/lre07/v2/local/dnn/fisher_prepare_dict.sh index 1ffa4928fd7..a4f3f3c2ca1 100755 --- a/egs/lre07/v2/local/dnn/fisher_prepare_dict.sh +++ b/egs/lre07/v2/local/dnn/fisher_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # To be run from one directory above this script. diff --git a/egs/lre07/v2/local/dnn/fisher_train_lms.sh b/egs/lre07/v2/local/dnn/fisher_train_lms.sh index 354882a3760..3497da32213 100755 --- a/egs/lre07/v2/local/dnn/fisher_train_lms.sh +++ b/egs/lre07/v2/local/dnn/fisher_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/lre07/v2/local/dnn/remove_dup_utts.sh b/egs/lre07/v2/local/dnn/remove_dup_utts.sh index 1211e0e04fd..f40a7b781c8 100755 --- a/egs/lre07/v2/local/dnn/remove_dup_utts.sh +++ b/egs/lre07/v2/local/dnn/remove_dup_utts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Remove excess utterances once they appear more than a specified # number of times with the same transcription, in a data set. diff --git a/egs/lre07/v2/local/dnn/run_nnet2_common.sh b/egs/lre07/v2/local/dnn/run_nnet2_common.sh index 2d0703b51c0..032282c11ef 100755 --- a/egs/lre07/v2/local/dnn/run_nnet2_common.sh +++ b/egs/lre07/v2/local/dnn/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Make the features. diff --git a/egs/lre07/v2/local/dnn/run_nnet2_multisplice.sh b/egs/lre07/v2/local/dnn/run_nnet2_multisplice.sh index 699cbe60542..c8e818e45a5 100755 --- a/egs/lre07/v2/local/dnn/run_nnet2_multisplice.sh +++ b/egs/lre07/v2/local/dnn/run_nnet2_multisplice.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on run_nnet2_multisplice.sh in # egs/fisher_english/s5/local/online. It has been modified diff --git a/egs/lre07/v2/local/dnn/train_dnn.sh b/egs/lre07/v2/local/dnn/train_dnn.sh index dd2469b4009..b779f20d8a0 100755 --- a/egs/lre07/v2/local/dnn/train_dnn.sh +++ b/egs/lre07/v2/local/dnn/train_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on egs/fisher_english/s5/run.sh. It trains a # multisplice time-delay neural network used in the DNN-based speaker diff --git a/egs/lre07/v2/local/lre07_eval/lre07_eval.sh b/egs/lre07/v2/local/lre07_eval/lre07_eval.sh index e12ddccece0..fe185a1c397 100755 --- a/egs/lre07/v2/local/lre07_eval/lre07_eval.sh +++ b/egs/lre07/v2/local/lre07_eval/lre07_eval.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 David Snyder # Apache 2.0. # diff --git a/egs/lre07/v2/local/split_long_utts.sh b/egs/lre07/v2/local/split_long_utts.sh index 083954ea288..f8df872d77b 100755 --- a/egs/lre07/v2/local/split_long_utts.sh +++ b/egs/lre07/v2/local/split_long_utts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash max_utt_len=60 # 60 seconds. stage=0 diff --git a/egs/lre07/v2/run.sh b/egs/lre07/v2/run.sh index e81dd869cc6..f8693234454 100755 --- a/egs/lre07/v2/run.sh +++ b/egs/lre07/v2/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016-2017 Go-Vivace Inc. (Author: Mousmita Sarma) # # Apache 2.0. diff --git a/egs/madcat_ar/v1/local/chain/compare_wer.sh b/egs/madcat_ar/v1/local/chain/compare_wer.sh index 7f04061dafb..01e403e8ba9 100755 --- a/egs/madcat_ar/v1/local/chain/compare_wer.sh +++ b/egs/madcat_ar/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/madcat_ar/v1/local/chain/tuning/run_cnn_1a.sh b/egs/madcat_ar/v1/local/chain/tuning/run_cnn_1a.sh index 892ee441516..7478c5acedb 100755 --- a/egs/madcat_ar/v1/local/chain/tuning/run_cnn_1a.sh +++ b/egs/madcat_ar/v1/local/chain/tuning/run_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # 2017 Chun Chieh Chang diff --git a/egs/madcat_ar/v1/local/chain/tuning/run_cnn_chainali_1a.sh b/egs/madcat_ar/v1/local/chain/tuning/run_cnn_chainali_1a.sh index 7ca7c652fd2..047893b8659 100755 --- a/egs/madcat_ar/v1/local/chain/tuning/run_cnn_chainali_1a.sh +++ b/egs/madcat_ar/v1/local/chain/tuning/run_cnn_chainali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/madcat_ar/v1/local/chain/tuning/run_cnn_e2eali_1a.sh b/egs/madcat_ar/v1/local/chain/tuning/run_cnn_e2eali_1a.sh index a8bc1836ffe..7fbd52b5965 100755 --- a/egs/madcat_ar/v1/local/chain/tuning/run_cnn_e2eali_1a.sh +++ b/egs/madcat_ar/v1/local/chain/tuning/run_cnn_e2eali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1a is the same as chainali_1c but uses the e2e chain model to get the # lattice alignments and to build a tree diff --git a/egs/madcat_ar/v1/local/chain/tuning/run_cnn_e2eali_1b.sh b/egs/madcat_ar/v1/local/chain/tuning/run_cnn_e2eali_1b.sh index 0828e051dcc..dfd0ad40bfc 100755 --- a/egs/madcat_ar/v1/local/chain/tuning/run_cnn_e2eali_1b.sh +++ b/egs/madcat_ar/v1/local/chain/tuning/run_cnn_e2eali_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1b is the same as chainali_1a but uses the e2e chain model to get the # lattice alignments and to build a tree diff --git a/egs/madcat_ar/v1/local/chain/tuning/run_e2e_cnn_1a.sh b/egs/madcat_ar/v1/local/chain/tuning/run_e2e_cnn_1a.sh index 3caf8ae4494..ad5f3cd4879 100755 --- a/egs/madcat_ar/v1/local/chain/tuning/run_e2e_cnn_1a.sh +++ b/egs/madcat_ar/v1/local/chain/tuning/run_e2e_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script does end2end chain training (i.e. from scratch) diff --git a/egs/madcat_ar/v1/local/extract_features.sh b/egs/madcat_ar/v1/local/extract_features.sh index 9fe588f31b8..dd802417f4f 100755 --- a/egs/madcat_ar/v1/local/extract_features.sh +++ b/egs/madcat_ar/v1/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/madcat_ar/v1/local/extract_lines.sh b/egs/madcat_ar/v1/local/extract_lines.sh index ab87836ae3a..c4b5e77a4b2 100755 --- a/egs/madcat_ar/v1/local/extract_lines.sh +++ b/egs/madcat_ar/v1/local/extract_lines.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Ashish Arora nj=4 diff --git a/egs/madcat_ar/v1/local/prepare_data.sh b/egs/madcat_ar/v1/local/prepare_data.sh index 1049db9826d..8a6fa428807 100755 --- a/egs/madcat_ar/v1/local/prepare_data.sh +++ b/egs/madcat_ar/v1/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Chun Chieh Chang # 2017 Ashish Arora diff --git a/egs/madcat_ar/v1/local/score.sh b/egs/madcat_ar/v1/local/score.sh index 31564d25326..e1befafd8b2 100755 --- a/egs/madcat_ar/v1/local/score.sh +++ b/egs/madcat_ar/v1/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh "$@" diff --git a/egs/madcat_ar/v1/local/tl/augment_data.sh b/egs/madcat_ar/v1/local/tl/augment_data.sh index cc44aa58a62..6f2d3cc0217 100755 --- a/egs/madcat_ar/v1/local/tl/augment_data.sh +++ b/egs/madcat_ar/v1/local/tl/augment_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # 2018 Ashish Arora diff --git a/egs/madcat_ar/v1/local/tl/chain/run_cnn_e2eali.sh b/egs/madcat_ar/v1/local/tl/chain/run_cnn_e2eali.sh index ccbb7119674..ec73d4dd406 100755 --- a/egs/madcat_ar/v1/local/tl/chain/run_cnn_e2eali.sh +++ b/egs/madcat_ar/v1/local/tl/chain/run_cnn_e2eali.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ./local/chain/compare_wer.sh exp/chain/cnn_e2eali_1a/ # System cnn_e2eali_1a diff --git a/egs/madcat_ar/v1/local/tl/chain/run_e2e_cnn.sh b/egs/madcat_ar/v1/local/tl/chain/run_e2e_cnn.sh index 3fca8cf5fdc..ca7fef9eb85 100755 --- a/egs/madcat_ar/v1/local/tl/chain/run_e2e_cnn.sh +++ b/egs/madcat_ar/v1/local/tl/chain/run_e2e_cnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script does end2end chain training (i.e. from scratch) diff --git a/egs/madcat_ar/v1/local/tl/run_text_localization.sh b/egs/madcat_ar/v1/local/tl/run_text_localization.sh index 8d12f7d802f..24269d9f479 100755 --- a/egs/madcat_ar/v1/local/tl/run_text_localization.sh +++ b/egs/madcat_ar/v1/local/tl/run_text_localization.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # 2018 Ashish Arora diff --git a/egs/madcat_ar/v1/local/tl/train_lm.sh b/egs/madcat_ar/v1/local/tl/train_lm.sh index 524bb2e9f40..c37fe64569f 100755 --- a/egs/madcat_ar/v1/local/tl/train_lm.sh +++ b/egs/madcat_ar/v1/local/tl/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/madcat_ar/v1/local/train_lm.sh b/egs/madcat_ar/v1/local/train_lm.sh index 903b288a834..c53a6fa8f35 100755 --- a/egs/madcat_ar/v1/local/train_lm.sh +++ b/egs/madcat_ar/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/madcat_ar/v1/run.sh b/egs/madcat_ar/v1/run.sh index 01bfdbed543..076f34ced2b 100755 --- a/egs/madcat_ar/v1/run.sh +++ b/egs/madcat_ar/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Chun Chieh Chang # 2017 Ashish Arora diff --git a/egs/madcat_ar/v1/run_end2end.sh b/egs/madcat_ar/v1/run_end2end.sh index 62f4eeb7c71..837c482af0f 100755 --- a/egs/madcat_ar/v1/run_end2end.sh +++ b/egs/madcat_ar/v1/run_end2end.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # 2018 Ashish Arora set -e diff --git a/egs/madcat_zh/v1/local/chain/compare_wer.sh b/egs/madcat_zh/v1/local/chain/compare_wer.sh index 4eb665fc702..2e2bc73e01c 100755 --- a/egs/madcat_zh/v1/local/chain/compare_wer.sh +++ b/egs/madcat_zh/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/madcat_zh/v1/local/chain/tuning/run_cnn_1a.sh b/egs/madcat_zh/v1/local/chain/tuning/run_cnn_1a.sh index 164d62a7ad9..17bae9941c4 100755 --- a/egs/madcat_zh/v1/local/chain/tuning/run_cnn_1a.sh +++ b/egs/madcat_zh/v1/local/chain/tuning/run_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # 2017 Chun Chieh Chang diff --git a/egs/madcat_zh/v1/local/chain/tuning/run_cnn_chainali_1a.sh b/egs/madcat_zh/v1/local/chain/tuning/run_cnn_chainali_1a.sh index be51bdcc3d1..7b15b89a549 100755 --- a/egs/madcat_zh/v1/local/chain/tuning/run_cnn_chainali_1a.sh +++ b/egs/madcat_zh/v1/local/chain/tuning/run_cnn_chainali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # chainali_1a is as 1a except it uses chain alignments (using 1a system) instead of gmm alignments diff --git a/egs/madcat_zh/v1/local/chain/tuning/run_cnn_chainali_1b.sh b/egs/madcat_zh/v1/local/chain/tuning/run_cnn_chainali_1b.sh index aa61620a92f..e14dbda0c39 100755 --- a/egs/madcat_zh/v1/local/chain/tuning/run_cnn_chainali_1b.sh +++ b/egs/madcat_zh/v1/local/chain/tuning/run_cnn_chainali_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # chainali_1b is as chainali_1a except it has 3 more cnn layers and 1 less tdnn layer. # ./local/chain/compare_wer.sh exp/chain/cnn_chainali_1a/ exp/chain/cnn_chainali_1b/ diff --git a/egs/madcat_zh/v1/local/chain/tuning/run_e2e_cnn_1a.sh b/egs/madcat_zh/v1/local/chain/tuning/run_e2e_cnn_1a.sh index ffc9a4c8a14..037fcbaaad2 100755 --- a/egs/madcat_zh/v1/local/chain/tuning/run_e2e_cnn_1a.sh +++ b/egs/madcat_zh/v1/local/chain/tuning/run_e2e_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # local/chain/compare_wer.sh exp/chain/e2e_cnn_1a diff --git a/egs/madcat_zh/v1/local/extract_features.sh b/egs/madcat_zh/v1/local/extract_features.sh index 9fe588f31b8..dd802417f4f 100755 --- a/egs/madcat_zh/v1/local/extract_features.sh +++ b/egs/madcat_zh/v1/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/madcat_zh/v1/local/extract_lines.sh b/egs/madcat_zh/v1/local/extract_lines.sh index ed752e97e13..391f51a9ea9 100755 --- a/egs/madcat_zh/v1/local/extract_lines.sh +++ b/egs/madcat_zh/v1/local/extract_lines.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Ashish Arora nj=4 diff --git a/egs/madcat_zh/v1/local/prepare_data.sh b/egs/madcat_zh/v1/local/prepare_data.sh index ba35b90b173..33086111426 100755 --- a/egs/madcat_zh/v1/local/prepare_data.sh +++ b/egs/madcat_zh/v1/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Chun Chieh Chang # 2017 Ashish Arora diff --git a/egs/madcat_zh/v1/local/score.sh b/egs/madcat_zh/v1/local/score.sh index 31564d25326..e1befafd8b2 100755 --- a/egs/madcat_zh/v1/local/score.sh +++ b/egs/madcat_zh/v1/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh "$@" diff --git a/egs/madcat_zh/v1/local/train_lm.sh b/egs/madcat_zh/v1/local/train_lm.sh index a8e2dc71f28..d37c8ef110a 100755 --- a/egs/madcat_zh/v1/local/train_lm.sh +++ b/egs/madcat_zh/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/madcat_zh/v1/run.sh b/egs/madcat_zh/v1/run.sh index b3ef370c830..c9dba0443ec 100755 --- a/egs/madcat_zh/v1/run.sh +++ b/egs/madcat_zh/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Chun Chieh Chang # 2017 Ashish Arora diff --git a/egs/madcat_zh/v1/run_end2end.sh b/egs/madcat_zh/v1/run_end2end.sh index 7e0fc1e25d1..eefb19a85b6 100755 --- a/egs/madcat_zh/v1/run_end2end.sh +++ b/egs/madcat_zh/v1/run_end2end.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian set -e diff --git a/egs/malach/s5/local/chain/compare_wer_general.sh b/egs/malach/s5/local/chain/compare_wer_general.sh index 9bd017414ab..7d36c298396 100755 --- a/egs/malach/s5/local/chain/compare_wer_general.sh +++ b/egs/malach/s5/local/chain/compare_wer_general.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo -n "System " for x in $*; do printf " % 10s" $x; done diff --git a/egs/malach/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/malach/s5/local/chain/tuning/run_tdnn_1a.sh index 007e94ef1a3..69995f0b8aa 100644 --- a/egs/malach/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/malach/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 IBM Corp. (Author: Michael Picheny) Adapted AMI recipe to MALACH corpus diff --git a/egs/malach/s5/local/malach_data_prep.sh b/egs/malach/s5/local/malach_data_prep.sh index 174adf9ce0e..4b812e7ee39 100755 --- a/egs/malach/s5/local/malach_data_prep.sh +++ b/egs/malach/s5/local/malach_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski) # 2016 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/malach/s5/local/malach_prepare_dict.sh b/egs/malach/s5/local/malach_prepare_dict.sh index 4c3c039f74a..e4638b7693e 100755 --- a/egs/malach/s5/local/malach_prepare_dict.sh +++ b/egs/malach/s5/local/malach_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #adapted from fisher dict preparation script, Author: Pawel Swietojanski # Copyright 2019 IBM Corp. (Author: Michael Picheny) Adapted AMI recipe to MALACH corpus diff --git a/egs/malach/s5/local/malach_scoring_data_prep.sh b/egs/malach/s5/local/malach_scoring_data_prep.sh index 8c9c79a1fd6..1b1b1c83492 100755 --- a/egs/malach/s5/local/malach_scoring_data_prep.sh +++ b/egs/malach/s5/local/malach_scoring_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski) diff --git a/egs/malach/s5/local/malach_text_prep.sh b/egs/malach/s5/local/malach_text_prep.sh index 55885c66ce9..fcb8d17fb18 100755 --- a/egs/malach/s5/local/malach_text_prep.sh +++ b/egs/malach/s5/local/malach_text_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 IBM Corp. (Author: Michael Picheny) Adapted AMI recipe to MALACH corpus # Copyright 2015, Brno University of Technology (Author: Karel Vesely) diff --git a/egs/malach/s5/local/malach_train_lms.sh b/egs/malach/s5/local/malach_train_lms.sh index c4919022bf1..722ba4cfffd 100755 --- a/egs/malach/s5/local/malach_train_lms.sh +++ b/egs/malach/s5/local/malach_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019, IBM Research (Author: Michael Picheny) Adapted AMI recipe to MALACH Corpus # Copyright 2013 Arnab Ghoshal, Pawel Swietojanski diff --git a/egs/malach/s5/local/nnet3/prepare_lores_feats.sh b/egs/malach/s5/local/nnet3/prepare_lores_feats.sh index 5601fcf7dd6..17822f0283d 100755 --- a/egs/malach/s5/local/nnet3/prepare_lores_feats.sh +++ b/egs/malach/s5/local/nnet3/prepare_lores_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/malach/s5/local/nnet3/run_ivector_common.sh b/egs/malach/s5/local/nnet3/run_ivector_common.sh index d841b8f50ef..e179f319815 100755 --- a/egs/malach/s5/local/nnet3/run_ivector_common.sh +++ b/egs/malach/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_1a.sh b/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_1a.sh index 7205a3adcd0..392b9e6c819 100755 --- a/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_1a.sh +++ b/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x diff --git a/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_1b.sh b/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_1b.sh index db01b3ecbf4..72fcd135a0a 100755 --- a/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_1b.sh +++ b/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh b/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh index 278ee345d50..0a96b10b8a9 100755 --- a/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh +++ b/egs/malach/s5/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/malach/s5/local/run_cleanup_segmentation.sh b/egs/malach/s5/local/run_cleanup_segmentation.sh index c2c730f1a9e..778fe96d2e7 100755 --- a/egs/malach/s5/local/run_cleanup_segmentation.sh +++ b/egs/malach/s5/local/run_cleanup_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 IBM (Michael Picheny) Adapted from AMI recipe for MALACH Corpus # Copyright 2016 Vimal Manohar diff --git a/egs/malach/s5/local/score.sh b/egs/malach/s5/local/score.sh index 00cc0c0f1a6..e8859c5011c 100755 --- a/egs/malach/s5/local/score.sh +++ b/egs/malach/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x diff --git a/egs/malach/s5/local/score_asclite.sh b/egs/malach/s5/local/score_asclite.sh index a47e66581ad..2e5bb20f000 100755 --- a/egs/malach/s5/local/score_asclite.sh +++ b/egs/malach/s5/local/score_asclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x diff --git a/egs/malach/s5/run.sh b/egs/malach/s5/run.sh index b8961d4df3c..57be778bb3f 100755 --- a/egs/malach/s5/run.sh +++ b/egs/malach/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh . ./path.sh diff --git a/egs/mandarin_bn_bc/s5/local/chain/run_chain_common.sh b/egs/mandarin_bn_bc/s5/local/chain/run_chain_common.sh index 8136f9c67d3..85c8589dc78 100755 --- a/egs/mandarin_bn_bc/s5/local/chain/run_chain_common.sh +++ b/egs/mandarin_bn_bc/s5/local/chain/run_chain_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script has common stages shared across librispeech chain recipes. # It generates a new topology in a new lang directory, gets the alignments as diff --git a/egs/mandarin_bn_bc/s5/local/chain/tuning/run_tdnn_1d.sh b/egs/mandarin_bn_bc/s5/local/chain/tuning/run_tdnn_1d.sh index d6a3a338a18..3c4f53eee7b 100755 --- a/egs/mandarin_bn_bc/s5/local/chain/tuning/run_tdnn_1d.sh +++ b/egs/mandarin_bn_bc/s5/local/chain/tuning/run_tdnn_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/egs/mandarin_bn_bc/s5/local/check_oov_rate.sh b/egs/mandarin_bn_bc/s5/local/check_oov_rate.sh index 3ac18bbeb4d..6c655205e31 100644 --- a/egs/mandarin_bn_bc/s5/local/check_oov_rate.sh +++ b/egs/mandarin_bn_bc/s5/local/check_oov_rate.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Johns Hopkins University (author: Jinyi Yang) # Apache 2.0 diff --git a/egs/mandarin_bn_bc/s5/local/gale_data_prep_audio.sh b/egs/mandarin_bn_bc/s5/local/gale_data_prep_audio.sh index 21f325b9b84..0ea6cfcf9f9 100755 --- a/egs/mandarin_bn_bc/s5/local/gale_data_prep_audio.sh +++ b/egs/mandarin_bn_bc/s5/local/gale_data_prep_audio.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 QCRI (author: Ahmed Ali) # Copyright 2016 Johns Hopkins Univeersity (author: Jan "Yenda" Trmal) diff --git a/egs/mandarin_bn_bc/s5/local/gale_data_prep_split.sh b/egs/mandarin_bn_bc/s5/local/gale_data_prep_split.sh index 682d4501769..b580bb5b76e 100755 --- a/egs/mandarin_bn_bc/s5/local/gale_data_prep_split.sh +++ b/egs/mandarin_bn_bc/s5/local/gale_data_prep_split.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 (author: Ahmed Ali, Hainan Xu) # Copyright 2016 Johns Hopkins Univeersity (author: Jan "Yenda" Trmal) diff --git a/egs/mandarin_bn_bc/s5/local/gale_data_prep_txt.sh b/egs/mandarin_bn_bc/s5/local/gale_data_prep_txt.sh index a51785f8bf8..53d391f88a6 100755 --- a/egs/mandarin_bn_bc/s5/local/gale_data_prep_txt.sh +++ b/egs/mandarin_bn_bc/s5/local/gale_data_prep_txt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 (author: Ahmed Ali, Hainan Xu) # Copyright 2016 Johns Hopkins Univeersity (author: Jan "Yenda" Trmal) diff --git a/egs/mandarin_bn_bc/s5/local/gigaword_prep_txt.sh b/egs/mandarin_bn_bc/s5/local/gigaword_prep_txt.sh index c873a17c6d8..5359325bd9d 100644 --- a/egs/mandarin_bn_bc/s5/local/gigaword_prep_txt.sh +++ b/egs/mandarin_bn_bc/s5/local/gigaword_prep_txt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Johns Hopkins Univeersity (author: Jinyi Yang) # Apache 2.0 diff --git a/egs/mandarin_bn_bc/s5/local/mandarin_format_lms.sh b/egs/mandarin_bn_bc/s5/local/mandarin_format_lms.sh index 53d53bced72..728d2180b70 100755 --- a/egs/mandarin_bn_bc/s5/local/mandarin_format_lms.sh +++ b/egs/mandarin_bn_bc/s5/local/mandarin_format_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 QCRI (author: Ahmed Ali) # Apache 2.0 diff --git a/egs/mandarin_bn_bc/s5/local/mandarin_merge_dict.sh b/egs/mandarin_bn_bc/s5/local/mandarin_merge_dict.sh index 253d894a90c..18ddc6d03a8 100755 --- a/egs/mandarin_bn_bc/s5/local/mandarin_merge_dict.sh +++ b/egs/mandarin_bn_bc/s5/local/mandarin_merge_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Johns Hopkins University (author: Jinyi Yang) # Apache 2.0 diff --git a/egs/mandarin_bn_bc/s5/local/mandarin_mix_lm.sh b/egs/mandarin_bn_bc/s5/local/mandarin_mix_lm.sh index 767438d7202..a5bcf1dc8e0 100755 --- a/egs/mandarin_bn_bc/s5/local/mandarin_mix_lm.sh +++ b/egs/mandarin_bn_bc/s5/local/mandarin_mix_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Johns Hopkins University (author: Jinyi Yang) # Apache 2.0 diff --git a/egs/mandarin_bn_bc/s5/local/mandarin_prepare_dict.sh b/egs/mandarin_bn_bc/s5/local/mandarin_prepare_dict.sh index 6768b09d11a..73301f709b0 100755 --- a/egs/mandarin_bn_bc/s5/local/mandarin_prepare_dict.sh +++ b/egs/mandarin_bn_bc/s5/local/mandarin_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # prepare dictionary for Mandarin-ASR # it is done for English and Chinese separately, diff --git a/egs/mandarin_bn_bc/s5/local/mandarin_prepare_lm.sh b/egs/mandarin_bn_bc/s5/local/mandarin_prepare_lm.sh index 10c806b64ce..f9de16d78fb 100755 --- a/egs/mandarin_bn_bc/s5/local/mandarin_prepare_lm.sh +++ b/egs/mandarin_bn_bc/s5/local/mandarin_prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ngram_order=4 oov_sym="" diff --git a/egs/mandarin_bn_bc/s5/local/nnet3/run_ivector_common.sh b/egs/mandarin_bn_bc/s5/local/nnet3/run_ivector_common.sh index 6d79b2b1427..643167a4bae 100755 --- a/egs/mandarin_bn_bc/s5/local/nnet3/run_ivector_common.sh +++ b/egs/mandarin_bn_bc/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/mandarin_bn_bc/s5/local/rnnlm/run_tdnn_lstm_1a.sh b/egs/mandarin_bn_bc/s5/local/rnnlm/run_tdnn_lstm_1a.sh index 8a778be03dd..1b433890007 100644 --- a/egs/mandarin_bn_bc/s5/local/rnnlm/run_tdnn_lstm_1a.sh +++ b/egs/mandarin_bn_bc/s5/local/rnnlm/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) # 2018 Ke Li diff --git a/egs/mandarin_bn_bc/s5/local/score.sh b/egs/mandarin_bn_bc/s5/local/score.sh index 59c257d3280..72df0b378fd 100755 --- a/egs/mandarin_bn_bc/s5/local/score.sh +++ b/egs/mandarin_bn_bc/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey, Yenda Trmal) # Apache 2.0 diff --git a/egs/mandarin_bn_bc/s5/local/tdt_cleanup.sh b/egs/mandarin_bn_bc/s5/local/tdt_cleanup.sh index 009d6218a9b..6a2127fa20e 100644 --- a/egs/mandarin_bn_bc/s5/local/tdt_cleanup.sh +++ b/egs/mandarin_bn_bc/s5/local/tdt_cleanup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script removes non-speech, long musics or long silence from the original # speech recordings. diff --git a/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_audio.sh b/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_audio.sh index 0ba5d576407..1226f2ce918 100755 --- a/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_audio.sh +++ b/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_audio.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 QCRI (author: Ahmed Ali) # Copyright 2016 Johns Hopkins Univeersity (author: Jan "Yenda" Trmal) diff --git a/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_filter.sh b/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_filter.sh index 1aad9dd1b13..cb1f4feca7a 100644 --- a/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_filter.sh +++ b/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_filter.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 (author: Jinyi Yang) # Apache 2.0 diff --git a/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_txt.sh b/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_txt.sh index 6512871756a..4fd04acaaaa 100755 --- a/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_txt.sh +++ b/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_txt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Johns Hopkins University (author: Jinyi Yang) # Apache 2.0 diff --git a/egs/mandarin_bn_bc/s5/local/train_lms.sh b/egs/mandarin_bn_bc/s5/local/train_lms.sh index de644d123fc..308a7421d75 100755 --- a/egs/mandarin_bn_bc/s5/local/train_lms.sh +++ b/egs/mandarin_bn_bc/s5/local/train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/mandarin_bn_bc/s5/run.sh b/egs/mandarin_bn_bc/s5/run.sh index 198b75553f6..da183636b7c 100644 --- a/egs/mandarin_bn_bc/s5/run.sh +++ b/egs/mandarin_bn_bc/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Johns Hopkins University (author: Jinyi Yang) # Apache 2.0 diff --git a/egs/material/s5/local/chain/decode_test.sh b/egs/material/s5/local/chain/decode_test.sh index 40115a04cf6..d35ee5fd994 100755 --- a/egs/material/s5/local/chain/decode_test.sh +++ b/egs/material/s5/local/chain/decode_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Johns Hopkins University (author: Daniel Povey) # 2018 Mahsa Yarmohammadi diff --git a/egs/material/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/material/s5/local/chain/tuning/run_tdnn_1a.sh index 4f38ee886a7..533ca2a2fc5 100755 --- a/egs/material/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/material/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Johns Hopkins University (author: Daniel Povey) # 2017-2018 Yiming Wang diff --git a/egs/material/s5/local/chain/tuning/run_tdnn_1b.sh b/egs/material/s5/local/chain/tuning/run_tdnn_1b.sh index 023cb34b43d..d81e23547ba 100755 --- a/egs/material/s5/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/material/s5/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Johns Hopkins University (author: Daniel Povey) # 2017-2018 Yiming Wang diff --git a/egs/material/s5/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/material/s5/local/chain/tuning/run_tdnn_lstm_1a.sh index af5a62dad0d..711bd593ae2 100755 --- a/egs/material/s5/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/material/s5/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Johns Hopkins University (author: Daniel Povey) # 2017-2018 Yiming Wang diff --git a/egs/material/s5/local/g2p/apply_g2p.sh b/egs/material/s5/local/g2p/apply_g2p.sh index 704a1a906bb..66cd52a91e1 100755 --- a/egs/material/s5/local/g2p/apply_g2p.sh +++ b/egs/material/s5/local/g2p/apply_g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Allen Guo # 2017 Xiaohui Zhang diff --git a/egs/material/s5/local/g2p/train_g2p.sh b/egs/material/s5/local/g2p/train_g2p.sh index 43e75f6608d..af6072baef7 100755 --- a/egs/material/s5/local/g2p/train_g2p.sh +++ b/egs/material/s5/local/g2p/train_g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Intellisist, Inc. (Author: Navneeth K) # 2017 Xiaohui Zhang diff --git a/egs/material/s5/local/nnet3/run_ivector_common.sh b/egs/material/s5/local/nnet3/run_ivector_common.sh index a56b3bf67d8..3471834bb75 100755 --- a/egs/material/s5/local/nnet3/run_ivector_common.sh +++ b/egs/material/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/material/s5/local/prepare_audio_data.sh b/egs/material/s5/local/prepare_audio_data.sh index 2bf9283f435..ee65d0e47ea 100755 --- a/egs/material/s5/local/prepare_audio_data.sh +++ b/egs/material/s5/local/prepare_audio_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/material/s5/local/prepare_dict.sh b/egs/material/s5/local/prepare_dict.sh index 710f1a66e2e..123d9615244 100755 --- a/egs/material/s5/local/prepare_dict.sh +++ b/egs/material/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/material/s5/local/prepare_text_data.sh b/egs/material/s5/local/prepare_text_data.sh index 4200a55ed9d..52daa434f87 100755 --- a/egs/material/s5/local/prepare_text_data.sh +++ b/egs/material/s5/local/prepare_text_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/material/s5/local/preprocess_external_text.sh b/egs/material/s5/local/preprocess_external_text.sh index 4cbc457310e..83e6988a6f8 100755 --- a/egs/material/s5/local/preprocess_external_text.sh +++ b/egs/material/s5/local/preprocess_external_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail set -e -o pipefail diff --git a/egs/material/s5/local/rnnlm/run_tdnn_lstm.sh b/egs/material/s5/local/rnnlm/run_tdnn_lstm.sh index 3f5c7e547b1..2c9786fcb0f 100755 --- a/egs/material/s5/local/rnnlm/run_tdnn_lstm.sh +++ b/egs/material/s5/local/rnnlm/run_tdnn_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Johns Hopkins University (author: Daniel Povey) # 2017 Hainan Xu diff --git a/egs/material/s5/local/rnnlm/run_tdnn_lstm_2.sh b/egs/material/s5/local/rnnlm/run_tdnn_lstm_2.sh index 13cf0bde44c..4e4314ca3e0 100755 --- a/egs/material/s5/local/rnnlm/run_tdnn_lstm_2.sh +++ b/egs/material/s5/local/rnnlm/run_tdnn_lstm_2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Johns Hopkins University (author: Daniel Povey) # 2017 Hainan Xu diff --git a/egs/material/s5/local/score.sh b/egs/material/s5/local/score.sh index c7da00fba32..a443efb17dc 100755 --- a/egs/material/s5/local/score.sh +++ b/egs/material/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # License: Apache 2.0 diff --git a/egs/material/s5/local/score_segments.sh b/egs/material/s5/local/score_segments.sh index 064e15ae40d..4fb31037bdd 100755 --- a/egs/material/s5/local/score_segments.sh +++ b/egs/material/s5/local/score_segments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail set -o nounset # Treat unset variables as an error diff --git a/egs/material/s5/local/score_stm.sh b/egs/material/s5/local/score_stm.sh index 7e1236ce92e..31f1f31a7d6 100755 --- a/egs/material/s5/local/score_stm.sh +++ b/egs/material/s5/local/score_stm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (authors: Yenda Trmal) # 2018 Vimal Manohar diff --git a/egs/material/s5/local/score_wer_segments.sh b/egs/material/s5/local/score_wer_segments.sh index 555ec5056d9..dea325853c1 100755 --- a/egs/material/s5/local/score_wer_segments.sh +++ b/egs/material/s5/local/score_wer_segments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash [ -f ./path.sh ] && . ./path.sh diff --git a/egs/material/s5/local/semisup/chain/decode_test.sh b/egs/material/s5/local/semisup/chain/decode_test.sh index 3d9a1eda1f5..019e15db01b 100755 --- a/egs/material/s5/local/semisup/chain/decode_test.sh +++ b/egs/material/s5/local/semisup/chain/decode_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Johns Hopkins University (author: Daniel Povey) # 2018 Mahsa Yarmohammadi diff --git a/egs/material/s5/local/semisup/chain/tuning/run_tdnn_1a.sh b/egs/material/s5/local/semisup/chain/tuning/run_tdnn_1a.sh index 3d3056182ee..b171753ed3e 100755 --- a/egs/material/s5/local/semisup/chain/tuning/run_tdnn_1a.sh +++ b/egs/material/s5/local/semisup/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2019 Johns Hopkins University (author: Daniel Povey) # 2017 Vimal Manohar diff --git a/egs/material/s5/local/semisup/chain/tuning/run_tdnn_semisupervised_1a.sh b/egs/material/s5/local/semisup/chain/tuning/run_tdnn_semisupervised_1a.sh index 37c957a3227..3f5e3b7b97e 100755 --- a/egs/material/s5/local/semisup/chain/tuning/run_tdnn_semisupervised_1a.sh +++ b/egs/material/s5/local/semisup/chain/tuning/run_tdnn_semisupervised_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # 2019 Yiming Wang diff --git a/egs/material/s5/local/semisup/rnnlm/run_tdnn_lstm.sh b/egs/material/s5/local/semisup/rnnlm/run_tdnn_lstm.sh index 8fb570ea153..a6cbc79b5da 100755 --- a/egs/material/s5/local/semisup/rnnlm/run_tdnn_lstm.sh +++ b/egs/material/s5/local/semisup/rnnlm/run_tdnn_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Johns Hopkins University (author: Daniel Povey) # 2017 Hainan Xu diff --git a/egs/material/s5/local/semisup/run.sh b/egs/material/s5/local/semisup/run.sh index 6b22cb1ad36..a0949267c76 100755 --- a/egs/material/s5/local/semisup/run.sh +++ b/egs/material/s5/local/semisup/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # 2019 Yiming Wang diff --git a/egs/material/s5/local/train_lms_srilm.sh b/egs/material/s5/local/train_lms_srilm.sh index 8160b060dc7..eee6a47eb4d 100755 --- a/egs/material/s5/local/train_lms_srilm.sh +++ b/egs/material/s5/local/train_lms_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export LC_ALL=C words_file= diff --git a/egs/material/s5/run.sh b/egs/material/s5/run.sh index 4ba518f53e0..c35103e3793 100755 --- a/egs/material/s5/run.sh +++ b/egs/material/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Johns Hopkins University (Jan "Yenda" Trmal) # 2017-2018 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/mgb2_arabic/s5/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/mgb2_arabic/s5/local/chain/tuning/run_tdnn_lstm_1a.sh index 56aa815ffb9..c4e361e3b4f 100755 --- a/egs/mgb2_arabic/s5/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/mgb2_arabic/s5/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Adapted from gale_arabic s5b. diff --git a/egs/mgb2_arabic/s5/local/chain/tuning/run_tdnn_lstm_1a_disc.sh b/egs/mgb2_arabic/s5/local/chain/tuning/run_tdnn_lstm_1a_disc.sh index 290c13e223d..3fbc03e774a 100644 --- a/egs/mgb2_arabic/s5/local/chain/tuning/run_tdnn_lstm_1a_disc.sh +++ b/egs/mgb2_arabic/s5/local/chain/tuning/run_tdnn_lstm_1a_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/mgb2_arabic/s5/local/graphgeme_mgb_prep_dict.sh b/egs/mgb2_arabic/s5/local/graphgeme_mgb_prep_dict.sh index 5a88220a19a..2f7c7a5d592 100755 --- a/egs/mgb2_arabic/s5/local/graphgeme_mgb_prep_dict.sh +++ b/egs/mgb2_arabic/s5/local/graphgeme_mgb_prep_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2016, Qatar Computing Research Institute, HBKU diff --git a/egs/mgb2_arabic/s5/local/mgb_data_prep.sh b/egs/mgb2_arabic/s5/local/mgb_data_prep.sh index 9d5b3611da8..afd7f92b7cf 100755 --- a/egs/mgb2_arabic/s5/local/mgb_data_prep.sh +++ b/egs/mgb2_arabic/s5/local/mgb_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2016, Qatar Computing Research Institute, HBKU # 2016-2019 Vimal Manohar diff --git a/egs/mgb2_arabic/s5/local/mgb_format_data.sh b/egs/mgb2_arabic/s5/local/mgb_format_data.sh index 0fc24c15add..91dd114938a 100755 --- a/egs/mgb2_arabic/s5/local/mgb_format_data.sh +++ b/egs/mgb2_arabic/s5/local/mgb_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2016, Qatar Computing Research Institute, HBKU diff --git a/egs/mgb2_arabic/s5/local/mgb_prep_full_data.sh b/egs/mgb2_arabic/s5/local/mgb_prep_full_data.sh index 30e702c6841..40b464e7a37 100755 --- a/egs/mgb2_arabic/s5/local/mgb_prep_full_data.sh +++ b/egs/mgb2_arabic/s5/local/mgb_prep_full_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2016, Qatar Computing Research Institute, HBKU # 2016-2019 Vimal Manohar diff --git a/egs/mgb2_arabic/s5/local/mgb_prep_original_data.sh b/egs/mgb2_arabic/s5/local/mgb_prep_original_data.sh index 6edb5ac946d..f3c01c7a57e 100755 --- a/egs/mgb2_arabic/s5/local/mgb_prep_original_data.sh +++ b/egs/mgb2_arabic/s5/local/mgb_prep_original_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2016, Qatar Computing Research Institute, HBKU diff --git a/egs/mgb2_arabic/s5/local/mgb_train_lms.sh b/egs/mgb2_arabic/s5/local/mgb_train_lms.sh index e49055b478d..7473c92a6ce 100755 --- a/egs/mgb2_arabic/s5/local/mgb_train_lms.sh +++ b/egs/mgb2_arabic/s5/local/mgb_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2016, Qatar Computing Research Institute, HBKU # To be run from one directory above this script. diff --git a/egs/mgb2_arabic/s5/local/mgb_train_lms_extra.sh b/egs/mgb2_arabic/s5/local/mgb_train_lms_extra.sh index c29b6e83764..88b618671a4 100755 --- a/egs/mgb2_arabic/s5/local/mgb_train_lms_extra.sh +++ b/egs/mgb2_arabic/s5/local/mgb_train_lms_extra.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2016, Qatar Computing Research Institute, HBKU # To be run from one directory above this script. diff --git a/egs/mgb2_arabic/s5/local/mgb_train_lms_extra_pocolm.sh b/egs/mgb2_arabic/s5/local/mgb_train_lms_extra_pocolm.sh index b9f82012add..1631985764b 100755 --- a/egs/mgb2_arabic/s5/local/mgb_train_lms_extra_pocolm.sh +++ b/egs/mgb2_arabic/s5/local/mgb_train_lms_extra_pocolm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (author: Daniel Povey) # 2017 Vimal Manohar diff --git a/egs/mgb2_arabic/s5/local/nnet3/run_ivector_common.sh b/egs/mgb2_arabic/s5/local/nnet3/run_ivector_common.sh index ae2edc27a91..ecfcb780d7c 100755 --- a/egs/mgb2_arabic/s5/local/nnet3/run_ivector_common.sh +++ b/egs/mgb2_arabic/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/mgb2_arabic/s5/local/run_cleanup_segmentation.sh b/egs/mgb2_arabic/s5/local/run_cleanup_segmentation.sh index 559d20046dd..ac5f0cb9009 100755 --- a/egs/mgb2_arabic/s5/local/run_cleanup_segmentation.sh +++ b/egs/mgb2_arabic/s5/local/run_cleanup_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/mgb2_arabic/s5/local/score.sh b/egs/mgb2_arabic/s5/local/score.sh index 08b67050c01..4531c8f3675 100755 --- a/egs/mgb2_arabic/s5/local/score.sh +++ b/egs/mgb2_arabic/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/mgb2_arabic/s5/local/score_combine.sh b/egs/mgb2_arabic/s5/local/score_combine.sh index 576962c7442..1c7796e16ea 100755 --- a/egs/mgb2_arabic/s5/local/score_combine.sh +++ b/egs/mgb2_arabic/s5/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal diff --git a/egs/mgb2_arabic/s5/local/score_mbr.sh b/egs/mgb2_arabic/s5/local/score_mbr.sh index 4052512f726..a5ca96a67d6 100755 --- a/egs/mgb2_arabic/s5/local/score_mbr.sh +++ b/egs/mgb2_arabic/s5/local/score_mbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script for minimum bayes risk decoding. diff --git a/egs/mgb2_arabic/s5/local/score_sclite.sh b/egs/mgb2_arabic/s5/local/score_sclite.sh index 2c8be28a568..de41053a0c9 100755 --- a/egs/mgb2_arabic/s5/local/score_sclite.sh +++ b/egs/mgb2_arabic/s5/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/mgb2_arabic/s5/run.sh b/egs/mgb2_arabic/s5/run.sh index 334aef1bf30..a763869903c 100755 --- a/egs/mgb2_arabic/s5/run.sh +++ b/egs/mgb2_arabic/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2016, Qatar Computing Research Institute, HBKU # 2017-19 Vimal Manohar diff --git a/egs/mgb5/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/mgb5/s5/local/chain/tuning/run_tdnn_1a.sh index 6300511e817..1cc68f43a33 100644 --- a/egs/mgb5/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/mgb5/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017-2018 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/mgb5/s5/local/nnet3/run_ivector_common.sh b/egs/mgb5/s5/local/nnet3/run_ivector_common.sh index b909ed04cde..ddec4419a61 100644 --- a/egs/mgb5/s5/local/nnet3/run_ivector_common.sh +++ b/egs/mgb5/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/mgb5/s5/local/prepare_data.sh b/egs/mgb5/s5/local/prepare_data.sh index 36cb4d8fa3f..7ab937f7b45 100755 --- a/egs/mgb5/s5/local/prepare_data.sh +++ b/egs/mgb5/s5/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 QCRI (Author: Ahmed Ali) # Apache 2.0 diff --git a/egs/mgb5/s5/local/prepare_lm.sh b/egs/mgb5/s5/local/prepare_lm.sh index 02fb59aba87..5b47360a730 100755 --- a/egs/mgb5/s5/local/prepare_lm.sh +++ b/egs/mgb5/s5/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 QCRI (Author: Ahmed Ali) # Apache 2.0 diff --git a/egs/mgb5/s5/local/score.sh b/egs/mgb5/s5/local/score.sh index 9988c941441..3ddee8e4b12 100755 --- a/egs/mgb5/s5/local/score.sh +++ b/egs/mgb5/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey, Yenda Trmal) # Apache 2.0 diff --git a/egs/mgb5/s5/local/train_lms_srilm.sh b/egs/mgb5/s5/local/train_lms_srilm.sh index 6af13921511..ed3200eb103 100755 --- a/egs/mgb5/s5/local/train_lms_srilm.sh +++ b/egs/mgb5/s5/local/train_lms_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 2019 QCRI (Ahmed Ali) diff --git a/egs/mgb5/s5/run.sh b/egs/mgb5/s5/run.sh index 6fc21629f0f..27c4f751eae 100755 --- a/egs/mgb5/s5/run.sh +++ b/egs/mgb5/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 QCRI (Author:Ahmed Ali) # Apache 2.0 diff --git a/egs/mini_librispeech/s5/local/chain/compare_wer.sh b/egs/mini_librispeech/s5/local/chain/compare_wer.sh index 8ee5db2326a..411d2691bb9 100755 --- a/egs/mini_librispeech/s5/local/chain/compare_wer.sh +++ b/egs/mini_librispeech/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_cnn_tdnn_1a.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_cnn_tdnn_1a.sh index c8f2503b578..636de409f2c 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_cnn_tdnn_1a.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_cnn_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_cnn_tdnn_1a.sh is modified from run_tdnn_1h.sh, but adding CNN layers # near the beginning. diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_cnn_tdnn_1b.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_cnn_tdnn_1b.sh index 9be405a5e1a..6bcb4f2e9aa 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_cnn_tdnn_1b.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_cnn_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1b is as 1a but adding SpecAugment and removing dropout (which, in diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1a.sh index da16297c9dd..20ee39095dd 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is a basic TDNN experiment. diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1b.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1b.sh index 3d0c2d63902..ab0c30f0da6 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is as 1a but increasing epochs from 4 to 10 and adding the option diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1c.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1c.sh index 081af8fe2f8..4dbff118902 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1c.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1c is as 1b but replacing the renorm with batchnorm components # (i.e. NormalizeComponent with BatchNormComponent). diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1c_discriminative.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1c_discriminative.sh index 1aa519ccb9d..f2c24443744 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1c_discriminative.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1c_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o pipefail set -e diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1d.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1d.sh index 04df38d4da3..b8944be91c3 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1d.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1d is as 1c but adding two non-splicing layers towards the beginning # of the network. diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1e.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1e.sh index cdf9bb584f4..13aaf0c12c1 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1e.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1e is as 1d but instead of the --proportional-shrink option, using # the newly added xconfig-layer-specific 'l2-regularize' options. diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1f.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1f.sh index d1385ff2be5..8d2854247c2 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1f.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1f is as 1e but a smaller model with various tuning changes, the most diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1g.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1g.sh index ad51780e191..646f0875e61 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1g.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1g is as 1f but adding dropout (well, something like dropout-- the mask # is shared across time and it's continuous rather than zero-one), increasing diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1g20.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1g20.sh index dbfe5c5a07a..07f6e25473a 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1g20.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1g20.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1g20 is as 1g but adding the option "--constrained false" to --egs.opts. # This is the new 'unconstrained egs' code where it uses the e2e examples. diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1h.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1h.sh index cc4123e2755..5097007e56a 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1h.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1h is as 1g but a re-tuned model based on resnet-style TDNN-F layers with # bypass connections. Below, 1h2 and 1h3 are just reruns of 1h with different diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1i.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1i.sh index 502c225fa87..1577d7dc10a 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1i.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1i is as 1h but adding SpecAugment. diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1j.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1j.sh index 7a6604f9773..824de7d7341 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1j.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1j is as 1i but replaces the LDA layer at the input of the # network with delta and delta-delta features. diff --git a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1k.sh b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1k.sh index 652f0175558..b4a9ebe1418 100755 --- a/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1k.sh +++ b/egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1k is like 1j, while it introduces 'apply-cmvn-online' that does # cmn normalization both for i-extractor and TDNN input. diff --git a/egs/mini_librispeech/s5/local/download_and_untar.sh b/egs/mini_librispeech/s5/local/download_and_untar.sh index 5a27219f676..71921d868ae 100755 --- a/egs/mini_librispeech/s5/local/download_and_untar.sh +++ b/egs/mini_librispeech/s5/local/download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # 2017 Luminar Technologies, Inc. (author: Daniel Galvez) diff --git a/egs/mini_librispeech/s5/local/download_lm.sh b/egs/mini_librispeech/s5/local/download_lm.sh index b37ae599118..afa0ff7d51c 100755 --- a/egs/mini_librispeech/s5/local/download_lm.sh +++ b/egs/mini_librispeech/s5/local/download_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # 2017 Daniel Povey diff --git a/egs/mini_librispeech/s5/local/kws/compile_keywords.sh b/egs/mini_librispeech/s5/local/kws/compile_keywords.sh index 9f88b9665ff..295f89a58a9 100755 --- a/egs/mini_librispeech/s5/local/kws/compile_keywords.sh +++ b/egs/mini_librispeech/s5/local/kws/compile_keywords.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015-2018, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/mini_librispeech/s5/local/kws/create_hitlist.sh b/egs/mini_librispeech/s5/local/kws/create_hitlist.sh index be06a3b9312..8e9ac40090d 100755 --- a/egs/mini_librispeech/s5/local/kws/create_hitlist.sh +++ b/egs/mini_librispeech/s5/local/kws/create_hitlist.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2018 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/mini_librispeech/s5/local/kws/make_L_align.sh b/egs/mini_librispeech/s5/local/kws/make_L_align.sh index 72a1e9e3f4c..6c59b779fc7 100755 --- a/egs/mini_librispeech/s5/local/kws/make_L_align.sh +++ b/egs/mini_librispeech/s5/local/kws/make_L_align.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2018 Johns Hopkins University (authors: Guoguo Chen, Yenda Trmal) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/mini_librispeech/s5/local/kws/run_kws.sh b/egs/mini_librispeech/s5/local/kws/run_kws.sh index 8e7b56f0082..82be01ee14e 100755 --- a/egs/mini_librispeech/s5/local/kws/run_kws.sh +++ b/egs/mini_librispeech/s5/local/kws/run_kws.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2018, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/mini_librispeech/s5/local/kws/score.sh b/egs/mini_librispeech/s5/local/kws/score.sh index b056e150e83..6fea8adadb0 100755 --- a/egs/mini_librispeech/s5/local/kws/score.sh +++ b/egs/mini_librispeech/s5/local/kws/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2018 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # Apache 2.0. diff --git a/egs/mini_librispeech/s5/local/kws/search.sh b/egs/mini_librispeech/s5/local/kws/search.sh index 1c69b0da556..73696e55403 100755 --- a/egs/mini_librispeech/s5/local/kws/search.sh +++ b/egs/mini_librispeech/s5/local/kws/search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2018 Johns Hopkins University (Author: Guoguo Chen, Yenda Trmal) # License: Apache 2.0 diff --git a/egs/mini_librispeech/s5/local/nnet3/compare_wer.sh b/egs/mini_librispeech/s5/local/nnet3/compare_wer.sh index 095e85cc338..4888de1f159 100755 --- a/egs/mini_librispeech/s5/local/nnet3/compare_wer.sh +++ b/egs/mini_librispeech/s5/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/mini_librispeech/s5/local/nnet3/run_ivector_common.sh b/egs/mini_librispeech/s5/local/nnet3/run_ivector_common.sh index f44b0cb0284..89d2a9f6e57 100755 --- a/egs/mini_librispeech/s5/local/nnet3/run_ivector_common.sh +++ b/egs/mini_librispeech/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh b/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh index c2f90df4b5c..817f5312a40 100755 --- a/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh +++ b/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is a basic TDNN+LSTM nnet3 experiment. diff --git a/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1b.sh b/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1b.sh index 2b3c2844972..49618686842 100755 --- a/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1b.sh +++ b/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is like 1a, but adding dropout. It's definitely helpful, # and you can see in the objf values that the train-test difference diff --git a/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1c.sh b/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1c.sh index 5118cb0f8bd..9f5c1cd5e03 100755 --- a/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1c.sh +++ b/egs/mini_librispeech/s5/local/nnet3/tuning/run_tdnn_lstm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1c is like 1b, but changing renorm to batchnorm and adding l2 regularization. diff --git a/egs/mini_librispeech/s5/local/score.sh b/egs/mini_librispeech/s5/local/score.sh index c812199fc98..cb5bbb7277b 100755 --- a/egs/mini_librispeech/s5/local/score.sh +++ b/egs/mini_librispeech/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/mini_librispeech/s5/local/subset_dataset.sh b/egs/mini_librispeech/s5/local/subset_dataset.sh index 050128247a4..f8936b64c97 100755 --- a/egs/mini_librispeech/s5/local/subset_dataset.sh +++ b/egs/mini_librispeech/s5/local/subset_dataset.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Luminar Technologies, Inc. (author: Daniel Galvez) # Apache 2.0 diff --git a/egs/mini_librispeech/s5/run.sh b/egs/mini_librispeech/s5/run.sh index 2a13668e2c2..3f22cdebea1 100755 --- a/egs/mini_librispeech/s5/run.sh +++ b/egs/mini_librispeech/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Change this location to somewhere where you want to put the data. data=./corpus/ diff --git a/egs/multi_cn/s5/local/aidatatang_data_prep.sh b/egs/multi_cn/s5/local/aidatatang_data_prep.sh index 518a0e99866..93898338722 100755 --- a/egs/multi_cn/s5/local/aidatatang_data_prep.sh +++ b/egs/multi_cn/s5/local/aidatatang_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Xingyu Na # Apache 2.0 diff --git a/egs/multi_cn/s5/local/aidatatang_download_and_untar.sh b/egs/multi_cn/s5/local/aidatatang_download_and_untar.sh index a2616ba0e20..2cbf88f8190 100755 --- a/egs/multi_cn/s5/local/aidatatang_download_and_untar.sh +++ b/egs/multi_cn/s5/local/aidatatang_download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # 2017 Xingyu Na diff --git a/egs/multi_cn/s5/local/aishell_data_prep.sh b/egs/multi_cn/s5/local/aishell_data_prep.sh index 7896e208f33..25f75fc1ae2 100755 --- a/egs/multi_cn/s5/local/aishell_data_prep.sh +++ b/egs/multi_cn/s5/local/aishell_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Xingyu Na # Apache 2.0 diff --git a/egs/multi_cn/s5/local/aishell_download_and_untar.sh b/egs/multi_cn/s5/local/aishell_download_and_untar.sh index e251a9aae2f..74a8e36cf2a 100755 --- a/egs/multi_cn/s5/local/aishell_download_and_untar.sh +++ b/egs/multi_cn/s5/local/aishell_download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # 2017 Xingyu Na diff --git a/egs/multi_cn/s5/local/chain/compare_cer.sh b/egs/multi_cn/s5/local/chain/compare_cer.sh index 1e63495df74..3daa43834a6 100755 --- a/egs/multi_cn/s5/local/chain/compare_cer.sh +++ b/egs/multi_cn/s5/local/chain/compare_cer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is modified from egs/librispeech/s5/local/chain/compare_wer.sh diff --git a/egs/multi_cn/s5/local/chain/run_chain_common.sh b/egs/multi_cn/s5/local/chain/run_chain_common.sh index 2f57c4765cf..4b00784f32a 100755 --- a/egs/multi_cn/s5/local/chain/run_chain_common.sh +++ b/egs/multi_cn/s5/local/chain/run_chain_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script has common stages shared across librispeech chain recipes. # It generates a new topology in a new lang directory, gets the alignments as diff --git a/egs/multi_cn/s5/local/chain/run_ivector_common.sh b/egs/multi_cn/s5/local/chain/run_ivector_common.sh index d328d93fe41..b52b6945a40 100755 --- a/egs/multi_cn/s5/local/chain/run_ivector_common.sh +++ b/egs/multi_cn/s5/local/chain/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/multi_cn/s5/local/chain/tuning/run_cnn_tdnn_1a.sh b/egs/multi_cn/s5/local/chain/tuning/run_cnn_tdnn_1a.sh index f63e6d0f566..0d553ae2ded 100755 --- a/egs/multi_cn/s5/local/chain/tuning/run_cnn_tdnn_1a.sh +++ b/egs/multi_cn/s5/local/chain/tuning/run_cnn_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is copied from librispeech/s5 # In a previous version, pitch is used with hires mfcc, however, diff --git a/egs/multi_cn/s5/local/chain/tuning/run_cnn_tdnn_1b.sh b/egs/multi_cn/s5/local/chain/tuning/run_cnn_tdnn_1b.sh index a28f53b9a0f..dd9a238548a 100755 --- a/egs/multi_cn/s5/local/chain/tuning/run_cnn_tdnn_1b.sh +++ b/egs/multi_cn/s5/local/chain/tuning/run_cnn_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is copied from mini_librispeech/s5 diff --git a/egs/multi_cn/s5/local/magicdata_data_prep.sh b/egs/multi_cn/s5/local/magicdata_data_prep.sh index f8d47716751..4c96a40c9b6 100755 --- a/egs/multi_cn/s5/local/magicdata_data_prep.sh +++ b/egs/multi_cn/s5/local/magicdata_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Xingyu Na # Apache 2.0 diff --git a/egs/multi_cn/s5/local/magicdata_download_and_untar.sh b/egs/multi_cn/s5/local/magicdata_download_and_untar.sh index df8ca8d2296..c322edc98cf 100755 --- a/egs/multi_cn/s5/local/magicdata_download_and_untar.sh +++ b/egs/multi_cn/s5/local/magicdata_download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # 2019 Xingyu Na diff --git a/egs/multi_cn/s5/local/prepare_dict.sh b/egs/multi_cn/s5/local/prepare_dict.sh index 6b160b60580..e563c57a87e 100755 --- a/egs/multi_cn/s5/local/prepare_dict.sh +++ b/egs/multi_cn/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is copied from egs/hkust/s5/local/hkust_prepare_dict.sh diff --git a/egs/multi_cn/s5/local/primewords_data_prep.sh b/egs/multi_cn/s5/local/primewords_data_prep.sh index bcf3b6698a4..9ce4140f801 100755 --- a/egs/multi_cn/s5/local/primewords_data_prep.sh +++ b/egs/multi_cn/s5/local/primewords_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Xingyu Na # Apache 2.0 diff --git a/egs/multi_cn/s5/local/primewords_download_and_untar.sh b/egs/multi_cn/s5/local/primewords_download_and_untar.sh index 7e716c7a0a6..5828f1e2d7e 100755 --- a/egs/multi_cn/s5/local/primewords_download_and_untar.sh +++ b/egs/multi_cn/s5/local/primewords_download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # 2017 Xingyu Na diff --git a/egs/multi_cn/s5/local/run_cleanup_segmentation.sh b/egs/multi_cn/s5/local/run_cleanup_segmentation.sh index f1ea4a2f574..ea93ab97386 100755 --- a/egs/multi_cn/s5/local/run_cleanup_segmentation.sh +++ b/egs/multi_cn/s5/local/run_cleanup_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Yiming Wang diff --git a/egs/multi_cn/s5/local/score.sh b/egs/multi_cn/s5/local/score.sh index a9786169973..d283ceb68dc 100755 --- a/egs/multi_cn/s5/local/score.sh +++ b/egs/multi_cn/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail set -x diff --git a/egs/multi_cn/s5/local/stcmds_data_prep.sh b/egs/multi_cn/s5/local/stcmds_data_prep.sh index 6375d0d9a1b..a751729ef91 100755 --- a/egs/multi_cn/s5/local/stcmds_data_prep.sh +++ b/egs/multi_cn/s5/local/stcmds_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Xingyu Na # Apache 2.0 diff --git a/egs/multi_cn/s5/local/stcmds_download_and_untar.sh b/egs/multi_cn/s5/local/stcmds_download_and_untar.sh index ca89b5a292a..37379ab28e6 100755 --- a/egs/multi_cn/s5/local/stcmds_download_and_untar.sh +++ b/egs/multi_cn/s5/local/stcmds_download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # 2017 Xingyu Na diff --git a/egs/multi_cn/s5/local/thchs-30_data_prep.sh b/egs/multi_cn/s5/local/thchs-30_data_prep.sh index 8f48133a1dd..0fde016979b 100755 --- a/egs/multi_cn/s5/local/thchs-30_data_prep.sh +++ b/egs/multi_cn/s5/local/thchs-30_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Tsinghua University (Author: Dong Wang, Xuewei Zhang). Apache 2.0. # 2016 LeSpeech (Author: Xingyu Na) diff --git a/egs/multi_cn/s5/local/thchs_download_and_untar.sh b/egs/multi_cn/s5/local/thchs_download_and_untar.sh index 6294fca7d9b..878e29a80ed 100755 --- a/egs/multi_cn/s5/local/thchs_download_and_untar.sh +++ b/egs/multi_cn/s5/local/thchs_download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # Copyright 2016 Tsinghua University (author: Dong Wang) diff --git a/egs/multi_cn/s5/local/train_corpus_lm.sh b/egs/multi_cn/s5/local/train_corpus_lm.sh index 181ff4c5522..b1be09bfb1a 100755 --- a/egs/multi_cn/s5/local/train_corpus_lm.sh +++ b/egs/multi_cn/s5/local/train_corpus_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/multi_cn/s5/local/train_lms.sh b/egs/multi_cn/s5/local/train_lms.sh index ac632538ec5..d35da73e6ec 100755 --- a/egs/multi_cn/s5/local/train_lms.sh +++ b/egs/multi_cn/s5/local/train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/multi_cn/s5/run.sh b/egs/multi_cn/s5/run.sh index bd03355ea61..3eee9d56ee3 100755 --- a/egs/multi_cn/s5/run.sh +++ b/egs/multi_cn/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Microsoft Corporation (authors: Xingyu Na) # Apache 2.0 diff --git a/egs/multi_en/s5/local/ami_ihm_data_prep.sh b/egs/multi_en/s5/local/ami_ihm_data_prep.sh index ed1c882e862..7c202438e6f 100755 --- a/egs/multi_en/s5/local/ami_ihm_data_prep.sh +++ b/egs/multi_en/s5/local/ami_ihm_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/ami/s5/local/ami_ihm_data_prep.sh diff --git a/egs/multi_en/s5/local/ami_sdm_data_prep.sh b/egs/multi_en/s5/local/ami_sdm_data_prep.sh index a5d55640d1e..282887b0341 100755 --- a/egs/multi_en/s5/local/ami_sdm_data_prep.sh +++ b/egs/multi_en/s5/local/ami_sdm_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/ami/s5/local/ami_sdm_data_prep.sh diff --git a/egs/multi_en/s5/local/ami_text_prep.sh b/egs/multi_en/s5/local/ami_text_prep.sh index fb769a0c019..72e8e770e50 100755 --- a/egs/multi_en/s5/local/ami_text_prep.sh +++ b/egs/multi_en/s5/local/ami_text_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/ami/s5/local/ami_text_prep.sh diff --git a/egs/multi_en/s5/local/ami_xml2text.sh b/egs/multi_en/s5/local/ami_xml2text.sh index 49ce740d44f..fd8b496dab6 100755 --- a/egs/multi_en/s5/local/ami_xml2text.sh +++ b/egs/multi_en/s5/local/ami_xml2text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/ami/s5/local/ami_xml2text.sh diff --git a/egs/multi_en/s5/local/chain/run_blstm_6h.sh b/egs/multi_en/s5/local/chain/run_blstm_6h.sh index 126d29350a1..8840b3b188e 100644 --- a/egs/multi_en/s5/local/chain/run_blstm_6h.sh +++ b/egs/multi_en/s5/local/chain/run_blstm_6h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/fisher_swbd/s5/local/chain/run_blstm_6h.sh. diff --git a/egs/multi_en/s5/local/chain/tuning/run_tdnn_5b.sh b/egs/multi_en/s5/local/chain/tuning/run_tdnn_5b.sh index 96f5fdac8f3..40979b4fd5b 100755 --- a/egs/multi_en/s5/local/chain/tuning/run_tdnn_5b.sh +++ b/egs/multi_en/s5/local/chain/tuning/run_tdnn_5b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Xiaohui Zhang # 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/multi_en/s5/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/multi_en/s5/local/chain/tuning/run_tdnn_lstm_1a.sh index 194592a822a..8a6371d2f44 100755 --- a/egs/multi_en/s5/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/multi_en/s5/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # 2018 Xiaohui Zhang # 2018 Vimal Manohar diff --git a/egs/multi_en/s5/local/chain/tuning/run_tdnn_opgru_1a.sh b/egs/multi_en/s5/local/chain/tuning/run_tdnn_opgru_1a.sh index 79cd3eb3014..3ac4078d507 100755 --- a/egs/multi_en/s5/local/chain/tuning/run_tdnn_opgru_1a.sh +++ b/egs/multi_en/s5/local/chain/tuning/run_tdnn_opgru_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Xiaohui Zhang # 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/multi_en/s5/local/chain/tuning/run_tdnn_opgru_1b.sh b/egs/multi_en/s5/local/chain/tuning/run_tdnn_opgru_1b.sh index a7170af9431..6e705fa8724 100755 --- a/egs/multi_en/s5/local/chain/tuning/run_tdnn_opgru_1b.sh +++ b/egs/multi_en/s5/local/chain/tuning/run_tdnn_opgru_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Xiaohui Zhang # 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/multi_en/s5/local/cmu_tedlium_prepare_dict.sh b/egs/multi_en/s5/local/cmu_tedlium_prepare_dict.sh index 972ce491326..16fa98ded9d 100755 --- a/egs/multi_en/s5/local/cmu_tedlium_prepare_dict.sh +++ b/egs/multi_en/s5/local/cmu_tedlium_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Allen Guo # 2017 Xiaohui Zhang diff --git a/egs/multi_en/s5/local/eval2000_data_prep.sh b/egs/multi_en/s5/local/eval2000_data_prep.sh index cf6b6a78580..68bd015d8b6 100755 --- a/egs/multi_en/s5/local/eval2000_data_prep.sh +++ b/egs/multi_en/s5/local/eval2000_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/fisher_swbd/s5/local/eval2000_data_prep.sh diff --git a/egs/multi_en/s5/local/fisher_data_prep.sh b/egs/multi_en/s5/local/fisher_data_prep.sh index cf46954575c..174d86f9a17 100755 --- a/egs/multi_en/s5/local/fisher_data_prep.sh +++ b/egs/multi_en/s5/local/fisher_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/fisher_swbd/s5/local/fisher_data_prep.sh diff --git a/egs/multi_en/s5/local/hub4_96_data_prep.sh b/egs/multi_en/s5/local/hub4_96_data_prep.sh index f258ea7b7f5..144f88cffca 100755 --- a/egs/multi_en/s5/local/hub4_96_data_prep.sh +++ b/egs/multi_en/s5/local/hub4_96_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/hub4_english/s5/local/data_prep/prepare_1996_bn_data.sh @@ -6,7 +6,7 @@ # Changes in lower level script/dir names were made ########################################################################################### -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # 2017 Vimal Manohar # License: Apache 2.0 diff --git a/egs/multi_en/s5/local/hub4_97_data_prep.sh b/egs/multi_en/s5/local/hub4_97_data_prep.sh index 096c2142c36..86b9482e4c4 100755 --- a/egs/multi_en/s5/local/hub4_97_data_prep.sh +++ b/egs/multi_en/s5/local/hub4_97_data_prep.sh @@ -4,7 +4,7 @@ # No change was made ########################################################################################### -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2017, Johns Hopkins University (Jan "Yenda" Trmal) # 2017 Vimal Manohar # License: Apache 2.0 diff --git a/egs/multi_en/s5/local/hub4_en_data_prep.sh b/egs/multi_en/s5/local/hub4_en_data_prep.sh index e8173111038..6034e012701 100755 --- a/egs/multi_en/s5/local/hub4_en_data_prep.sh +++ b/egs/multi_en/s5/local/hub4_en_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1996/1997 English Broadcast News training data preparation (HUB4) diff --git a/egs/multi_en/s5/local/librispeech_data_prep.sh b/egs/multi_en/s5/local/librispeech_data_prep.sh index b34072a4f61..9512fe70b65 100755 --- a/egs/multi_en/s5/local/librispeech_data_prep.sh +++ b/egs/multi_en/s5/local/librispeech_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/librispeech/s5/local/data_prep.sh diff --git a/egs/multi_en/s5/local/librispeech_lm_decode.sh b/egs/multi_en/s5/local/librispeech_lm_decode.sh index 7e79c788636..563f870b721 100755 --- a/egs/multi_en/s5/local/librispeech_lm_decode.sh +++ b/egs/multi_en/s5/local/librispeech_lm_decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Allen Guo # Apache 2.0 diff --git a/egs/multi_en/s5/local/make_partitions.sh b/egs/multi_en/s5/local/make_partitions.sh index 74f23ae9746..167c5086368 100755 --- a/egs/multi_en/s5/local/make_partitions.sh +++ b/egs/multi_en/s5/local/make_partitions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Allen Guo # 2017 Xiaohui Zhang diff --git a/egs/multi_en/s5/local/nnet3/run_ivector_common.sh b/egs/multi_en/s5/local/nnet3/run_ivector_common.sh index d36cb0e6083..1060d101aec 100755 --- a/egs/multi_en/s5/local/nnet3/run_ivector_common.sh +++ b/egs/multi_en/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/fisher_swbd/s5/local/nnet3/run_ivector_common.sh diff --git a/egs/multi_en/s5/local/nnet3/run_tdnn.sh b/egs/multi_en/s5/local/nnet3/run_tdnn.sh index 266c4af52d7..b8441c99009 100755 --- a/egs/multi_en/s5/local/nnet3/run_tdnn.sh +++ b/egs/multi_en/s5/local/nnet3/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/fisher_swbd/s5/local/nnet3/run_tdnn.sh diff --git a/egs/multi_en/s5/local/prepare_dict.sh b/egs/multi_en/s5/local/prepare_dict.sh index 8bf54a3dddc..8501b14de10 100755 --- a/egs/multi_en/s5/local/prepare_dict.sh +++ b/egs/multi_en/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Intellisist, Inc. (Author: Navneeth K) # 2017 Xiaohui Zhang diff --git a/egs/multi_en/s5/local/rt03_data_prep.sh b/egs/multi_en/s5/local/rt03_data_prep.sh index aa1e2ba4cc2..ea252b7753a 100755 --- a/egs/multi_en/s5/local/rt03_data_prep.sh +++ b/egs/multi_en/s5/local/rt03_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/fisher_swbd/s5/local/rt03_data_prep.sh diff --git a/egs/multi_en/s5/local/score.sh b/egs/multi_en/s5/local/score.sh index cada400acda..9bc36b3197c 100755 --- a/egs/multi_en/s5/local/score.sh +++ b/egs/multi_en/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/fisher_swbd/s5/local/score.sh diff --git a/egs/multi_en/s5/local/score_sclite.sh b/egs/multi_en/s5/local/score_sclite.sh index 07dd63950d5..2a10ba2d1cf 100755 --- a/egs/multi_en/s5/local/score_sclite.sh +++ b/egs/multi_en/s5/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/fisher_swbd/s5/local/score_sclite.sh diff --git a/egs/multi_en/s5/local/swbd1_data_download.sh b/egs/multi_en/s5/local/swbd1_data_download.sh index ee71978794c..aa85cd7176a 100755 --- a/egs/multi_en/s5/local/swbd1_data_download.sh +++ b/egs/multi_en/s5/local/swbd1_data_download.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/fisher_swbd/s5/local/swbd1_data_download.sh diff --git a/egs/multi_en/s5/local/swbd1_data_prep.sh b/egs/multi_en/s5/local/swbd1_data_prep.sh index 4c1b6c7a9e6..551e870ae62 100755 --- a/egs/multi_en/s5/local/swbd1_data_prep.sh +++ b/egs/multi_en/s5/local/swbd1_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/fisher_swbd/s5/local/swbd1_data_prep.sh diff --git a/egs/multi_en/s5/local/swbd1_prepare_dict.sh b/egs/multi_en/s5/local/swbd1_prepare_dict.sh index 78e208f720d..87292bef94d 100755 --- a/egs/multi_en/s5/local/swbd1_prepare_dict.sh +++ b/egs/multi_en/s5/local/swbd1_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/swbd/s5c/local/swbd1_prepare_dict.sh diff --git a/egs/multi_en/s5/local/tedlium_lm_decode.sh b/egs/multi_en/s5/local/tedlium_lm_decode.sh index 1df850648f8..e9755f47a1e 100755 --- a/egs/multi_en/s5/local/tedlium_lm_decode.sh +++ b/egs/multi_en/s5/local/tedlium_lm_decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Allen Guo # Apache 2.0 diff --git a/egs/multi_en/s5/local/tedlium_prepare_data.sh b/egs/multi_en/s5/local/tedlium_prepare_data.sh index 22f79b0b117..2f240c953ff 100755 --- a/egs/multi_en/s5/local/tedlium_prepare_data.sh +++ b/egs/multi_en/s5/local/tedlium_prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/tedlium/s5_r2/local/prepare_data.sh diff --git a/egs/multi_en/s5/local/train_lms.sh b/egs/multi_en/s5/local/train_lms.sh index 02fd66e0368..302ff75c8ff 100755 --- a/egs/multi_en/s5/local/train_lms.sh +++ b/egs/multi_en/s5/local/train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/fisher_swbd/s5/local/fisher_train_lms.sh diff --git a/egs/multi_en/s5/local/wsj_data_prep.sh b/egs/multi_en/s5/local/wsj_data_prep.sh index cc11f179eca..e42b9f09cd3 100755 --- a/egs/multi_en/s5/local/wsj_data_prep.sh +++ b/egs/multi_en/s5/local/wsj_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/wsj/s5/local/wsj_data_prep.sh diff --git a/egs/multi_en/s5/local/wsj_format_data.sh b/egs/multi_en/s5/local/wsj_format_data.sh index 00ef0f49fd5..a54ad9c8d78 100755 --- a/egs/multi_en/s5/local/wsj_format_data.sh +++ b/egs/multi_en/s5/local/wsj_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################################################### # This script was copied from egs/wsj/s5/local/wsj_format_data.sh diff --git a/egs/multi_en/s5/run.sh b/egs/multi_en/s5/run.sh index 034ffeb4e66..229c0939d5c 100755 --- a/egs/multi_en/s5/run.sh +++ b/egs/multi_en/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Allen Guo # 2017 Xiaohui Zhang diff --git a/egs/ptb/s5/local/rnnlm/download_ptb.sh b/egs/ptb/s5/local/rnnlm/download_ptb.sh index 858e152bff9..129c90e10b0 100755 --- a/egs/ptb/s5/local/rnnlm/download_ptb.sh +++ b/egs/ptb/s5/local/rnnlm/download_ptb.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . path.sh data_dir=data/ptb diff --git a/egs/ptb/s5/local/rnnlm/prepare_rnnlm_data.sh b/egs/ptb/s5/local/rnnlm/prepare_rnnlm_data.sh index 3e3b6087495..be3b6cc6848 100755 --- a/egs/ptb/s5/local/rnnlm/prepare_rnnlm_data.sh +++ b/egs/ptb/s5/local/rnnlm/prepare_rnnlm_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from the directory egs/ptb/s5. diff --git a/egs/ptb/s5/local/rnnlm/train_backoff_lm.sh b/egs/ptb/s5/local/rnnlm/train_backoff_lm.sh index 17bdab92878..1281693db10 100644 --- a/egs/ptb/s5/local/rnnlm/train_backoff_lm.sh +++ b/egs/ptb/s5/local/rnnlm/train_backoff_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is to train a small, pruned n-gram backoff LM to be used for sampling # purposes during RNNLM training. We ue pocolm for this because it's good at pruning, diff --git a/egs/ptb/s5/local/rnnlm/train_backoff_lm2.sh b/egs/ptb/s5/local/rnnlm/train_backoff_lm2.sh index 98eb1b64e21..28b53fef079 100644 --- a/egs/ptb/s5/local/rnnlm/train_backoff_lm2.sh +++ b/egs/ptb/s5/local/rnnlm/train_backoff_lm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is to train a small, pruned n-gram backoff LM to be used for sampling # purposes during RNNLM training. It uses the C++ tool that we wrote for this diff --git a/egs/ptb/s5/local/rnnlm/tuning/run_tdnn_a.sh b/egs/ptb/s5/local/rnnlm/tuning/run_tdnn_a.sh index f0cac23231e..94065ace401 100755 --- a/egs/ptb/s5/local/rnnlm/tuning/run_tdnn_a.sh +++ b/egs/ptb/s5/local/rnnlm/tuning/run_tdnn_a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from the directory egs/ptb/s5. # This is to be done after local/prepare_rnnlm_data.sh. diff --git a/egs/ptb/s5/run.sh b/egs/ptb/s5/run.sh index d62be6871f3..2dcd8101860 100755 --- a/egs/ptb/s5/run.sh +++ b/egs/ptb/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 diff --git a/egs/reverb/s5/local/chain/compare_wer.sh b/egs/reverb/s5/local/chain/compare_wer.sh index cd6be14ed88..736a3177f17 100755 --- a/egs/reverb/s5/local/chain/compare_wer.sh +++ b/egs/reverb/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/reverb/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/reverb/s5/local/chain/tuning/run_tdnn_1a.sh index c8b4997161e..a6767db3652 100755 --- a/egs/reverb/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/reverb/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Set -e here so that we catch if any executable fails immediately set -euo pipefail diff --git a/egs/reverb/s5/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/reverb/s5/local/chain/tuning/run_tdnn_lstm_1a.sh index 4723400c76b..294d3d505e1 100755 --- a/egs/reverb/s5/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/reverb/s5/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Set -e here so that we catch if any executable fails immediately set -euo pipefail diff --git a/egs/reverb/s5/local/compute_se_scores.sh b/egs/reverb/s5/local/compute_se_scores.sh index 8168c2c46a2..4c6b8c2da0e 100755 --- a/egs/reverb/s5/local/compute_se_scores.sh +++ b/egs/reverb/s5/local/compute_se_scores.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # Apache 2.0 diff --git a/egs/reverb/s5/local/download_se_eval_tool.sh b/egs/reverb/s5/local/download_se_eval_tool.sh index 0d7bb8305ea..aa29766b927 100755 --- a/egs/reverb/s5/local/download_se_eval_tool.sh +++ b/egs/reverb/s5/local/download_se_eval_tool.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # This script downloads the official REVERB challenge SE scripts and SRMR toolbox # This script also downloads and compiles PESQ diff --git a/egs/reverb/s5/local/generate_data.sh b/egs/reverb/s5/local/generate_data.sh index 3228f0e1b3c..91c9c96a260 100755 --- a/egs/reverb/s5/local/generate_data.sh +++ b/egs/reverb/s5/local/generate_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2018 Johns Hopkins University (Author: Shinji Watanabe) # Apache 2.0 diff --git a/egs/reverb/s5/local/get_results.sh b/egs/reverb/s5/local/get_results.sh index 8867961dcdd..5945109708a 100755 --- a/egs/reverb/s5/local/get_results.sh +++ b/egs/reverb/s5/local/get_results.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # "Our baselines" echo "########################################" diff --git a/egs/reverb/s5/local/nnet3/compare_wer.sh b/egs/reverb/s5/local/nnet3/compare_wer.sh index 095e85cc338..4888de1f159 100755 --- a/egs/reverb/s5/local/nnet3/compare_wer.sh +++ b/egs/reverb/s5/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/reverb/s5/local/nnet3/run_ivector_common.sh b/egs/reverb/s5/local/nnet3/run_ivector_common.sh index 3af3ad77565..4963ce3cf7c 100755 --- a/egs/reverb/s5/local/nnet3/run_ivector_common.sh +++ b/egs/reverb/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/reverb/s5/local/prepare_real_data.sh b/egs/reverb/s5/local/prepare_real_data.sh index 2da51b9786b..5cf3ec56b26 100755 --- a/egs/reverb/s5/local/prepare_real_data.sh +++ b/egs/reverb/s5/local/prepare_real_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2018 Johns Hopkins University (Author: Shinji Watanabe) # Copyright 2018 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) diff --git a/egs/reverb/s5/local/prepare_simu_data.sh b/egs/reverb/s5/local/prepare_simu_data.sh index 8757021ddd7..a229ffd5115 100755 --- a/egs/reverb/s5/local/prepare_simu_data.sh +++ b/egs/reverb/s5/local/prepare_simu_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2018 Johns Hopkins University (Author: Shinji Watanabe) # Copyright 2018 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) diff --git a/egs/reverb/s5/local/run_beamform.sh b/egs/reverb/s5/local/run_beamform.sh index 1c8aade7287..ab62b7a6fdc 100755 --- a/egs/reverb/s5/local/run_beamform.sh +++ b/egs/reverb/s5/local/run_beamform.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Mitsubishi Electric Research Laboratories, MERL (Author: Shinji Watanabe) # Copyright 2018, Johns Hopkins University (Author: Aswin Shanmugam Subramanian) diff --git a/egs/reverb/s5/local/run_wpe.sh b/egs/reverb/s5/local/run_wpe.sh index d1ea56c6c55..5ed4a5b9832 100755 --- a/egs/reverb/s5/local/run_wpe.sh +++ b/egs/reverb/s5/local/run_wpe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Johns Hopkins University (Author: Aswin Shanmugam Subramanian) # Apache 2.0 diff --git a/egs/reverb/s5/local/score.sh b/egs/reverb/s5/local/score.sh index 66bc976333f..87867679fd6 100755 --- a/egs/reverb/s5/local/score.sh +++ b/egs/reverb/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey, Yenda Trmal) # Apache 2.0 diff --git a/egs/reverb/s5/local/wsj_prepare_beep_dict.sh b/egs/reverb/s5/local/wsj_prepare_beep_dict.sh index 879ef956844..73e434373c8 100755 --- a/egs/reverb/s5/local/wsj_prepare_beep_dict.sh +++ b/egs/reverb/s5/local/wsj_prepare_beep_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 MERL (author: Felix Weninger) # Contains some code by Microsoft Corporation, Johns Hopkins University (author: Daniel Povey) diff --git a/egs/reverb/s5/local/wsjcam0_data_prep.sh b/egs/reverb/s5/local/wsjcam0_data_prep.sh index cf87aa355d4..65fe9c7f3af 100755 --- a/egs/reverb/s5/local/wsjcam0_data_prep.sh +++ b/egs/reverb/s5/local/wsjcam0_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 MERL (author: Felix Weninger) # Contains some code by Microsoft Corporation, Johns Hopkins University (author: Daniel Povey) diff --git a/egs/reverb/s5/local/wsjcam0_format_data.sh b/egs/reverb/s5/local/wsjcam0_format_data.sh index 883cb20ed0e..26b5172f338 100755 --- a/egs/reverb/s5/local/wsjcam0_format_data.sh +++ b/egs/reverb/s5/local/wsjcam0_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 MERL (author: Felix Weninger) # Contains some code by Microsoft Corporation, Johns Hopkins University (author: Daniel Povey) diff --git a/egs/reverb/s5/run.sh b/egs/reverb/s5/run.sh index 999ec98e637..a7e3dd75167 100755 --- a/egs/reverb/s5/run.sh +++ b/egs/reverb/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 MERL (author: Felix Weninger and Shinji Watanabe) # Johns Hopkins University (author: Szu-Jui Chen) diff --git a/egs/rimes/v1/local/chain/compare_wer.sh b/egs/rimes/v1/local/chain/compare_wer.sh index 4a2cc29481c..ae575b29d4f 100755 --- a/egs/rimes/v1/local/chain/compare_wer.sh +++ b/egs/rimes/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/rimes/v1/local/chain/tuning/run_cnn_e2eali_1a.sh b/egs/rimes/v1/local/chain/tuning/run_cnn_e2eali_1a.sh index 33eb9dcb98c..b8be489e7d1 100755 --- a/egs/rimes/v1/local/chain/tuning/run_cnn_e2eali_1a.sh +++ b/egs/rimes/v1/local/chain/tuning/run_cnn_e2eali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1a is a 6 cnn layer 3 tdnn layer model with dropout, l2-regularization, batch-normalization diff --git a/egs/rimes/v1/local/chain/tuning/run_e2e_cnn_1a.sh b/egs/rimes/v1/local/chain/tuning/run_e2e_cnn_1a.sh index 9d28a41316d..da6a0bf5cb2 100755 --- a/egs/rimes/v1/local/chain/tuning/run_e2e_cnn_1a.sh +++ b/egs/rimes/v1/local/chain/tuning/run_e2e_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script does end2end chain training (i.e. from scratch) diff --git a/egs/rimes/v1/local/extract_features.sh b/egs/rimes/v1/local/extract_features.sh index ec3bc8a268c..e4adf8bf85d 100755 --- a/egs/rimes/v1/local/extract_features.sh +++ b/egs/rimes/v1/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/rimes/v1/local/prepare_data.sh b/egs/rimes/v1/local/prepare_data.sh index 502718e7777..232ecf7c9ef 100755 --- a/egs/rimes/v1/local/prepare_data.sh +++ b/egs/rimes/v1/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script creates traing and validations splits, downloads text corpus for language modeling, # prepares the training, validation and test data for rimes dataset diff --git a/egs/rimes/v1/local/score.sh b/egs/rimes/v1/local/score.sh index 0cfbda9b556..bb325ab793c 100755 --- a/egs/rimes/v1/local/score.sh +++ b/egs/rimes/v1/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e cmd=run.pl diff --git a/egs/rimes/v1/local/score_paragraph.sh b/egs/rimes/v1/local/score_paragraph.sh index c6ef4da1d5b..810e9a6ccc7 100755 --- a/egs/rimes/v1/local/score_paragraph.sh +++ b/egs/rimes/v1/local/score_paragraph.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash min_lmwt=7 max_lmwt=17 diff --git a/egs/rimes/v1/local/train_lm.sh b/egs/rimes/v1/local/train_lm.sh index 51927b7a97e..29579cbca23 100755 --- a/egs/rimes/v1/local/train_lm.sh +++ b/egs/rimes/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/rimes/v1/run_end2end.sh b/egs/rimes/v1/run_end2end.sh index d3e3da2be13..a56d54f9727 100755 --- a/egs/rimes/v1/run_end2end.sh +++ b/egs/rimes/v1/run_end2end.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # Ashish Arora diff --git a/egs/rm/s5/local/chain/tuning/run_tdnn_5g.sh b/egs/rm/s5/local/chain/tuning/run_tdnn_5g.sh index c393a9aa28b..035c607ecc1 100755 --- a/egs/rm/s5/local/chain/tuning/run_tdnn_5g.sh +++ b/egs/rm/s5/local/chain/tuning/run_tdnn_5g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is modified from run_tdnn_5f.sh, to use the old topology, as a baseline # to test the modified transition-model code (by which we hope to be able to diff --git a/egs/rm/s5/local/chain/tuning/run_tdnn_5n.sh b/egs/rm/s5/local/chain/tuning/run_tdnn_5n.sh index 131bcf98de9..f608c13260b 100755 --- a/egs/rm/s5/local/chain/tuning/run_tdnn_5n.sh +++ b/egs/rm/s5/local/chain/tuning/run_tdnn_5n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is a modified version of run_tdnn_5g.sh. It uses # the new transition model and the python version of training scripts. diff --git a/egs/rm/s5/local/chain/tuning/run_tdnn_5o.sh b/egs/rm/s5/local/chain/tuning/run_tdnn_5o.sh index db5944fdbea..32b50cde7f4 100755 --- a/egs/rm/s5/local/chain/tuning/run_tdnn_5o.sh +++ b/egs/rm/s5/local/chain/tuning/run_tdnn_5o.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is a modified version of run_tdnn_5n.sh. It uses # a new configs convention for chain model after kaldi 5.2. diff --git a/egs/rm/s5/local/chain/tuning/run_tdnn_5p.sh b/egs/rm/s5/local/chain/tuning/run_tdnn_5p.sh index 37073a53eba..67f67fbdfd8 100755 --- a/egs/rm/s5/local/chain/tuning/run_tdnn_5p.sh +++ b/egs/rm/s5/local/chain/tuning/run_tdnn_5p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is a modified version of run_tdnn_5o.sh. It uses online-cmn # for input features, both for ivector extractor and the chain model. diff --git a/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1a.sh b/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1a.sh index f77ebb2a071..c457a75d6fc 100755 --- a/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1a.sh +++ b/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script uses weight transfer as a transfer learning method to transfer # already trained neural net model on wsj to rm. diff --git a/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1b.sh b/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1b.sh index e38fa0b231c..8f15a1ed1d9 100755 --- a/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1b.sh +++ b/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _1b is as _1a, but different as follows # 1) It uses wsj phone set phones.txt and new lexicon generated using word pronunciation # in swj lexincon.txt. rm words, that are not presented in wsj, are added as oov diff --git a/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1c.sh b/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1c.sh index 04bef13fab0..4d1cb76bdc1 100755 --- a/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1c.sh +++ b/egs/rm/s5/local/chain/tuning/run_tdnn_wsj_rm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _1c is as _1b but it uses source chain-trained DNN model instead of GMM model # to generate alignments for RM using WSJ model. diff --git a/egs/rm/s5/local/nnet/run_autoencoder.sh b/egs/rm/s5/local/nnet/run_autoencoder.sh index d9a309deee0..a0a0be33237 100755 --- a/egs/rm/s5/local/nnet/run_autoencoder.sh +++ b/egs/rm/s5/local/nnet/run_autoencoder.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/rm/s5/local/nnet/run_blocksoftmax.sh b/egs/rm/s5/local/nnet/run_blocksoftmax.sh index 175a6021778..81a5ecabafa 100755 --- a/egs/rm/s5/local/nnet/run_blocksoftmax.sh +++ b/egs/rm/s5/local/nnet/run_blocksoftmax.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/rm/s5/local/nnet/run_blstm.sh b/egs/rm/s5/local/nnet/run_blstm.sh index ce0baecb5c6..b2fd495f851 100755 --- a/egs/rm/s5/local/nnet/run_blstm.sh +++ b/egs/rm/s5/local/nnet/run_blstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/rm/s5/local/nnet/run_cnn.sh b/egs/rm/s5/local/nnet/run_cnn.sh index 8c5730a1c85..b57d6e47111 100755 --- a/egs/rm/s5/local/nnet/run_cnn.sh +++ b/egs/rm/s5/local/nnet/run_cnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/rm/s5/local/nnet/run_cnn2d.sh b/egs/rm/s5/local/nnet/run_cnn2d.sh index be17bce7a57..e493cf44497 100755 --- a/egs/rm/s5/local/nnet/run_cnn2d.sh +++ b/egs/rm/s5/local/nnet/run_cnn2d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/rm/s5/local/nnet/run_dnn.sh b/egs/rm/s5/local/nnet/run_dnn.sh index c2ba26970ad..9059cff43c2 100755 --- a/egs/rm/s5/local/nnet/run_dnn.sh +++ b/egs/rm/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/rm/s5/local/nnet/run_dnn_fbank.sh b/egs/rm/s5/local/nnet/run_dnn_fbank.sh index ff6916346c8..bfc0bdd3ed4 100755 --- a/egs/rm/s5/local/nnet/run_dnn_fbank.sh +++ b/egs/rm/s5/local/nnet/run_dnn_fbank.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/rm/s5/local/nnet/run_dnn_fbank_relu.sh b/egs/rm/s5/local/nnet/run_dnn_fbank_relu.sh index 11b1547051d..b3b544ad3f0 100755 --- a/egs/rm/s5/local/nnet/run_dnn_fbank_relu.sh +++ b/egs/rm/s5/local/nnet/run_dnn_fbank_relu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/rm/s5/local/nnet/run_dummy_ivec.sh b/egs/rm/s5/local/nnet/run_dummy_ivec.sh index 956d22d2e54..f92e4460af8 100755 --- a/egs/rm/s5/local/nnet/run_dummy_ivec.sh +++ b/egs/rm/s5/local/nnet/run_dummy_ivec.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/rm/s5/local/nnet/run_lstm.sh b/egs/rm/s5/local/nnet/run_lstm.sh index 48e8592fd7b..6985443b86b 100755 --- a/egs/rm/s5/local/nnet/run_lstm.sh +++ b/egs/rm/s5/local/nnet/run_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/rm/s5/local/nnet/run_multilingual.sh b/egs/rm/s5/local/nnet/run_multilingual.sh index 126f616c34d..74c722cceb9 100755 --- a/egs/rm/s5/local/nnet/run_multilingual.sh +++ b/egs/rm/s5/local/nnet/run_multilingual.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 University of Illinois (Author: Amit Das) # Copyright 2012-2015 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/rm/s5/local/nnet2/run_4a.sh b/egs/rm/s5/local/nnet2/run_4a.sh index 42695abdccb..81b3fe08b4d 100755 --- a/egs/rm/s5/local/nnet2/run_4a.sh +++ b/egs/rm/s5/local/nnet2/run_4a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/rm/s5/local/nnet2/run_4b.sh b/egs/rm/s5/local/nnet2/run_4b.sh index 741340412c0..a160799a804 100755 --- a/egs/rm/s5/local/nnet2/run_4b.sh +++ b/egs/rm/s5/local/nnet2/run_4b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 diff --git a/egs/rm/s5/local/nnet2/run_4b_gpu.sh b/egs/rm/s5/local/nnet2/run_4b_gpu.sh index 9cde9f1694e..904a78e91a8 100755 --- a/egs/rm/s5/local/nnet2/run_4b_gpu.sh +++ b/egs/rm/s5/local/nnet2/run_4b_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 diff --git a/egs/rm/s5/local/nnet2/run_4c.sh b/egs/rm/s5/local/nnet2/run_4c.sh index 7a2bd0360d7..28a7bb27e33 100755 --- a/egs/rm/s5/local/nnet2/run_4c.sh +++ b/egs/rm/s5/local/nnet2/run_4c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is neural net training on top of adapted 40-dimensional features. diff --git a/egs/rm/s5/local/nnet2/run_4d.sh b/egs/rm/s5/local/nnet2/run_4d.sh index e7765fb28d5..425f82dc51d 100755 --- a/egs/rm/s5/local/nnet2/run_4d.sh +++ b/egs/rm/s5/local/nnet2/run_4d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # local/nnet2/run_4d.sh is the new, faster version of the p-norm training script. diff --git a/egs/rm/s5/local/nnet2/run_4d2.sh b/egs/rm/s5/local/nnet2/run_4d2.sh index 5f64b3aef2e..e9d60d134a0 100755 --- a/egs/rm/s5/local/nnet2/run_4d2.sh +++ b/egs/rm/s5/local/nnet2/run_4d2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 4d2 is as 4d but adding perturbed training with multiplier=1.0 diff --git a/egs/rm/s5/local/nnet2/run_4d3.sh b/egs/rm/s5/local/nnet2/run_4d3.sh index 3e486acabb4..d204092a7d1 100755 --- a/egs/rm/s5/local/nnet2/run_4d3.sh +++ b/egs/rm/s5/local/nnet2/run_4d3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_4d3.sh is as run_4d.sh, but using a newer version of the scripts that diff --git a/egs/rm/s5/local/nnet2/run_4e.sh b/egs/rm/s5/local/nnet2/run_4e.sh index 425af853bf1..85ba114adda 100755 --- a/egs/rm/s5/local/nnet2/run_4e.sh +++ b/egs/rm/s5/local/nnet2/run_4e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/rm/s5/local/nnet2/run_4e_gpu.sh b/egs/rm/s5/local/nnet2/run_4e_gpu.sh index 9fe72669802..df471cca273 100755 --- a/egs/rm/s5/local/nnet2/run_4e_gpu.sh +++ b/egs/rm/s5/local/nnet2/run_4e_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is GPU based pnorm neural net ensemble training on top of adapted 40-dimensional features. diff --git a/egs/rm/s5/local/nnet2/run_5c.sh b/egs/rm/s5/local/nnet2/run_5c.sh index edcf366f0fd..77beac9c4cd 100755 --- a/egs/rm/s5/local/nnet2/run_5c.sh +++ b/egs/rm/s5/local/nnet2/run_5c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is neural net training on top of adapted 40-dimensional features. # This version of the script uses GPUs. We distinguish it by putting "_gpu" diff --git a/egs/rm/s5/local/nnet2/run_5c_gpu.sh b/egs/rm/s5/local/nnet2/run_5c_gpu.sh index 219e2cb808e..edabae780f8 100755 --- a/egs/rm/s5/local/nnet2/run_5c_gpu.sh +++ b/egs/rm/s5/local/nnet2/run_5c_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates discriminative training of neural nets. diff --git a/egs/rm/s5/local/nnet2/run_5d.sh b/egs/rm/s5/local/nnet2/run_5d.sh index 3617ea0b126..8e3321435ec 100755 --- a/egs/rm/s5/local/nnet2/run_5d.sh +++ b/egs/rm/s5/local/nnet2/run_5d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates discriminative training of p-norm neural nets. diff --git a/egs/rm/s5/local/nnet2/run_5d_gpu.sh b/egs/rm/s5/local/nnet2/run_5d_gpu.sh index f83cd3db20a..e665ca7e3f1 100755 --- a/egs/rm/s5/local/nnet2/run_5d_gpu.sh +++ b/egs/rm/s5/local/nnet2/run_5d_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates discriminative training of p-norm neural nets. diff --git a/egs/rm/s5/local/nnet2/run_5e_gpu.sh b/egs/rm/s5/local/nnet2/run_5e_gpu.sh index 37c9fb4238d..9d0f43f9279 100755 --- a/egs/rm/s5/local/nnet2/run_5e_gpu.sh +++ b/egs/rm/s5/local/nnet2/run_5e_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates discriminative training of ensemble-trained p-norm neural nets. diff --git a/egs/rm/s5/local/online/run_gmm.sh b/egs/rm/s5/local/online/run_gmm.sh index 90a2a48437d..b9bf04dfd56 100755 --- a/egs/rm/s5/local/online/run_gmm.sh +++ b/egs/rm/s5/local/online/run_gmm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/rm/s5/local/online/run_gmm_pitch.sh b/egs/rm/s5/local/online/run_gmm_pitch.sh index 65388fda3c2..ad87935d281 100755 --- a/egs/rm/s5/local/online/run_gmm_pitch.sh +++ b/egs/rm/s5/local/online/run_gmm_pitch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/rm/s5/local/online/run_nnet2.sh b/egs/rm/s5/local/online/run_nnet2.sh index 243be25764e..035ab75678f 100755 --- a/egs/rm/s5/local/online/run_nnet2.sh +++ b/egs/rm/s5/local/online/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/rm/s5/local/online/run_nnet2_baseline.sh b/egs/rm/s5/local/online/run_nnet2_baseline.sh index de977b29f43..cc4708b6a33 100755 --- a/egs/rm/s5/local/online/run_nnet2_baseline.sh +++ b/egs/rm/s5/local/online/run_nnet2_baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a baseline for ./run_nnet2.sh, without diff --git a/egs/rm/s5/local/online/run_nnet2_common.sh b/egs/rm/s5/local/online/run_nnet2_common.sh index dfacfcf9c9f..6a721f93e1a 100755 --- a/egs/rm/s5/local/online/run_nnet2_common.sh +++ b/egs/rm/s5/local/online/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script extracts mfcc features using mfcc_config and trains ubm model and # ivector extractor and extracts ivector for train and test. . ./cmd.sh diff --git a/egs/rm/s5/local/online/run_nnet2_multisplice.sh b/egs/rm/s5/local/online/run_nnet2_multisplice.sh index a05d6856a0e..e8bb0762710 100755 --- a/egs/rm/s5/local/online/run_nnet2_multisplice.sh +++ b/egs/rm/s5/local/online/run_nnet2_multisplice.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/rm/s5/local/online/run_nnet2_multisplice_disc.sh b/egs/rm/s5/local/online/run_nnet2_multisplice_disc.sh index c1d424ab58b..044e32c0891 100755 --- a/egs/rm/s5/local/online/run_nnet2_multisplice_disc.sh +++ b/egs/rm/s5/local/online/run_nnet2_multisplice_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is to be run after run_nnet2_multisplice.sh. # It demonstrates discriminative training for the online-nnet2 models diff --git a/egs/rm/s5/local/online/run_nnet2_perturbed.sh b/egs/rm/s5/local/online/run_nnet2_perturbed.sh index 5583ad745ea..cede0620b5a 100755 --- a/egs/rm/s5/local/online/run_nnet2_perturbed.sh +++ b/egs/rm/s5/local/online/run_nnet2_perturbed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/rm/s5/local/online/run_nnet2_wsj.sh b/egs/rm/s5/local/online/run_nnet2_wsj.sh index 5a5b293f790..79bb22866e1 100755 --- a/egs/rm/s5/local/online/run_nnet2_wsj.sh +++ b/egs/rm/s5/local/online/run_nnet2_wsj.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # note: see the newer, better script run_nnet2_wsj_joint.sh diff --git a/egs/rm/s5/local/online/run_nnet2_wsj_joint.sh b/egs/rm/s5/local/online/run_nnet2_wsj_joint.sh index 68a25f49b3a..6e108065a88 100755 --- a/egs/rm/s5/local/online/run_nnet2_wsj_joint.sh +++ b/egs/rm/s5/local/online/run_nnet2_wsj_joint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the latest version of training that combines RM and WSJ, in a setup where # there are no shared phones (so it's like a multilingual setup). diff --git a/egs/rm/s5/local/online/run_nnet2_wsj_joint_disc.sh b/egs/rm/s5/local/online/run_nnet2_wsj_joint_disc.sh index c7d31427e8f..87808e4c4a0 100755 --- a/egs/rm/s5/local/online/run_nnet2_wsj_joint_disc.sh +++ b/egs/rm/s5/local/online/run_nnet2_wsj_joint_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is discriminative training after multi-language training (as diff --git a/egs/rm/s5/local/prepare_wsj_rm_lang.sh b/egs/rm/s5/local/prepare_wsj_rm_lang.sh index fd8cb958925..9be949e887b 100755 --- a/egs/rm/s5/local/prepare_wsj_rm_lang.sh +++ b/egs/rm/s5/local/prepare_wsj_rm_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Pegah Ghahremani # This script prepares a dictionary for wsj-to-rm transfer learning experiment, diff --git a/egs/rm/s5/local/rm_data_prep.sh b/egs/rm/s5/local/rm_data_prep.sh index 9fe759aef4a..4c7fa015f93 100755 --- a/egs/rm/s5/local/rm_data_prep.sh +++ b/egs/rm/s5/local/rm_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2010-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/rm/s5/local/rm_prepare_grammar.sh b/egs/rm/s5/local/rm_prepare_grammar.sh index 20c31b7d208..4255e48eb77 100755 --- a/egs/rm/s5/local/rm_prepare_grammar.sh +++ b/egs/rm/s5/local/rm_prepare_grammar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/rm/s5/local/rm_prepare_grammar_ug.sh b/egs/rm/s5/local/rm_prepare_grammar_ug.sh index 427635caadc..e42efd22aa5 100755 --- a/egs/rm/s5/local/rm_prepare_grammar_ug.sh +++ b/egs/rm/s5/local/rm_prepare_grammar_ug.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/rm/s5/local/run_dnn_convert_nnet2.sh b/egs/rm/s5/local/run_dnn_convert_nnet2.sh index 664ecf3f80b..72c3b83bbc2 100755 --- a/egs/rm/s5/local/run_dnn_convert_nnet2.sh +++ b/egs/rm/s5/local/run_dnn_convert_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates some commands that you could run after run_dnn.sh, # that relate to conversion to the nnet2 model format. diff --git a/egs/rm/s5/local/run_nnet2.sh b/egs/rm/s5/local/run_nnet2.sh index 1d874324856..3605b6dcbac 100755 --- a/egs/rm/s5/local/run_nnet2.sh +++ b/egs/rm/s5/local/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # You don't have to run all these. # you can pick and choose. Look at the RESULTS file.. diff --git a/egs/rm/s5/local/run_pitch.sh b/egs/rm/s5/local/run_pitch.sh index d123fc8901b..cab78b28305 100755 --- a/egs/rm/s5/local/run_pitch.sh +++ b/egs/rm/s5/local/run_pitch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is like ../run.sh but with pitch; it's included to demonstrate the # online-decoding with pitch. diff --git a/egs/rm/s5/local/run_raw_fmllr.sh b/egs/rm/s5/local/run_raw_fmllr.sh index e02002aa1d0..2889cf1f5c5 100755 --- a/egs/rm/s5/local/run_raw_fmllr.sh +++ b/egs/rm/s5/local/run_raw_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/rm/s5/local/run_sgmm2.sh b/egs/rm/s5/local/run_sgmm2.sh index 95a40141892..808a52dc95c 100755 --- a/egs/rm/s5/local/run_sgmm2.sh +++ b/egs/rm/s5/local/run_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is as run_sgmm.sh but using the "sgmm2" code, which uses "state-clustered tied mixtures" # and the symmetric SGMM, and one or two other small changes (e.g. no updating of M for a few diff --git a/egs/rm/s5/local/run_sgmm2x.sh b/egs/rm/s5/local/run_sgmm2x.sh index 00730697693..1c76f57754e 100755 --- a/egs/rm/s5/local/run_sgmm2x.sh +++ b/egs/rm/s5/local/run_sgmm2x.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is as run_sgmm2.sh but excluding the "speaker-dependent weights", # so not doing the symmetric SGMM. diff --git a/egs/rm/s5/local/run_sgmm_multiling.sh b/egs/rm/s5/local/run_sgmm_multiling.sh index 42369cd2937..a3e138a64eb 100755 --- a/egs/rm/s5/local/run_sgmm_multiling.sh +++ b/egs/rm/s5/local/run_sgmm_multiling.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Multilingual setup for SGMMs. # Caution: this is just a stub, intended to show some others what to do, it diff --git a/egs/rm/s5/local/run_vtln.sh b/egs/rm/s5/local/run_vtln.sh index 793829653d2..032884d50a9 100755 --- a/egs/rm/s5/local/run_vtln.sh +++ b/egs/rm/s5/local/run_vtln.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This scripts tests the VTLN estimation where the system used to get the # VTLN warps is based on delta+delta-deltas. diff --git a/egs/rm/s5/local/run_vtln2.sh b/egs/rm/s5/local/run_vtln2.sh index b87030d2e3d..5f02aeb1d73 100755 --- a/egs/rm/s5/local/run_vtln2.sh +++ b/egs/rm/s5/local/run_vtln2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh featdir=mfcc diff --git a/egs/rm/s5/local/test_decoders.sh b/egs/rm/s5/local/test_decoders.sh index 2b1d4172139..d4080351828 100755 --- a/egs/rm/s5/local/test_decoders.sh +++ b/egs/rm/s5/local/test_decoders.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash dir=exp/tri1/decode/tmp diff --git a/egs/rm/s5/run.sh b/egs/rm/s5/run.sh index 61dcaa0e34a..2a8e5add17c 100755 --- a/egs/rm/s5/run.sh +++ b/egs/rm/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh set -e # exit on error diff --git a/egs/sitw/v1/local/make_sitw.sh b/egs/sitw/v1/local/make_sitw.sh index 7c0bcd0fea1..699b6f7cea2 100755 --- a/egs/sitw/v1/local/make_sitw.sh +++ b/egs/sitw/v1/local/make_sitw.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyrigh 2017 Ignacio Viñals # 2017-2018 David Snyder # diff --git a/egs/sitw/v1/local/nnet3/xvector/prepare_feats_for_egs.sh b/egs/sitw/v1/local/nnet3/xvector/prepare_feats_for_egs.sh index 480b2cc2fe8..ebf0a2cd21f 100755 --- a/egs/sitw/v1/local/nnet3/xvector/prepare_feats_for_egs.sh +++ b/egs/sitw/v1/local/nnet3/xvector/prepare_feats_for_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copied from egs/sre16/v1/local/nnet3/xvector/prepare_feats_for_egs.sh (commit 3ea534070fd2cccd2e4ee21772132230033022ce). # diff --git a/egs/sitw/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh b/egs/sitw/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh index 892c1ad55bd..54a226e1fc9 100755 --- a/egs/sitw/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh +++ b/egs/sitw/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 David Snyder # 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/sitw/v1/run.sh b/egs/sitw/v1/run.sh index 797451df263..592d9f213a0 100755 --- a/egs/sitw/v1/run.sh +++ b/egs/sitw/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) # 2017-2018 David Snyder diff --git a/egs/sitw/v2/run.sh b/egs/sitw/v2/run.sh index aad58e4a853..7f382dc5fd5 100755 --- a/egs/sitw/v2/run.sh +++ b/egs/sitw/v2/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Daniel Povey) # 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2018 Ewald Enzinger diff --git a/egs/spanish_dimex100/s5/local/data_prep.sh b/egs/spanish_dimex100/s5/local/data_prep.sh index 50cb3de4f9c..eadbd39039a 100755 --- a/egs/spanish_dimex100/s5/local/data_prep.sh +++ b/egs/spanish_dimex100/s5/local/data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## Only run this file from the example root directory ## $ ./local/data_prep.sh diff --git a/egs/spanish_dimex100/s5/local/lang_prep.sh b/egs/spanish_dimex100/s5/local/lang_prep.sh index 1ba49bac6d6..7239ed1dce5 100755 --- a/egs/spanish_dimex100/s5/local/lang_prep.sh +++ b/egs/spanish_dimex100/s5/local/lang_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## Only run this file from the example root directory ## $ ./local/data_prep.sh diff --git a/egs/spanish_dimex100/s5/local/lm_prep.sh b/egs/spanish_dimex100/s5/local/lm_prep.sh index 82c3c22cddd..ca7d0fd76bf 100755 --- a/egs/spanish_dimex100/s5/local/lm_prep.sh +++ b/egs/spanish_dimex100/s5/local/lm_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## Install SRILM in the `tools` directory (install_srilm.sh) diff --git a/egs/spanish_dimex100/s5/local/score.sh b/egs/spanish_dimex100/s5/local/score.sh index 0be7d192282..096db28a832 100755 --- a/egs/spanish_dimex100/s5/local/score.sh +++ b/egs/spanish_dimex100/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/spanish_dimex100/s5/run.sh b/egs/spanish_dimex100/s5/run.sh index 30f1ad0397f..4ed5b21fcad 100755 --- a/egs/spanish_dimex100/s5/run.sh +++ b/egs/spanish_dimex100/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./path.sh || exit 1 . ./cmd.sh || exit 1 diff --git a/egs/sprakbanken/s5/local/chain/compare_wer_general.sh b/egs/sprakbanken/s5/local/chain/compare_wer_general.sh index 4074b0c12c3..c2c0e7a1592 100755 --- a/egs/sprakbanken/s5/local/chain/compare_wer_general.sh +++ b/egs/sprakbanken/s5/local/chain/compare_wer_general.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Prints a table makes it easy to compare WER and objective values across nnet3 # and chain training runs diff --git a/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1a.sh b/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1a.sh index 47557f93696..54ac70acfe3 100755 --- a/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1a.sh +++ b/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_lstm_1a.sh is a first attempt at an LSTM system, based on xconfigs-- it's # probably not very well configured, e.g. the num-params might be too small. diff --git a/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1b.sh b/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1b.sh index 7afa1b7f902..da42338f63b 100755 --- a/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1b.sh +++ b/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_lstm_1b.sh is as run_lstm_1a.sh but replacing the projected LSTM # with a regular LSTM. This is done in order to have an LSTM-only baseline diff --git a/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1c.sh b/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1c.sh index e69e499e152..327a045ca1f 100755 --- a/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1c.sh +++ b/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_lstm_1c.sh is like run_lstm_1b.sh but changing from the old LSTM diff --git a/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1d.sh b/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1d.sh index 86e0352828c..0678bbc23ac 100755 --- a/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1d.sh +++ b/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_lstm_1d.sh is like run_lstm_1c.sh, but switching back to projected diff --git a/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1e.sh b/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1e.sh index 313f899a471..f88c6cd0ed8 100755 --- a/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1e.sh +++ b/egs/sprakbanken/s5/local/chain/tuning/run_lstm_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # (From the original script: # run_lstm_1e.sh is like run_lstm_1d.sh, but reducing non-recurrent-projection-dim diff --git a/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_1a.sh index 4991326a86d..827b658862f 100755 --- a/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the original TDNN script before we introduced xconfigs. # See run_tdnn_1b.sh for comparative results. diff --git a/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_1b.sh b/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_1b.sh index 600f27ddf86..b7f399b61a3 100755 --- a/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # steps/info/chain_dir_info.pl exp/chain/tdnn_sp_bi/ # exp/chain/tdnn_sp_bi/: num-iters=384 nj=2..12 num-params=7.0M dim=40+100->3557 combine=-0.08->-0.08 xent:train/valid[255,383,final]=(-0.954,-0.911,-0.911/-0.979,-0.953,-0.952) logprob:train/valid[255,383,final]=(-0.071,-0.064,-0.064/-0.084,-0.079,-0.079) diff --git a/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_lstm_1a.sh index cedc448464a..4c86012a3bb 100755 --- a/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/sprakbanken/s5/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # steps/info/chain_dir_info.pl exp/chain/tdnn_lstm1a_sp_bi/ # exp/chain/tdnn_lstm1a_sp_bi/: num-iters=384 nj=2..12 num-params=9.5M dim=40+100->3557 combine=-0.05->-0.05 xent:train/valid[255,383,final]=(-0.579,-0.518,-0.523/-0.651,-0.616,-0.619) logprob:train/valid[255,383,final]=(-0.046,-0.038,-0.038/-0.063,-0.060,-0.059) diff --git a/egs/sprakbanken/s5/local/copy_dict.sh b/egs/sprakbanken/s5/local/copy_dict.sh index 5ae5e9697b1..c16d63f64f6 100755 --- a/egs/sprakbanken/s5/local/copy_dict.sh +++ b/egs/sprakbanken/s5/local/copy_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # Copyright 2014-15 Mirsk Digital ApS (Author: Andreas Kirkedal) diff --git a/egs/sprakbanken/s5/local/create_datasets.sh b/egs/sprakbanken/s5/local/create_datasets.sh index 891771dbce1..532d8b6d686 100755 --- a/egs/sprakbanken/s5/local/create_datasets.sh +++ b/egs/sprakbanken/s5/local/create_datasets.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Mirsk Digital ApS (Author: Andreas Kirkedal) diff --git a/egs/sprakbanken/s5/local/dict_prep.sh b/egs/sprakbanken/s5/local/dict_prep.sh index 1e37460dbe5..b14c632d1df 100755 --- a/egs/sprakbanken/s5/local/dict_prep.sh +++ b/egs/sprakbanken/s5/local/dict_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # Copyright 2014 Mirsk Digital ApS (Author: Andreas Kirkedal) diff --git a/egs/sprakbanken/s5/local/nnet/run_dnn.sh b/egs/sprakbanken/s5/local/nnet/run_dnn.sh index 680a6ca31f0..5deb2c805bc 100755 --- a/egs/sprakbanken/s5/local/nnet/run_dnn.sh +++ b/egs/sprakbanken/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/sprakbanken/s5/local/nnet2/run_5b.sh b/egs/sprakbanken/s5/local/nnet2/run_5b.sh index 676f340ecd1..6666eee769c 100755 --- a/egs/sprakbanken/s5/local/nnet2/run_5b.sh +++ b/egs/sprakbanken/s5/local/nnet2/run_5b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 diff --git a/egs/sprakbanken/s5/local/nnet2/run_5b_gpu.sh b/egs/sprakbanken/s5/local/nnet2/run_5b_gpu.sh index 1335eee70ec..4c86853bb71 100755 --- a/egs/sprakbanken/s5/local/nnet2/run_5b_gpu.sh +++ b/egs/sprakbanken/s5/local/nnet2/run_5b_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 diff --git a/egs/sprakbanken/s5/local/nnet2/run_5c.sh b/egs/sprakbanken/s5/local/nnet2/run_5c.sh index 27f0db36f67..10b658b6da6 100755 --- a/egs/sprakbanken/s5/local/nnet2/run_5c.sh +++ b/egs/sprakbanken/s5/local/nnet2/run_5c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is neural net training on top of adapted 40-dimensional features. # diff --git a/egs/sprakbanken/s5/local/nnet2/run_5c2_gpu.sh b/egs/sprakbanken/s5/local/nnet2/run_5c2_gpu.sh index 00bd16bf00f..9002f1bce55 100755 --- a/egs/sprakbanken/s5/local/nnet2/run_5c2_gpu.sh +++ b/egs/sprakbanken/s5/local/nnet2/run_5c2_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is neural net training on top of adapted 40-dimensional features. # This is an alternative to the run_5c_gpu.sh that will train faster if you diff --git a/egs/sprakbanken/s5/local/nnet2/run_5c_gpu.sh b/egs/sprakbanken/s5/local/nnet2/run_5c_gpu.sh index 2bf13a0a399..31e032f0bd6 100755 --- a/egs/sprakbanken/s5/local/nnet2/run_5c_gpu.sh +++ b/egs/sprakbanken/s5/local/nnet2/run_5c_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is neural net training on top of adapted 40-dimensional features. # diff --git a/egs/sprakbanken/s5/local/nnet2/run_5d_gpu.sh b/egs/sprakbanken/s5/local/nnet2/run_5d_gpu.sh index 1b87fec6419..31a250ff14f 100755 --- a/egs/sprakbanken/s5/local/nnet2/run_5d_gpu.sh +++ b/egs/sprakbanken/s5/local/nnet2/run_5d_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is pnorm neural net training on top of adapted 40-dimensional features. diff --git a/egs/sprakbanken/s5/local/nnet2/run_6c_gpu.sh b/egs/sprakbanken/s5/local/nnet2/run_6c_gpu.sh index 777d8a99754..7f0c886eb46 100755 --- a/egs/sprakbanken/s5/local/nnet2/run_6c_gpu.sh +++ b/egs/sprakbanken/s5/local/nnet2/run_6c_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates discriminative training of neural nets. It's on top diff --git a/egs/sprakbanken/s5/local/nnet2/sprak_run_5c.sh b/egs/sprakbanken/s5/local/nnet2/sprak_run_5c.sh index 4ce59dbf86d..cac9a337f47 100755 --- a/egs/sprakbanken/s5/local/nnet2/sprak_run_5c.sh +++ b/egs/sprakbanken/s5/local/nnet2/sprak_run_5c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is neural net training on top of adapted 40-dimensional features. # diff --git a/egs/sprakbanken/s5/local/nnet3/run_ivector_common.sh b/egs/sprakbanken/s5/local/nnet3/run_ivector_common.sh index 91e90710af2..2608e3a7371 100755 --- a/egs/sprakbanken/s5/local/nnet3/run_ivector_common.sh +++ b/egs/sprakbanken/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/sprakbanken/s5/local/nnet3/run_lstm.sh b/egs/sprakbanken/s5/local/nnet3/run_lstm.sh index 17619e6ea6f..e0f14b5c539 100755 --- a/egs/sprakbanken/s5/local/nnet3/run_lstm.sh +++ b/egs/sprakbanken/s5/local/nnet3/run_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the standard "lstm" system, built in nnet3; this script # is the version that's meant to run with data-cleanup, that doesn't diff --git a/egs/sprakbanken/s5/local/nnet3/run_tdnn.sh b/egs/sprakbanken/s5/local/nnet3/run_tdnn.sh index 4d4a5e318d0..8abbe4cf2bd 100755 --- a/egs/sprakbanken/s5/local/nnet3/run_tdnn.sh +++ b/egs/sprakbanken/s5/local/nnet3/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the standard "tdnn" system, built in nnet3 diff --git a/egs/sprakbanken/s5/local/norm_dk/expand_abbr_medical.sh b/egs/sprakbanken/s5/local/norm_dk/expand_abbr_medical.sh index a96b019cb0d..0fb122f5f39 100755 --- a/egs/sprakbanken/s5/local/norm_dk/expand_abbr_medical.sh +++ b/egs/sprakbanken/s5/local/norm_dk/expand_abbr_medical.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Mirsk Digital ApS (Author: Andreas Kirkedal) diff --git a/egs/sprakbanken/s5/local/norm_dk/expand_dates.sh b/egs/sprakbanken/s5/local/norm_dk/expand_dates.sh index ed8d63bde91..37f5f4829f5 100755 --- a/egs/sprakbanken/s5/local/norm_dk/expand_dates.sh +++ b/egs/sprakbanken/s5/local/norm_dk/expand_dates.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Andreas Kirkedal diff --git a/egs/sprakbanken/s5/local/norm_dk/format_punct.sh b/egs/sprakbanken/s5/local/norm_dk/format_punct.sh index ee54469d365..7bd04f1c873 100755 --- a/egs/sprakbanken/s5/local/norm_dk/format_punct.sh +++ b/egs/sprakbanken/s5/local/norm_dk/format_punct.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Andreas Kirkedal diff --git a/egs/sprakbanken/s5/local/norm_dk/format_text.sh b/egs/sprakbanken/s5/local/norm_dk/format_text.sh index abbf975dbdf..ecba92b52aa 100755 --- a/egs/sprakbanken/s5/local/norm_dk/format_text.sh +++ b/egs/sprakbanken/s5/local/norm_dk/format_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Andreas Kirkedal diff --git a/egs/sprakbanken/s5/local/norm_dk/remove_annotation.sh b/egs/sprakbanken/s5/local/norm_dk/remove_annotation.sh index c05388a4035..85005458954 100755 --- a/egs/sprakbanken/s5/local/norm_dk/remove_annotation.sh +++ b/egs/sprakbanken/s5/local/norm_dk/remove_annotation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Author: Andreas Kirkedal diff --git a/egs/sprakbanken/s5/local/norm_dk/sent_split.sh b/egs/sprakbanken/s5/local/norm_dk/sent_split.sh index f5730bfda17..7f0a3e9bc9d 100755 --- a/egs/sprakbanken/s5/local/norm_dk/sent_split.sh +++ b/egs/sprakbanken/s5/local/norm_dk/sent_split.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Andreas Kirkedal diff --git a/egs/sprakbanken/s5/local/norm_dk/write_out_formatting.sh b/egs/sprakbanken/s5/local/norm_dk/write_out_formatting.sh index bdac92eb7a1..66fbbc3a123 100755 --- a/egs/sprakbanken/s5/local/norm_dk/write_out_formatting.sh +++ b/egs/sprakbanken/s5/local/norm_dk/write_out_formatting.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Mirsk Digital ApS (Author: Andreas Kirkedal) diff --git a/egs/sprakbanken/s5/local/norm_dk/write_punct.sh b/egs/sprakbanken/s5/local/norm_dk/write_punct.sh index 3b8decaf376..fd29e686511 100755 --- a/egs/sprakbanken/s5/local/norm_dk/write_punct.sh +++ b/egs/sprakbanken/s5/local/norm_dk/write_punct.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Mirsk Digital ApS (Author: Andreas Kirkedal) diff --git a/egs/sprakbanken/s5/local/run_nnet2.sh b/egs/sprakbanken/s5/local/run_nnet2.sh index ad1ebb2e7a7..95205e363fb 100755 --- a/egs/sprakbanken/s5/local/run_nnet2.sh +++ b/egs/sprakbanken/s5/local/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/sprakbanken/s5/local/run_rnnlms_sgmm5b.sh b/egs/sprakbanken/s5/local/run_rnnlms_sgmm5b.sh index 67fcee50a93..867294d2e77 100755 --- a/egs/sprakbanken/s5/local/run_rnnlms_sgmm5b.sh +++ b/egs/sprakbanken/s5/local/run_rnnlms_sgmm5b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash for test in dev93 eval92; do diff --git a/egs/sprakbanken/s5/local/run_rnnlms_tri3b.sh b/egs/sprakbanken/s5/local/run_rnnlms_tri3b.sh index fac8842f960..32d5f55af91 100755 --- a/egs/sprakbanken/s5/local/run_rnnlms_tri3b.sh +++ b/egs/sprakbanken/s5/local/run_rnnlms_tri3b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/sprakbanken/s5/local/run_sgmm2.sh b/egs/sprakbanken/s5/local/run_sgmm2.sh index 2eb70785bcb..c129ff47f2e 100755 --- a/egs/sprakbanken/s5/local/run_sgmm2.sh +++ b/egs/sprakbanken/s5/local/run_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is invoked from ../run.sh # It contains some SGMM-related scripts that I am breaking out of the main run.sh for clarity. diff --git a/egs/sprakbanken/s5/local/score.sh b/egs/sprakbanken/s5/local/score.sh index 9fcafdc0b5c..31a34577931 100755 --- a/egs/sprakbanken/s5/local/score.sh +++ b/egs/sprakbanken/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey, Yenda Trmal) # Apache 2.0 diff --git a/egs/sprakbanken/s5/local/score_combine.sh b/egs/sprakbanken/s5/local/score_combine.sh index 65caab06ecc..c4d3c13886a 100755 --- a/egs/sprakbanken/s5/local/score_combine.sh +++ b/egs/sprakbanken/s5/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal diff --git a/egs/sprakbanken/s5/local/score_mbr.sh b/egs/sprakbanken/s5/local/score_mbr.sh index 04b84ccce5a..8c752368906 100755 --- a/egs/sprakbanken/s5/local/score_mbr.sh +++ b/egs/sprakbanken/s5/local/score_mbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script for minimum bayes risk decoding. diff --git a/egs/sprakbanken/s5/local/sprak_data_prep.sh b/egs/sprakbanken/s5/local/sprak_data_prep.sh index c336b06e8af..47fe1587715 100755 --- a/egs/sprakbanken/s5/local/sprak_data_prep.sh +++ b/egs/sprakbanken/s5/local/sprak_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # Copyright 2013-2014 Mirsk Digital Aps (Author: Andreas Kirkedal) diff --git a/egs/sprakbanken/s5/local/sprak_prep_lm.sh b/egs/sprakbanken/s5/local/sprak_prep_lm.sh index ec6e2bd4051..095ae44db32 100755 --- a/egs/sprakbanken/s5/local/sprak_prep_lm.sh +++ b/egs/sprakbanken/s5/local/sprak_prep_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash diff --git a/egs/sprakbanken/s5/local/sprak_prepare_dict.sh b/egs/sprakbanken/s5/local/sprak_prepare_dict.sh index e45da3338e9..79b5d9a2dba 100755 --- a/egs/sprakbanken/s5/local/sprak_prepare_dict.sh +++ b/egs/sprakbanken/s5/local/sprak_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # Copyright 2014 Mirsk Digital ApS (Author: Andreas Kirkedal) diff --git a/egs/sprakbanken/s5/local/sprak_run_nnet_cpu.sh b/egs/sprakbanken/s5/local/sprak_run_nnet_cpu.sh index 19a20da7285..890efb56dca 100755 --- a/egs/sprakbanken/s5/local/sprak_run_nnet_cpu.sh +++ b/egs/sprakbanken/s5/local/sprak_run_nnet_cpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/sprakbanken/s5/local/sprak_run_rnnlms_tri3b.sh b/egs/sprakbanken/s5/local/sprak_run_rnnlms_tri3b.sh index 5aeeefa6789..b39f284a735 100755 --- a/egs/sprakbanken/s5/local/sprak_run_rnnlms_tri3b.sh +++ b/egs/sprakbanken/s5/local/sprak_run_rnnlms_tri3b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/sprakbanken/s5/local/sprak_run_sgmm2.sh b/egs/sprakbanken/s5/local/sprak_run_sgmm2.sh index b540fe2451a..f42a28300d1 100755 --- a/egs/sprakbanken/s5/local/sprak_run_sgmm2.sh +++ b/egs/sprakbanken/s5/local/sprak_run_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is invoked from ../run.sh # It contains some SGMM-related scripts that I am breaking out of the main run.sh for clarity. diff --git a/egs/sprakbanken/s5/local/sprak_train_irstlm.sh b/egs/sprakbanken/s5/local/sprak_train_irstlm.sh index 33b27cc3e4c..ce98d3d1957 100755 --- a/egs/sprakbanken/s5/local/sprak_train_irstlm.sh +++ b/egs/sprakbanken/s5/local/sprak_train_irstlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 Mirsk Digital Aps (Author: Andreas Kirkedal) # Apache 2.0 diff --git a/egs/sprakbanken/s5/local/train_irstlm.sh b/egs/sprakbanken/s5/local/train_irstlm.sh index c91b68f8aab..15f0cb16a24 100755 --- a/egs/sprakbanken/s5/local/train_irstlm.sh +++ b/egs/sprakbanken/s5/local/train_irstlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Mirsk Digital ApS (Author: Andreas Kirkedal) # Apache 2.0 diff --git a/egs/sprakbanken/s5/run.sh b/egs/sprakbanken/s5/run.sh index 64a24deeabf..fe6d7e3dbe7 100755 --- a/egs/sprakbanken/s5/run.sh +++ b/egs/sprakbanken/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh ## You'll want to change cmd.sh to something that will work on your system. ## This relates to the queue. diff --git a/egs/sprakbanken_swe/s5/local/copy_dict.sh b/egs/sprakbanken_swe/s5/local/copy_dict.sh index e0a9632d219..e194e69e68c 100755 --- a/egs/sprakbanken_swe/s5/local/copy_dict.sh +++ b/egs/sprakbanken_swe/s5/local/copy_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # Copyright 2014 Mirsk Digital ApS (Author: Andreas Kirkedal) diff --git a/egs/sprakbanken_swe/s5/local/create_datasets.sh b/egs/sprakbanken_swe/s5/local/create_datasets.sh index 55ed1001a7f..1a305f5969d 100755 --- a/egs/sprakbanken_swe/s5/local/create_datasets.sh +++ b/egs/sprakbanken_swe/s5/local/create_datasets.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Mirsk Digital ApS (Author: Andreas Kirkedal) # Copyright 2016 KTH Royal Institute of Technology (Author: Emelie Kullmann) diff --git a/egs/sprakbanken_swe/s5/local/sprak_data_prep.sh b/egs/sprakbanken_swe/s5/local/sprak_data_prep.sh index 19751815208..407b8b4a8e3 100755 --- a/egs/sprakbanken_swe/s5/local/sprak_data_prep.sh +++ b/egs/sprakbanken_swe/s5/local/sprak_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # Copyright 2013-2014 Mirsk Digital Aps (Author: Andreas Kirkedal) diff --git a/egs/sprakbanken_swe/s5/local/sprak_run_5c.sh b/egs/sprakbanken_swe/s5/local/sprak_run_5c.sh index bad0cd72679..e489a4a354d 100755 --- a/egs/sprakbanken_swe/s5/local/sprak_run_5c.sh +++ b/egs/sprakbanken_swe/s5/local/sprak_run_5c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is neural net training on top of adapted 40-dimensional features. # diff --git a/egs/sprakbanken_swe/s5/local/sprak_run_nnet_cpu.sh b/egs/sprakbanken_swe/s5/local/sprak_run_nnet_cpu.sh index 19a20da7285..890efb56dca 100755 --- a/egs/sprakbanken_swe/s5/local/sprak_run_nnet_cpu.sh +++ b/egs/sprakbanken_swe/s5/local/sprak_run_nnet_cpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/sprakbanken_swe/s5/local/train_irstlm.sh b/egs/sprakbanken_swe/s5/local/train_irstlm.sh index c91b68f8aab..15f0cb16a24 100755 --- a/egs/sprakbanken_swe/s5/local/train_irstlm.sh +++ b/egs/sprakbanken_swe/s5/local/train_irstlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Mirsk Digital ApS (Author: Andreas Kirkedal) # Apache 2.0 diff --git a/egs/sprakbanken_swe/s5/run.sh b/egs/sprakbanken_swe/s5/run.sh index 3b8cc781619..0a196a3b9cd 100644 --- a/egs/sprakbanken_swe/s5/run.sh +++ b/egs/sprakbanken_swe/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh ## You'll want to change cmd.sh to something that will work on your system. ## This relates to the queue. diff --git a/egs/sre08/v1/local/det_curve_example.sh b/egs/sre08/v1/local/det_curve_example.sh index c80153a5bb5..37fcec1ca49 100644 --- a/egs/sre08/v1/local/det_curve_example.sh +++ b/egs/sre08/v1/local/det_curve_example.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This shell-script is just to show how you would plot det curves # using DETWare. diff --git a/egs/sre08/v1/local/make_fisher.sh b/egs/sre08/v1/local/make_fisher.sh index 3968ad49284..ff9e7aecbca 100755 --- a/egs/sre08/v1/local/make_fisher.sh +++ b/egs/sre08/v1/local/make_fisher.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # Apache 2.0 diff --git a/egs/sre08/v1/local/make_sre_2008_test.sh b/egs/sre08/v1/local/make_sre_2008_test.sh index 424a51293a6..ff1509c0a65 100755 --- a/egs/sre08/v1/local/make_sre_2008_test.sh +++ b/egs/sre08/v1/local/make_sre_2008_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # Apache 2.0. diff --git a/egs/sre08/v1/local/run_more_data.sh b/egs/sre08/v1/local/run_more_data.sh index e6fdf7c91f9..0e74a820d61 100755 --- a/egs/sre08/v1/local/run_more_data.sh +++ b/egs/sre08/v1/local/run_more_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # Apache 2.0. # diff --git a/egs/sre08/v1/local/score_sre08.sh b/egs/sre08/v1/local/score_sre08.sh index c1584946735..1207145ec28 100755 --- a/egs/sre08/v1/local/score_sre08.sh +++ b/egs/sre08/v1/local/score_sre08.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # Apache 2.0. diff --git a/egs/sre08/v1/run.sh b/egs/sre08/v1/run.sh index 4337a0dab7a..0640df9e8b6 100755 --- a/egs/sre08/v1/run.sh +++ b/egs/sre08/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014-2016 David Snyder # Apache 2.0. diff --git a/egs/sre08/v1/sid/compute_vad_decision_gmm.sh b/egs/sre08/v1/sid/compute_vad_decision_gmm.sh index b1fee318f34..7191eae8e2e 100755 --- a/egs/sre08/v1/sid/compute_vad_decision_gmm.sh +++ b/egs/sre08/v1/sid/compute_vad_decision_gmm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Apache 2.0 diff --git a/egs/sre08/v1/sid/extract_ivectors.sh b/egs/sre08/v1/sid/extract_ivectors.sh index d01bc86ba8e..d66d3b5e2ad 100755 --- a/egs/sre08/v1/sid/extract_ivectors.sh +++ b/egs/sre08/v1/sid/extract_ivectors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014 David Snyder diff --git a/egs/sre08/v1/sid/extract_ivectors_dnn.sh b/egs/sre08/v1/sid/extract_ivectors_dnn.sh index 8d21da3fcde..aa97feab6a1 100755 --- a/egs/sre08/v1/sid/extract_ivectors_dnn.sh +++ b/egs/sre08/v1/sid/extract_ivectors_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014-2017 David Snyder diff --git a/egs/sre08/v1/sid/gender_id.sh b/egs/sre08/v1/sid/gender_id.sh index fa2a16274a2..0e8861f0456 100755 --- a/egs/sre08/v1/sid/gender_id.sh +++ b/egs/sre08/v1/sid/gender_id.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014 David Snyder diff --git a/egs/sre08/v1/sid/init_full_ubm_from_dnn.sh b/egs/sre08/v1/sid/init_full_ubm_from_dnn.sh index c6b508a7206..abb62feb413 100755 --- a/egs/sre08/v1/sid/init_full_ubm_from_dnn.sh +++ b/egs/sre08/v1/sid/init_full_ubm_from_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2017 David Snyder # 2015 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2015 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/sre08/v1/sid/music_id.sh b/egs/sre08/v1/sid/music_id.sh index 4233b5752fd..31828f6dacc 100755 --- a/egs/sre08/v1/sid/music_id.sh +++ b/egs/sre08/v1/sid/music_id.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Apache 2.0. diff --git a/egs/sre08/v1/sid/nnet2/get_egs2.sh b/egs/sre08/v1/sid/nnet2/get_egs2.sh index f8696a221c1..01b9dddf285 100755 --- a/egs/sre08/v1/sid/nnet2/get_egs2.sh +++ b/egs/sre08/v1/sid/nnet2/get_egs2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2015 David Snyder diff --git a/egs/sre08/v1/sid/nnet2/get_lda.sh b/egs/sre08/v1/sid/nnet2/get_lda.sh index 89594a20f84..8cb6347bb88 100755 --- a/egs/sre08/v1/sid/nnet2/get_lda.sh +++ b/egs/sre08/v1/sid/nnet2/get_lda.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). # 2015 David Snyder diff --git a/egs/sre08/v1/sid/nnet2/train_multisplice_accel2.sh b/egs/sre08/v1/sid/nnet2/train_multisplice_accel2.sh index c56e89b5d94..22469b3f9c2 100755 --- a/egs/sre08/v1/sid/nnet2/train_multisplice_accel2.sh +++ b/egs/sre08/v1/sid/nnet2/train_multisplice_accel2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/sre08/v1/sid/nnet3/xvector/extract_xvectors.sh b/egs/sre08/v1/sid/nnet3/xvector/extract_xvectors.sh index 2cfda807c8c..6ba53051508 100755 --- a/egs/sre08/v1/sid/nnet3/xvector/extract_xvectors.sh +++ b/egs/sre08/v1/sid/nnet3/xvector/extract_xvectors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 David Snyder # 2017 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/sre08/v1/sid/nnet3/xvector/get_egs.sh b/egs/sre08/v1/sid/nnet3/xvector/get_egs.sh index 3f2200c115c..216d1cad318 100755 --- a/egs/sre08/v1/sid/nnet3/xvector/get_egs.sh +++ b/egs/sre08/v1/sid/nnet3/xvector/get_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Daniel Povey) # 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) diff --git a/egs/sre08/v1/sid/train_diag_ubm.sh b/egs/sre08/v1/sid/train_diag_ubm.sh index b584014963c..fe4930d4805 100755 --- a/egs/sre08/v1/sid/train_diag_ubm.sh +++ b/egs/sre08/v1/sid/train_diag_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2013 Daniel Povey diff --git a/egs/sre08/v1/sid/train_full_ubm.sh b/egs/sre08/v1/sid/train_full_ubm.sh index 3dec3faaf65..0e3536ab287 100755 --- a/egs/sre08/v1/sid/train_full_ubm.sh +++ b/egs/sre08/v1/sid/train_full_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # 2013 Daniel Povey diff --git a/egs/sre08/v1/sid/train_ivector_extractor.sh b/egs/sre08/v1/sid/train_ivector_extractor.sh index 84d32797157..3b3697cfdcf 100755 --- a/egs/sre08/v1/sid/train_ivector_extractor.sh +++ b/egs/sre08/v1/sid/train_ivector_extractor.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014 David Snyder diff --git a/egs/sre08/v1/sid/train_ivector_extractor_dnn.sh b/egs/sre08/v1/sid/train_ivector_extractor_dnn.sh index c64b83c5a4b..40f34a63155 100755 --- a/egs/sre08/v1/sid/train_ivector_extractor_dnn.sh +++ b/egs/sre08/v1/sid/train_ivector_extractor_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2014-2017 David Snyder diff --git a/egs/sre10/v1/local/cosine_scoring.sh b/egs/sre10/v1/local/cosine_scoring.sh index 99d2945e89d..0adffd422bc 100755 --- a/egs/sre10/v1/local/cosine_scoring.sh +++ b/egs/sre10/v1/local/cosine_scoring.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Apache 2.0. # diff --git a/egs/sre10/v1/local/det_curve_example.sh b/egs/sre10/v1/local/det_curve_example.sh index c80153a5bb5..37fcec1ca49 100644 --- a/egs/sre10/v1/local/det_curve_example.sh +++ b/egs/sre10/v1/local/det_curve_example.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This shell-script is just to show how you would plot det curves # using DETWare. diff --git a/egs/sre10/v1/local/dnn/fisher_create_test_lang.sh b/egs/sre10/v1/local/dnn/fisher_create_test_lang.sh index f0926d2ceab..250257e071d 100755 --- a/egs/sre10/v1/local/dnn/fisher_create_test_lang.sh +++ b/egs/sre10/v1/local/dnn/fisher_create_test_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # if [ -f path.sh ]; then . ./path.sh; fi diff --git a/egs/sre10/v1/local/dnn/fisher_data_prep.sh b/egs/sre10/v1/local/dnn/fisher_data_prep.sh index 771c868064d..fc96c491f51 100755 --- a/egs/sre10/v1/local/dnn/fisher_data_prep.sh +++ b/egs/sre10/v1/local/dnn/fisher_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0. diff --git a/egs/sre10/v1/local/dnn/fisher_prepare_dict.sh b/egs/sre10/v1/local/dnn/fisher_prepare_dict.sh index 521b50dc404..978ad7d9eb1 100755 --- a/egs/sre10/v1/local/dnn/fisher_prepare_dict.sh +++ b/egs/sre10/v1/local/dnn/fisher_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # To be run from one directory above this script. diff --git a/egs/sre10/v1/local/dnn/fisher_train_lms.sh b/egs/sre10/v1/local/dnn/fisher_train_lms.sh index 354882a3760..3497da32213 100755 --- a/egs/sre10/v1/local/dnn/fisher_train_lms.sh +++ b/egs/sre10/v1/local/dnn/fisher_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/sre10/v1/local/dnn/remove_dup_utts.sh b/egs/sre10/v1/local/dnn/remove_dup_utts.sh index 1211e0e04fd..f40a7b781c8 100755 --- a/egs/sre10/v1/local/dnn/remove_dup_utts.sh +++ b/egs/sre10/v1/local/dnn/remove_dup_utts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Remove excess utterances once they appear more than a specified # number of times with the same transcription, in a data set. diff --git a/egs/sre10/v1/local/dnn/run_nnet2_common.sh b/egs/sre10/v1/local/dnn/run_nnet2_common.sh index 2d0703b51c0..032282c11ef 100755 --- a/egs/sre10/v1/local/dnn/run_nnet2_common.sh +++ b/egs/sre10/v1/local/dnn/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Make the features. diff --git a/egs/sre10/v1/local/dnn/run_nnet2_multisplice.sh b/egs/sre10/v1/local/dnn/run_nnet2_multisplice.sh index 97b9789af0c..b5549136629 100755 --- a/egs/sre10/v1/local/dnn/run_nnet2_multisplice.sh +++ b/egs/sre10/v1/local/dnn/run_nnet2_multisplice.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on run_nnet2_multisplice.sh in # egs/fisher_english/s5/local/online. It has been modified diff --git a/egs/sre10/v1/local/dnn/train_dnn.sh b/egs/sre10/v1/local/dnn/train_dnn.sh index 98da891ac24..956c8270b78 100755 --- a/egs/sre10/v1/local/dnn/train_dnn.sh +++ b/egs/sre10/v1/local/dnn/train_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is based on egs/fisher_english/s5/run.sh. It trains a # multisplice time-delay neural network used in the DNN-based speaker diff --git a/egs/sre10/v1/local/lda_scoring.sh b/egs/sre10/v1/local/lda_scoring.sh index 2876693115c..a4b84ab68cf 100755 --- a/egs/sre10/v1/local/lda_scoring.sh +++ b/egs/sre10/v1/local/lda_scoring.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Apache 2.0. # diff --git a/egs/sre10/v1/local/make_sre.sh b/egs/sre10/v1/local/make_sre.sh index c51a7752645..5423b1ec7c0 100755 --- a/egs/sre10/v1/local/make_sre.sh +++ b/egs/sre10/v1/local/make_sre.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Apache 2.0. # diff --git a/egs/sre10/v1/local/plda_scoring.sh b/egs/sre10/v1/local/plda_scoring.sh index 63d4a4f0d4c..d3e9c0c0e9d 100755 --- a/egs/sre10/v1/local/plda_scoring.sh +++ b/egs/sre10/v1/local/plda_scoring.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Apache 2.0. # diff --git a/egs/sre10/v1/local/scoring_common.sh b/egs/sre10/v1/local/scoring_common.sh index 6440d541ad4..d5ce1d04ecf 100755 --- a/egs/sre10/v1/local/scoring_common.sh +++ b/egs/sre10/v1/local/scoring_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # Apache 2.0. # diff --git a/egs/sre10/v1/run.sh b/egs/sre10/v1/run.sh index b3714e3d21c..879982270d7 100755 --- a/egs/sre10/v1/run.sh +++ b/egs/sre10/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2017 David Snyder # 2015 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2015 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/sre10/v2/run.sh b/egs/sre10/v2/run.sh index 4519b1f78c0..9886d030839 100755 --- a/egs/sre10/v2/run.sh +++ b/egs/sre10/v2/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-2017 David Snyder # 2015 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2015 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/sre16/v1/local/make_mx6.sh b/egs/sre16/v1/local/make_mx6.sh index 4e0df1350a1..f40308ee2b4 100755 --- a/egs/sre16/v1/local/make_mx6.sh +++ b/egs/sre16/v1/local/make_mx6.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 David Snyder # Apache 2.0. # diff --git a/egs/sre16/v1/local/make_sre.sh b/egs/sre16/v1/local/make_sre.sh index 45e75ac8ae2..282ac95f5f7 100755 --- a/egs/sre16/v1/local/make_sre.sh +++ b/egs/sre16/v1/local/make_sre.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 David Snyder # Apache 2.0. # diff --git a/egs/sre16/v1/local/nnet3/xvector/prepare_feats_for_egs.sh b/egs/sre16/v1/local/nnet3/xvector/prepare_feats_for_egs.sh index a35b94150c4..97b49571676 100755 --- a/egs/sre16/v1/local/nnet3/xvector/prepare_feats_for_egs.sh +++ b/egs/sre16/v1/local/nnet3/xvector/prepare_feats_for_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Apache 2.0. diff --git a/egs/sre16/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh b/egs/sre16/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh index 6a103ea8bf0..b2424bd93f2 100755 --- a/egs/sre16/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh +++ b/egs/sre16/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 David Snyder # 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/sre16/v1/run.sh b/egs/sre16/v1/run.sh index 2315d7ac78a..5e238abc02a 100755 --- a/egs/sre16/v1/run.sh +++ b/egs/sre16/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 David Snyder # 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/sre16/v2/run.sh b/egs/sre16/v2/run.sh index 7780c30560b..3feb98da3ee 100755 --- a/egs/sre16/v2/run.sh +++ b/egs/sre16/v2/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 David Snyder # 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/svhn/v1/local/nnet3/compare.sh b/egs/svhn/v1/local/nnet3/compare.sh index 8ef1485ecc5..5b9b78cd8c9 100755 --- a/egs/svhn/v1/local/nnet3/compare.sh +++ b/egs/svhn/v1/local/nnet3/compare.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing trained models between systems. # e.g. local/nnet3/compare.sh exp/resnet1{b,c} diff --git a/egs/svhn/v1/local/nnet3/tuning/run_cnn_1a.sh b/egs/svhn/v1/local/nnet3/tuning/run_cnn_1a.sh index 7df25f41af9..414b28c3cb4 100755 --- a/egs/svhn/v1/local/nnet3/tuning/run_cnn_1a.sh +++ b/egs/svhn/v1/local/nnet3/tuning/run_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # steps/info/nnet3_dir_info.pl exp/cnn1a # exp/cnn1a: num-iters=108 nj=2..4 num-params=0.5M dim=96->10 combine=-0.09->-0.09 loglike:train/valid[71,107,final]=(-0.101,-0.074,-0.067/-0.189,-0.144,-0.136) accuracy:train/valid[71,107,final]=(0.973,0.9834,0.9850/0.949,0.963,0.966) diff --git a/egs/svhn/v1/local/nnet3/tuning/run_cnn_aug_1a.sh b/egs/svhn/v1/local/nnet3/tuning/run_cnn_aug_1a.sh index e89ff125102..b58647fafb9 100755 --- a/egs/svhn/v1/local/nnet3/tuning/run_cnn_aug_1a.sh +++ b/egs/svhn/v1/local/nnet3/tuning/run_cnn_aug_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # nnet topology similar to 1a but bigger and with more epochs and data augmentation (improved 95 --> 97) diff --git a/egs/svhn/v1/local/nnet3/tuning/run_cnn_aug_1b.sh b/egs/svhn/v1/local/nnet3/tuning/run_cnn_aug_1b.sh index cf2f92590d2..f98e2ae1285 100755 --- a/egs/svhn/v1/local/nnet3/tuning/run_cnn_aug_1b.sh +++ b/egs/svhn/v1/local/nnet3/tuning/run_cnn_aug_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_cnn_aug_1b.sh is like run_cnn_aug_1a.sh but setting # num-minibatches-history=40.0 (longer history for natural gradient), diff --git a/egs/svhn/v1/local/nnet3/tuning/run_resnet_1b.sh b/egs/svhn/v1/local/nnet3/tuning/run_resnet_1b.sh index 7f0540e90fe..009e77b073f 100755 --- a/egs/svhn/v1/local/nnet3/tuning/run_resnet_1b.sh +++ b/egs/svhn/v1/local/nnet3/tuning/run_resnet_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # exp/resnet1b: num-iters=130 nj=2..4 num-params=1.3M dim=96->10 combine=-0.04->-0.04 loglike:train/valid[85,129,final]=(-0.049,-0.044,-0.036/-0.098,-0.085,-0.076) accuracy:train/valid[85,129,final]=(0.9904,0.9908,0.9940/0.9764,0.9804,0.9831) diff --git a/egs/svhn/v1/local/nnet3/tuning/run_resnet_1c.sh b/egs/svhn/v1/local/nnet3/tuning/run_resnet_1c.sh index d0b872ae52e..b518871f642 100755 --- a/egs/svhn/v1/local/nnet3/tuning/run_resnet_1c.sh +++ b/egs/svhn/v1/local/nnet3/tuning/run_resnet_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # resnet1c is as resnet1b but adding "num-minibatches-history=40.0" to # all layers to increase the history size of natural gradient diff --git a/egs/svhn/v1/local/nnet3/tuning/run_resnet_1d.sh b/egs/svhn/v1/local/nnet3/tuning/run_resnet_1d.sh index 2dfbc98b4eb..c80c80ca2dd 100755 --- a/egs/svhn/v1/local/nnet3/tuning/run_resnet_1d.sh +++ b/egs/svhn/v1/local/nnet3/tuning/run_resnet_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1d is like 1c except it uses l2-regularize instead of proportional-shrink diff --git a/egs/svhn/v1/local/prepare_data.sh b/egs/svhn/v1/local/prepare_data.sh index 715b4ed1bce..bc950153f50 100755 --- a/egs/svhn/v1/local/prepare_data.sh +++ b/egs/svhn/v1/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (author: Hossein Hadian) # Apache 2.0 diff --git a/egs/svhn/v1/run.sh b/egs/svhn/v1/run.sh index 720f4a13e29..0257cb1d5bd 100755 --- a/egs/svhn/v1/run.sh +++ b/egs/svhn/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 diff --git a/egs/swahili/s5/local/prepare_data.sh b/egs/swahili/s5/local/prepare_data.sh index b0fb93f09bc..cd861ed3f62 100755 --- a/egs/swahili/s5/local/prepare_data.sh +++ b/egs/swahili/s5/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ $1 && $2 ]]; then local=`pwd`/local diff --git a/egs/swahili/s5/local/prepare_dict.sh b/egs/swahili/s5/local/prepare_dict.sh index 8981b0779cd..d2dfa3276fb 100755 --- a/egs/swahili/s5/local/prepare_dict.sh +++ b/egs/swahili/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash mkdir -p data/lang data/local/dict diff --git a/egs/swahili/s5/local/prepare_lm.sh b/egs/swahili/s5/local/prepare_lm.sh index 028aaa421f2..932708cb049 100755 --- a/egs/swahili/s5/local/prepare_lm.sh +++ b/egs/swahili/s5/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./path.sh || die "path.sh expected"; diff --git a/egs/swahili/s5/local/score.sh b/egs/swahili/s5/local/score.sh index abd8149a672..332f038c575 100755 --- a/egs/swahili/s5/local/score.sh +++ b/egs/swahili/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/swahili/s5/local/score_combine.sh b/egs/swahili/s5/local/score_combine.sh index 65caab06ecc..c4d3c13886a 100755 --- a/egs/swahili/s5/local/score_combine.sh +++ b/egs/swahili/s5/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal diff --git a/egs/swahili/s5/local/score_mbr.sh b/egs/swahili/s5/local/score_mbr.sh index 04b84ccce5a..8c752368906 100755 --- a/egs/swahili/s5/local/score_mbr.sh +++ b/egs/swahili/s5/local/score_mbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script for minimum bayes risk decoding. diff --git a/egs/swahili/s5/path.sh b/egs/swahili/s5/path.sh index 8b61dce675e..b3c471a2b93 100755 --- a/egs/swahili/s5/path.sh +++ b/egs/swahili/s5/path.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export KALDI_ROOT=`pwd`/../../.. [ -f $KALDI_ROOT/tools/env.sh ] && . $KALDI_ROOT/tools/env.sh export PATH=$PWD/utils/:$KALDI_ROOT/tools/openfst/bin:$PWD:$PATH diff --git a/egs/swahili/s5/run.sh b/egs/swahili/s5/run.sh index 3da3a30cc3b..c4baa3e0874 100755 --- a/egs/swahili/s5/run.sh +++ b/egs/swahili/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # initialization PATH . ./path.sh || die "path.sh expected"; diff --git a/egs/swbd/s5/local/eval1997_data_prep_edin.sh b/egs/swbd/s5/local/eval1997_data_prep_edin.sh index 705ab8c3874..d9610004646 100755 --- a/egs/swbd/s5/local/eval1997_data_prep_edin.sh +++ b/egs/swbd/s5/local/eval1997_data_prep_edin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Hub-5 Eval 1997 data preparation # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/swbd/s5/local/eval2000_data_prep.sh b/egs/swbd/s5/local/eval2000_data_prep.sh index fb13b286878..028d04f4c69 100755 --- a/egs/swbd/s5/local/eval2000_data_prep.sh +++ b/egs/swbd/s5/local/eval2000_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # To be run from one directory above this script. diff --git a/egs/swbd/s5/local/eval2000_data_prep_edin.sh b/egs/swbd/s5/local/eval2000_data_prep_edin.sh index 8dcd5de0395..aacece6bd35 100755 --- a/egs/swbd/s5/local/eval2000_data_prep_edin.sh +++ b/egs/swbd/s5/local/eval2000_data_prep_edin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Hub-5 Eval 2000 data preparation # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/swbd/s5/local/eval2001_data_prep_edin.sh b/egs/swbd/s5/local/eval2001_data_prep_edin.sh index 052b30d6df8..bdc585a6c8b 100755 --- a/egs/swbd/s5/local/eval2001_data_prep_edin.sh +++ b/egs/swbd/s5/local/eval2001_data_prep_edin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Hub-5 Eval 2001 data preparation # Author: Arnab Ghoshal (March 2013) diff --git a/egs/swbd/s5/local/run_sgmm2.sh b/egs/swbd/s5/local/run_sgmm2.sh index 194dfa05e61..97621e4c251 100755 --- a/egs/swbd/s5/local/run_sgmm2.sh +++ b/egs/swbd/s5/local/run_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/swbd/s5/local/run_tandem_uc.sh b/egs/swbd/s5/local/run_tandem_uc.sh index 94d4a61d5a4..afbebb40756 100755 --- a/egs/swbd/s5/local/run_tandem_uc.sh +++ b/egs/swbd/s5/local/run_tandem_uc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/swbd/s5/local/score.sh b/egs/swbd/s5/local/score.sh index da71d126a86..06bfd0e9202 100755 --- a/egs/swbd/s5/local/score.sh +++ b/egs/swbd/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. orig_args= diff --git a/egs/swbd/s5/local/score_basic.sh b/egs/swbd/s5/local/score_basic.sh index 6cefe566f4b..ae57745e652 100755 --- a/egs/swbd/s5/local/score_basic.sh +++ b/egs/swbd/s5/local/score_basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/swbd/s5/local/score_sclite.sh b/egs/swbd/s5/local/score_sclite.sh index 88905189f78..36d1082fa35 100755 --- a/egs/swbd/s5/local/score_sclite.sh +++ b/egs/swbd/s5/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/swbd/s5/local/score_sclite_conf.sh b/egs/swbd/s5/local/score_sclite_conf.sh index bb354fd50cf..d6d052ee763 100755 --- a/egs/swbd/s5/local/score_sclite_conf.sh +++ b/egs/swbd/s5/local/score_sclite_conf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/swbd/s5/local/swbd1_data_prep_edin.sh b/egs/swbd/s5/local/swbd1_data_prep_edin.sh index 5a64f62fa07..7de36d36630 100755 --- a/egs/swbd/s5/local/swbd1_data_prep_edin.sh +++ b/egs/swbd/s5/local/swbd1_data_prep_edin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Switchboard-1 training data preparation customized for Edinburgh # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/swbd/s5/local/swbd1_prepare_dict.sh b/egs/swbd/s5/local/swbd1_prepare_dict.sh index 9cf25f74902..8cab3093d07 100755 --- a/egs/swbd/s5/local/swbd1_prepare_dict.sh +++ b/egs/swbd/s5/local/swbd1_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Formatting the Mississippi State dictionary for use in Edinburgh. Differs # from the one in Kaldi s5 recipe in that it uses lower-case --Arnab (Jan 2013) diff --git a/egs/swbd/s5/local/swbd1_train_lms_edin.sh b/egs/swbd/s5/local/swbd1_train_lms_edin.sh index db093f851f0..d084ae74eb4 100755 --- a/egs/swbd/s5/local/swbd1_train_lms_edin.sh +++ b/egs/swbd/s5/local/swbd1_train_lms_edin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal diff --git a/egs/swbd/s5/local/swbd_p1_data_prep.sh b/egs/swbd/s5/local/swbd_p1_data_prep.sh index 53982837701..0a5812a8035 100755 --- a/egs/swbd/s5/local/swbd_p1_data_prep.sh +++ b/egs/swbd/s5/local/swbd_p1_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # To be run from one directory above this script. diff --git a/egs/swbd/s5/local/swbd_p1_format_data.sh b/egs/swbd/s5/local/swbd_p1_format_data.sh index 4f81138827a..d310de447ba 100755 --- a/egs/swbd/s5/local/swbd_p1_format_data.sh +++ b/egs/swbd/s5/local/swbd_p1_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # if [ -f path.sh ]; then . ./path.sh; fi diff --git a/egs/swbd/s5/local/swbd_p1_prepare_dict.sh b/egs/swbd/s5/local/swbd_p1_prepare_dict.sh index 12f7e8a66c8..a9b180aafa8 100755 --- a/egs/swbd/s5/local/swbd_p1_prepare_dict.sh +++ b/egs/swbd/s5/local/swbd_p1_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # To be run from one directory above this script. diff --git a/egs/swbd/s5/local/swbd_p1_train_lms.sh b/egs/swbd/s5/local/swbd_p1_train_lms.sh index 4362bdd708f..2c40702b2b5 100755 --- a/egs/swbd/s5/local/swbd_p1_train_lms.sh +++ b/egs/swbd/s5/local/swbd_p1_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from one directory above this script. diff --git a/egs/swbd/s5/run.sh b/egs/swbd/s5/run.sh index 79fe7703314..5c403743ce6 100755 --- a/egs/swbd/s5/run.sh +++ b/egs/swbd/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Warning-- this recipe is now out of date. See ../s5c/ for the latest recipe. diff --git a/egs/swbd/s5/run_edin.sh b/egs/swbd/s5/run_edin.sh index dce4ae37b51..c29a2983aca 100755 --- a/egs/swbd/s5/run_edin.sh +++ b/egs/swbd/s5/run_edin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Switchboard-1 recipe customized for Edinburgh # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/swbd/s5b/local/eval1997_data_prep.sh b/egs/swbd/s5b/local/eval1997_data_prep.sh index 705ab8c3874..d9610004646 100755 --- a/egs/swbd/s5b/local/eval1997_data_prep.sh +++ b/egs/swbd/s5b/local/eval1997_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Hub-5 Eval 1997 data preparation # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/swbd/s5b/local/eval2000_data_prep.sh b/egs/swbd/s5b/local/eval2000_data_prep.sh index abb62c339c8..90bae051a95 100755 --- a/egs/swbd/s5b/local/eval2000_data_prep.sh +++ b/egs/swbd/s5b/local/eval2000_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Hub-5 Eval 2000 data preparation # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/swbd/s5b/local/nnet/run_dnn.sh b/egs/swbd/s5b/local/nnet/run_dnn.sh index 7f8918bc8e4..05d5c254858 100755 --- a/egs/swbd/s5b/local/nnet/run_dnn.sh +++ b/egs/swbd/s5b/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/swbd/s5b/local/nnet/run_dnn_tandem_uc.sh b/egs/swbd/s5b/local/nnet/run_dnn_tandem_uc.sh index 3791659278d..58d1de03044 100755 --- a/egs/swbd/s5b/local/nnet/run_dnn_tandem_uc.sh +++ b/egs/swbd/s5b/local/nnet/run_dnn_tandem_uc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/swbd/s5b/local/nnet2/run_5a.sh b/egs/swbd/s5b/local/nnet2/run_5a.sh index 5acc54aacec..0717b107445 100755 --- a/egs/swbd/s5b/local/nnet2/run_5a.sh +++ b/egs/swbd/s5b/local/nnet2/run_5a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This runs on the 100 hour subset. diff --git a/egs/swbd/s5b/local/nnet2/run_5a_gpu.sh b/egs/swbd/s5b/local/nnet2/run_5a_gpu.sh index 3aae7918964..e4bebadb733 100755 --- a/egs/swbd/s5b/local/nnet2/run_5a_gpu.sh +++ b/egs/swbd/s5b/local/nnet2/run_5a_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This runs on the 100 hour subset. # e.g. of usage: diff --git a/egs/swbd/s5b/local/nnet2/run_5b_gpu.sh b/egs/swbd/s5b/local/nnet2/run_5b_gpu.sh index 74058d9fac4..15e675425fa 100755 --- a/egs/swbd/s5b/local/nnet2/run_5b_gpu.sh +++ b/egs/swbd/s5b/local/nnet2/run_5b_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 diff --git a/egs/swbd/s5b/local/nnet2/run_5c_gpu.sh b/egs/swbd/s5b/local/nnet2/run_5c_gpu.sh index 55becfbe0fc..12dc23b6ed9 100755 --- a/egs/swbd/s5b/local/nnet2/run_5c_gpu.sh +++ b/egs/swbd/s5b/local/nnet2/run_5c_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is on the full training set (with duplicates removed). This version of the recipe runs on GPUs. diff --git a/egs/swbd/s5b/local/nnet2/run_5d_gpu.sh b/egs/swbd/s5b/local/nnet2/run_5d_gpu.sh index e0b523910df..6c6115d41ae 100755 --- a/egs/swbd/s5b/local/nnet2/run_5d_gpu.sh +++ b/egs/swbd/s5b/local/nnet2/run_5d_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This runs on the 100 hour subset, similar as run_5a_gpu.sh, but it's using steps/nnet2/train_pnorm.sh. # e.g. of usage: diff --git a/egs/swbd/s5b/local/nnet2/run_5e_gpu.sh b/egs/swbd/s5b/local/nnet2/run_5e_gpu.sh index 7a869071898..ebce57a3852 100755 --- a/egs/swbd/s5b/local/nnet2/run_5e_gpu.sh +++ b/egs/swbd/s5b/local/nnet2/run_5e_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is as 5d (100 hour subset, pnorm), # but on top of the raw-fMLLR input diff --git a/egs/swbd/s5b/local/nnet2/run_5f_gpu.sh b/egs/swbd/s5b/local/nnet2/run_5f_gpu.sh index b91599a27e6..bea3a7a75f3 100755 --- a/egs/swbd/s5b/local/nnet2/run_5f_gpu.sh +++ b/egs/swbd/s5b/local/nnet2/run_5f_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This runs on the full training set (with duplicates removed), with p-norm units, on top of fMLLR features, on GPU. diff --git a/egs/swbd/s5b/local/nnet2/run_6a_gpu.sh b/egs/swbd/s5b/local/nnet2/run_6a_gpu.sh index 6327ee85224..8287f65e80a 100755 --- a/egs/swbd/s5b/local/nnet2/run_6a_gpu.sh +++ b/egs/swbd/s5b/local/nnet2/run_6a_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This runs on the 100 hour subset; it's another neural-net training # after the nnet5a setup, but after realignment. We're just seeing diff --git a/egs/swbd/s5b/local/nnet2/run_6c_gpu.sh b/egs/swbd/s5b/local/nnet2/run_6c_gpu.sh index 0296f4cca00..f3b7af2a64d 100755 --- a/egs/swbd/s5b/local/nnet2/run_6c_gpu.sh +++ b/egs/swbd/s5b/local/nnet2/run_6c_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates discriminative training of neural nets. It's on top diff --git a/egs/swbd/s5b/local/online/run_nnet2.sh b/egs/swbd/s5b/local/online/run_nnet2.sh index 679829fe84e..4a0dd2ab668 100755 --- a/egs/swbd/s5b/local/online/run_nnet2.sh +++ b/egs/swbd/s5b/local/online/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/swbd/s5b/local/online/run_nnet2_baseline.sh b/egs/swbd/s5b/local/online/run_nnet2_baseline.sh index 8cb264c3ea1..4fd59788a55 100755 --- a/egs/swbd/s5b/local/online/run_nnet2_baseline.sh +++ b/egs/swbd/s5b/local/online/run_nnet2_baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/swbd/s5b/local/online/run_nnet2_common.sh b/egs/swbd/s5b/local/online/run_nnet2_common.sh index c55250757d2..b7e56feac91 100755 --- a/egs/swbd/s5b/local/online/run_nnet2_common.sh +++ b/egs/swbd/s5b/local/online/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh set -e diff --git a/egs/swbd/s5b/local/online/run_nnet2_fisher.sh b/egs/swbd/s5b/local/online/run_nnet2_fisher.sh index 94ca1afae03..a1fa95dedd2 100755 --- a/egs/swbd/s5b/local/online/run_nnet2_fisher.sh +++ b/egs/swbd/s5b/local/online/run_nnet2_fisher.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script trains a Switchboard system starting from a neural net trained for diff --git a/egs/swbd/s5b/local/online/run_nnet2_ms.sh b/egs/swbd/s5b/local/online/run_nnet2_ms.sh index ae6bad59d42..033f7426b54 100755 --- a/egs/swbd/s5b/local/online/run_nnet2_ms.sh +++ b/egs/swbd/s5b/local/online/run_nnet2_ms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh set -e diff --git a/egs/swbd/s5b/local/online/run_nnet2_ms_disc.sh b/egs/swbd/s5b/local/online/run_nnet2_ms_disc.sh index 3eebbc6751a..d0e7fa77dfe 100755 --- a/egs/swbd/s5b/local/online/run_nnet2_ms_disc.sh +++ b/egs/swbd/s5b/local/online/run_nnet2_ms_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is run_nnet2_ms_disc.sh but with 4 jobs not 2 (and double the learning rate). diff --git a/egs/swbd/s5b/local/online/run_nnet2_perturb_speed.sh b/egs/swbd/s5b/local/online/run_nnet2_perturb_speed.sh index a3b081861ae..03ae9476739 100755 --- a/egs/swbd/s5b/local/online/run_nnet2_perturb_speed.sh +++ b/egs/swbd/s5b/local/online/run_nnet2_perturb_speed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (author: Daniel Povey) # 2014 Tom Ko diff --git a/egs/swbd/s5b/local/run_nnet2.sh b/egs/swbd/s5b/local/run_nnet2.sh index bc1e55a24d2..68a8d9e07c1 100644 --- a/egs/swbd/s5b/local/run_nnet2.sh +++ b/egs/swbd/s5b/local/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This shows what you can potentially run; you'd probably want to pick and choose. diff --git a/egs/swbd/s5b/local/run_raw_fmllr.sh b/egs/swbd/s5b/local/run_raw_fmllr.sh index 0215c832ce5..796c3c6cc5a 100755 --- a/egs/swbd/s5b/local/run_raw_fmllr.sh +++ b/egs/swbd/s5b/local/run_raw_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh set -e diff --git a/egs/swbd/s5b/local/run_resegment.sh b/egs/swbd/s5b/local/run_resegment.sh index dbcadc2cbde..c80e58608c2 100755 --- a/egs/swbd/s5b/local/run_resegment.sh +++ b/egs/swbd/s5b/local/run_resegment.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates some scripts for resegmenting data. This was # developed for a scenario where the evaluation data doesn't come with diff --git a/egs/swbd/s5b/local/run_sgmm2.sh b/egs/swbd/s5b/local/run_sgmm2.sh index 0cddc13bbd4..994d3cc7509 100755 --- a/egs/swbd/s5b/local/run_sgmm2.sh +++ b/egs/swbd/s5b/local/run_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/swbd/s5b/local/run_vtln.sh b/egs/swbd/s5b/local/run_vtln.sh index 2ffdf22a0fd..394a35b4c2e 100755 --- a/egs/swbd/s5b/local/run_vtln.sh +++ b/egs/swbd/s5b/local/run_vtln.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh featdir=mfcc_vtln diff --git a/egs/swbd/s5b/local/score.sh b/egs/swbd/s5b/local/score.sh index da71d126a86..06bfd0e9202 100755 --- a/egs/swbd/s5b/local/score.sh +++ b/egs/swbd/s5b/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. orig_args= diff --git a/egs/swbd/s5b/local/score_basic.sh b/egs/swbd/s5b/local/score_basic.sh index 6cefe566f4b..ae57745e652 100755 --- a/egs/swbd/s5b/local/score_basic.sh +++ b/egs/swbd/s5b/local/score_basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/swbd/s5b/local/score_sclite.sh b/egs/swbd/s5b/local/score_sclite.sh index f5d62c9d44d..1453d018df0 100755 --- a/egs/swbd/s5b/local/score_sclite.sh +++ b/egs/swbd/s5b/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/swbd/s5b/local/score_sclite_conf.sh b/egs/swbd/s5b/local/score_sclite_conf.sh index bb354fd50cf..d6d052ee763 100755 --- a/egs/swbd/s5b/local/score_sclite_conf.sh +++ b/egs/swbd/s5b/local/score_sclite_conf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/swbd/s5b/local/swbd1_data_prep.sh b/egs/swbd/s5b/local/swbd1_data_prep.sh index 635ad7e99a1..c65958de693 100755 --- a/egs/swbd/s5b/local/swbd1_data_prep.sh +++ b/egs/swbd/s5b/local/swbd1_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Switchboard-1 training data preparation customized for Edinburgh # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/swbd/s5b/local/swbd1_prepare_dict.sh b/egs/swbd/s5b/local/swbd1_prepare_dict.sh index b05661cedb3..e663155c3ee 100755 --- a/egs/swbd/s5b/local/swbd1_prepare_dict.sh +++ b/egs/swbd/s5b/local/swbd1_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Formatting the Mississippi State dictionary for use in Edinburgh. Differs # from the one in Kaldi s5 recipe in that it uses lower-case --Arnab (Jan 2013) diff --git a/egs/swbd/s5b/local/swbd1_train_lms.sh b/egs/swbd/s5b/local/swbd1_train_lms.sh index 2d2fd4dcf08..57fd5bd40f6 100755 --- a/egs/swbd/s5b/local/swbd1_train_lms.sh +++ b/egs/swbd/s5b/local/swbd1_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal # Johns Hopkins University (author: Daniel Povey) diff --git a/egs/swbd/s5b/run.sh b/egs/swbd/s5b/run.sh index ba447e6f972..8629005f317 100755 --- a/egs/swbd/s5b/run.sh +++ b/egs/swbd/s5b/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Warning: this recipe is now out of date. See ../s5c/ diff --git a/egs/swbd/s5c/local/chain/compare_wer_tdnn.sh b/egs/swbd/s5c/local/chain/compare_wer_tdnn.sh index 542dae82581..72a6256c9d3 100755 --- a/egs/swbd/s5c/local/chain/compare_wer_tdnn.sh +++ b/egs/swbd/s5c/local/chain/compare_wer_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash models="" for x in $*; do models="$models tdnn_${x}"; done diff --git a/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_7f.sh b/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_7f.sh index d317b1dc55a..ee22269c331 100755 --- a/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_7f.sh +++ b/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_7f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script (multi_condition/run_tdnn_7f.sh) is the reverberated version of # tuning/run_tdnn_7f.sh. It reverberates the training data with room impulse responses diff --git a/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_7k.sh b/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_7k.sh index 20dcab8eb50..b6ee50eff1c 100755 --- a/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_7k.sh +++ b/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_7k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script (multi_condition/run_tdnn_7k.sh) is the reverberated version of # tuning/run_tdnn_7k.sh. It reverberates the training data with room impulse responses diff --git a/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_aug_1a.sh b/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_aug_1a.sh index 8762430ee7f..ab2f727b9a6 100755 --- a/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_aug_1a.sh +++ b/egs/swbd/s5c/local/chain/multi_condition/run_tdnn_aug_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This recipe does multi-style training of TDNN model diff --git a/egs/swbd/s5c/local/chain/show_wer.sh b/egs/swbd/s5c/local/chain/show_wer.sh index a82c4acf26d..e4b728be516 100755 --- a/egs/swbd/s5c/local/chain/show_wer.sh +++ b/egs/swbd/s5c/local/chain/show_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash for l in $*; do grep WER exp/chain/tdnn_${l}_sp/decode_train_dev_sw1_tg/wer_* | utils/best_wer.sh diff --git a/egs/swbd/s5c/local/chain/tuning/run_blstm_6h.sh b/egs/swbd/s5c/local/chain/tuning/run_blstm_6h.sh index a1be44cdbbf..b704bf55044 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_blstm_6h.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_blstm_6h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # based on run_tdnn_6h.sh diff --git a/egs/swbd/s5c/local/chain/tuning/run_blstm_6h_discriminative.sh b/egs/swbd/s5c/local/chain/tuning/run_blstm_6h_discriminative.sh index d7382d78dc6..635989f25fa 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_blstm_6h_discriminative.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_blstm_6h_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o pipefail set -e diff --git a/egs/swbd/s5c/local/chain/tuning/run_blstm_6i.sh b/egs/swbd/s5c/local/chain/tuning/run_blstm_6i.sh index 1eac1c60c27..936a3732e59 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_blstm_6i.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_blstm_6i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 6i based on run_blstm_6h.sh, but changing the HMM context from triphone to left biphone. diff --git a/egs/swbd/s5c/local/chain/tuning/run_blstm_6j.sh b/egs/swbd/s5c/local/chain/tuning/run_blstm_6j.sh index acdae844b65..9c45a51e223 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_blstm_6j.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_blstm_6j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 6j is same as 6i but using the xconfig format of network specification. # Also, the model is trained without layer-wise discriminative pretraining. diff --git a/egs/swbd/s5c/local/chain/tuning/run_blstm_6k.sh b/egs/swbd/s5c/local/chain/tuning/run_blstm_6k.sh index bbd8cb63697..39e12f82e5f 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_blstm_6k.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_blstm_6k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 6k is same as 6j, but with the fast lstm layers diff --git a/egs/swbd/s5c/local/chain/tuning/run_blstm_6l.sh b/egs/swbd/s5c/local/chain/tuning/run_blstm_6l.sh index 16f2ea211d0..89c511d88cf 100644 --- a/egs/swbd/s5c/local/chain/tuning/run_blstm_6l.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_blstm_6l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 6l is same as 6k, but with the per-frame dropout # location4 as paper : http://www.danielpovey.com/files/2017_interspeech_dropout.pdf diff --git a/egs/swbd/s5c/local/chain/tuning/run_blstm_6m.sh b/egs/swbd/s5c/local/chain/tuning/run_blstm_6m.sh index 09f7d72434c..47dffa32414 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_blstm_6m.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_blstm_6m.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (Author: Daniel Povey). # 2015 Vijayaditya Peddinti diff --git a/egs/swbd/s5c/local/chain/tuning/run_blstm_6n.sh b/egs/swbd/s5c/local/chain/tuning/run_blstm_6n.sh index 8e44d0bc114..bef0138230b 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_blstm_6n.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_blstm_6n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (Author: Daniel Povey). # 2015 Vijayaditya Peddinti diff --git a/egs/swbd/s5c/local/chain/tuning/run_blstm_6o.sh b/egs/swbd/s5c/local/chain/tuning/run_blstm_6o.sh index 6a836e81b09..3acc136c941 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_blstm_6o.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_blstm_6o.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (Author: Daniel Povey). # 2015 Vijayaditya Peddinti diff --git a/egs/swbd/s5c/local/chain/tuning/run_cnn_tdnn_1a.sh b/egs/swbd/s5c/local/chain/tuning/run_cnn_tdnn_1a.sh index d1a61360f85..5c07bf3e0e3 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_cnn_tdnn_1a.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_cnn_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is based on tdnn_7q, but adding cnn as the front-end. # The cnn-tdnn-f (cnn_tdnn_1a) outperforms the tdnn-f (tdnn_7q). diff --git a/egs/swbd/s5c/local/chain/tuning/run_lstm_6h.sh b/egs/swbd/s5c/local/chain/tuning/run_lstm_6h.sh index ac22e858aea..d462fe9614c 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_lstm_6h.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_lstm_6h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # based on run_tdnn_6h.sh diff --git a/egs/swbd/s5c/local/chain/tuning/run_lstm_6i.sh b/egs/swbd/s5c/local/chain/tuning/run_lstm_6i.sh index aa48db04841..b630b5012b2 100644 --- a/egs/swbd/s5c/local/chain/tuning/run_lstm_6i.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_lstm_6i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 6i is based on run_lstm_6h.sh, but changing the HMM context from triphone to left biphone. diff --git a/egs/swbd/s5c/local/chain/tuning/run_lstm_6j.sh b/egs/swbd/s5c/local/chain/tuning/run_lstm_6j.sh index 48db81f586f..23750b67155 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_lstm_6j.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_lstm_6j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 6j is same as 6i but using the xconfig format of network specification. # Also, the model is trained without layer-wise discriminative pretraining. diff --git a/egs/swbd/s5c/local/chain/tuning/run_lstm_6k.sh b/egs/swbd/s5c/local/chain/tuning/run_lstm_6k.sh index 021eab09506..d75553aa1bf 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_lstm_6k.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_lstm_6k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (Author: Daniel Povey). # 2015 Vijayaditya Peddinti diff --git a/egs/swbd/s5c/local/chain/tuning/run_lstm_6l.sh b/egs/swbd/s5c/local/chain/tuning/run_lstm_6l.sh index f219167f9ec..4dc07b1b7dc 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_lstm_6l.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_lstm_6l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (Author: Daniel Povey). # 2015 Vijayaditya Peddinti diff --git a/egs/swbd/s5c/local/chain/tuning/run_lstm_d.sh b/egs/swbd/s5c/local/chain/tuning/run_lstm_d.sh index 551be099390..1ab898bb6dc 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_lstm_d.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_lstm_d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # based on run_tdnn_2o.sh diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2a.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2a.sh index c584bbe29a6..563f5277dcc 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2a.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2a is as _z but setting --lm-opts "--num-extra-states=8000". # Note, this leads to a cutoff of zero, so it's the same as infinite --num-extra-states. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2b.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2b.sh index 227a74067d4..eea638f34a0 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2b.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2b is as _y but --frames-overlap-per-eg 75 (was 30 before). This is not very # efficient in terms of disk space but I want to see the effect on results. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2c.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2c.sh index 9fc08f27d45..bf0a2f22e33 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2c.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2c is as _2a but after a code change in which we start using transition-scale # and self-loop-scale of 1 instead of zero in training; we change the options to diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2d.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2d.sh index 2ef8c374514..8f2b3950e8a 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2d.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2d is as _2c but with different LM options: # --lm-opts "--ngram-order=4 --leftmost-context-questions=/dev/null --num-extra-states=2000" diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2e.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2e.sh index 2db9a59c2e2..6f2c611fef2 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2e.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2e is as _2b, but --frames-overlap-per-eg 0 (also compare with _y, which has # an overlap of 30; _2b has 75). BUT we also made a code change as in 2a->2c, where we use diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2f.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2f.sh index f510fccd882..45e012f1bcd 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2f.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2f is as _2d but following a code change, and with different LM options: # --ngram-order=5 --num-lm-states=10000 diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2g.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2g.sh index 65b48b43685..e10c3165463 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2g.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2g is as _2f but reducing the --num-lm-states from 10k to 7k # see table in run_tdnn_2a.sh for results. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2h.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2h.sh index d86233ff83b..3cbd9ef4269 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2h.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2h is as _2g but --ngram-order=4, and --num-lm-states=5k. # see table in run_tdnn_2a.sh for results. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2i.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2i.sh index cab9dd957a3..239db90d0d2 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2i.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2i is as _2d but with a new set of code for estimating the LM, in which we compute # the log-like change when deciding which states to back off. The code is not the same diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2j.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2j.sh index 0eca2ff10ff..07a085790ec 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2j.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2j is as _2i but with --num-extra-lm-states=1000, not 2000. # see table in run_tdnn_2a.sh for results diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2k.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2k.sh index 7e127c10917..d5cb7b9a023 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2k.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2k is as _2i, but doing the same change as in _s -> _2e, in which we # set --apply-deriv-weights false and --frames-overlap-per-eg 0. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2l.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2l.sh index fbe45761996..316ce647c0b 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2l.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2l is as _2k, but using 100 frames per eg instead of 150. # Previously we had found 150 better than 75, but this may have changed as we diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2m.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2m.sh index 93db16408cc..cd5beac25b3 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2m.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2m.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2m is as _2k, but setting --leftmost-questions-truncate=-1, i.e. disabling # that mechanism. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2n.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2n.sh index 57eb66dac35..3e3f5828ca9 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2n.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2n is as _2m, but using the combine-data script to ensure that we don't have # very short segments (this can cause an excessive amount of either missing or diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2o.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2o.sh index ae085c9804f..a5ffb099fc6 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2o.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2o.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2o is as _2m, but going back to our original 2-state topology, which it turns # out that I never tested to WER. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2p.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2p.sh index 4c6ad3b9761..a88301a07a8 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2p.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2p is as _2m, but 6500 instead of 9000 as the target for num-leaves. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2q.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2q.sh index 54b03fb2296..a7679992151 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2q.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2q.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2q is as _2o but changing from 9000 -> 6000 states as the target. # (like 2p, where it wasn't helpful, but doing this experiment for the topology with fewer state). diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2r.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2r.sh index 4bdc61ef0e5..9b6bcd2230c 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2r.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2r.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2r is as _2q, but further changing the topology to have one rather than # two pdf-ids per triphone. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2s.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2s.sh index 3e829e246f3..1ade4de46af 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2s.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2s.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2s is as _2o, but another topology, this time with 3 states and 3 pdf-ids # worse :-( diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2t.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2t.sh index 4a322e1a8fa..3e771542af3 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2t.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2t.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2t is as _2o and _2s, but another topology: with 3 pdf-ids like 2s, but # differently arranged. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2u.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2u.sh index 9ec5bf81d3d..9ffeacf8686 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2u.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2u.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2u is as _2o, but using 'not-shared' in the roots files, to ensure that # the initial and non-initial states will never be shared. I don't expect this diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2v.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2v.sh index cd009cfcc12..e1575f002ed 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2v.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2v.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2v is as _2u, but adding the --scale-stats-for-pdf-classes="1=0.5" option to # the tree building, to scale down the stats for the self-loop to have fewer pdf-ids diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2w.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2w.sh index 687093c98c5..7b12f3741c6 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2w.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2w.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2w is as _2o, but setting the frame subsampling factor to 2 instead of 3. # Going back to 100 frames per eg, which I previously found to be about the same in diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2x.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2x.sh index e2d6204af0c..3d6e87b0d6b 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2x.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2x.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2x is as _2w (which has frame subsampling factor of 2 not 3), but with more # epochs (6 vs 4), as it looks like the 2w model hadn't completely trained. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2y.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2y.sh index c1211feae64..1e414f991e1 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_2y.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_2y.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _2y is as _2o, but increasing the --frames-per-iter by a factor of 1.5, from # 800k to 1.2 million. The aim is to avoid some of the per-job overhead diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3c.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3c.sh index 01ff8079f2a..77274e38332 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3c.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3c is as _2y, but using 'jesus' nonlinearity: the --jesus-dim 800 option, instead of # --relu-dim 850. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3d.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3d.sh index 0cb513c84f1..a390f163581 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3d.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3d is as _2y, and re-using the egs, but using --jesus-opts and # configs from make_jesus_configs.py. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3e.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3e.sh index 687f684a68c..b2db1fb840c 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3e.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3e is as _3d, but increasing the --num-jesus-blocks from 100 (the default) # to 200 in order to reduce computation in the Jesus layer. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3f.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3f.sh index 0a4b935485a..a21daae5c8e 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3f.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3f is as _3e, but modifying the splicing setup to add (left) recurrence: diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3g.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3g.sh index 077a84d31e9..33fc64f68f5 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3g.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3g is as _3f but using 100 blocks instead of 200, as in d->e 200 groups was found # to be worse. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3h.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3h.sh index dcda3a00383..0b448835ab1 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3h.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3h is as _3g but using a different and hopefully better type of recurrence, using # steps/nnet3/make_jesus_configs_recurrent.py to create the configs. This is more diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3i.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3i.sh index 996795c9aee..9bfbb18dfc7 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3i.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3i is as _3h but after a script fix in which the --final-layer-normalize-target is # applied, in order to control how fast the final layer's affine component learns. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3j.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3j.sh index 66e44fb6f04..74bfa554292 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3j.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3j is as _3i but using BlockAffineComponent instead of # RepeatedAffineComponent in Jesus layers. (see --use-repeated-affine false diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3k.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3k.sh index 5369b5251d1..1e798843ec4 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3k.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3k is as _3i, but adding the option --jesus-stddev-scale 0.316 " # [~sqrt(1/10)], which will make the jesus layer learn about 10 times faster- it diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3k2.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3k2.sh index 1902213402f..c6cfb9fcd48 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3k2.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3k2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 3k2 is as 3k, but dumping the egs with --extra-left-context 20. # Also there will have been some script changes in the meantime, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3l.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3l.sh index ae36ab2b65f..d831d50de1c 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3l.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # [abandoned, not working well.] # _3l is as _3j, but making similar changes to as 3i->3k, which is (1) adding diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3m.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3m.sh index 49656fb8aa7..ddd30e43707 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3m.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3m.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # [note: this uses BlockAffineComponent not RepeatedAffineComponent] # _3m is as _3l, but changing --jesus-stddev-scale from 0.2 to 0.1, as the Jesus layers diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3n.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3n.sh index e2b0b0ebb10..d2035c55ced 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3n.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3n is as _3d (a non-recurrent setup), but using the more recent scripts that support # recurrence, with improvements to the learning of the jesus layers. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3o.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3o.sh index 298eb913ff3..eb0bf9c4ed9 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3o.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3o.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3o is as _3n but filling in the first splice-indexes from -1,2 to -1,0,1,2. # [ seemed helpful based on likelihoods on first iterations]: on iter 42, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3p.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3p.sh index 6ec9c6fe4b8..cffba093ea3 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3p.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3p is the same as 3o, but after a code and script change so we can use # natural gradient for the RepeatedAffineComponent. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3q.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3q.sh index 4c911ba867e..edd9cf02421 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3q.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3q.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3q is as _3p, but now trying out the 'block' training script, where in addition to # the affine connections we have block-matrix connections between the layers. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3r.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3r.sh index fba4ef6d15f..e4a08c1730e 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3r.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3r.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3r is as _3p but reducing the number of parameters as it seemed to be # overtraining (despite already being quite a small model): [600,1800 -> diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3s.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3s.sh index daab4cad318..045aa7c2c75 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3s.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3s.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3s is as _3r but reducing jesus-forward-input-dim from 500 to 400. # num-params is quite small now: 5.4 million, vs. 12.1 million in 2y, and 8.8 million in 3p. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3t.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3t.sh index 034f2bafd70..a164b5c7b3a 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3t.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3t.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3t is as _3s but using slightly wider context. Dumping our own egs. # The final train prob is better -0.0851->-0.0815, but valid prob is worse -0.1231->-0.1243. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3u.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3u.sh index 97c44ad55fc..5d1481a884c 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3u.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3u.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3u is as _3s (and re-using the egs) but with one more layer; keeping the same dim # and total context, and reducing --jesus-forward-output-dim from 1500 to 1300 to diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3v.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3v.sh index 381a9e8686f..53849a642b7 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3v.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3v.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3v is as _3t but decreasing the --num-jesus-blocks from 100 to 50. # I stopped it early after likelihoods were not promising: diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3w.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3w.sh index 9f13b10753d..987b3ecd15d 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3w.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3w.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3w is as _3t but instead of having a rectangular affine component in each # layer, making it square (700->600 not 1300->400), and introducing a new script diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3x.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3x.sh index 25db1450265..e9554cc9447 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3x.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3x.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3x is as _3s (and continuing the same kind of experimentation as in 3t->3w)... # increasing --jesus-forward-output-dim from 1500 to 2000. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3y.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3y.sh index 3376652f3c2..4d43f37c7ec 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3y.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3y.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3y is as _3s but doubling jesus-hidden-dim from 15000 to 30000. # not promising: by iteration 228, train prob changed -0.09583->-0.09575, and diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3z.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3z.sh index 25a68263dc7..5a0f922b05b 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_3z.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_3z.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _3z is as _3s, but reducing the target num-states in the tree building from 9k to 6k. # A slight degradation in WER, but it's not 100% consistent. The final train-prob diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4a.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4a.sh index 0be490863dc..94e7a78306a 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4a.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4a is as _3s, but using narrower splice-indexes in the first layer. # WER is maybe a fraction worse than 3s (see below); final train prob is diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4b.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4b.sh index 40ede7c5982..4db4af698bc 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4b.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4b is as _4a, but even narrower splice-indexes in 1st layer (no splicing) # stopped early after train and valid likelihoods were not promising. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4c.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4c.sh index be9043c0527..0bf2fdb613a 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4c.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4c is as _4a, but using half the --jesus-hidden-dim: 7500 versus 15000. # Yay-- WER is slightly better or the same. Final train-prob is worse diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4d.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4d.sh index 7f58fbebbfc..2659c7ceda7 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4d.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4d is as _4a, but with --egs-opts "--frames-overlap-per-eg 10 # --cut-zero-frames 5" and changing apply-deriv-weights to true... this to diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4e.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4e.sh index 8625cfa52c8..2880246c1fc 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4e.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4e is as _4c, but adding the option --l2-regularize 0.0001. # big improvement- about 0.7% WER abs. Considering the non-l2 part of the objf, the diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4f.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4f.sh index 7ba4e8c6cb7..3310dbeef2b 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4f.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4f is as _4e, but halving the regularization from 0.0001 to 0.00005. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4g.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4g.sh index f1059f0091f..76a178f1a25 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4g.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4g is as _4c, but reducing the --jesus-hidden-dim further from 7500 to 4000. # Strangely, the trend from 4a->4a does not continue: instead of continuing to get worse, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4n.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4n.sh index 62154dd5d71..308ea48e632 100644 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4n.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4n is as _4f, but adding the [new] option --convert-repeated-to-block-iter=100. # reusing iter 100 of model 4f to avoid some iterations of training [did this by diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4p.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4p.sh index 0120c2c507d..3e920bd17b1 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4p.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4p is as _4f, but one fewer layer, and making the final-layer context wider to # compensate; also increasing the jesus-layer input and output dims 400->500 and 1500->1600 to diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4q.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4q.sh index 7d920092c30..455c3c7350c 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4q.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4q.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is based on Dan's tdnn_2o script # it has a different splicing configuration diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4r.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4r.sh index 591b79352ab..759dd76a529 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4r.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4r.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4r is as _4f, but one more hidden layer, and reducing context of existing # layers so we can re-use the egs. Reducing jesus-forward-output-dim slightly diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4s.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4s.sh index fea6a776dbf..26673c5f2ef 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4s.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4s.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4s is as _4f, but with --leaky-hmm-coefficient 0.02. [A new option- #currently in a branch] diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4t.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4t.sh index 0173b586700..f9b741009e3 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4t.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4t.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4t is as _4s, but with --leaky-hmm-coefficient 0.04. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4u.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4u.sh index ac15f232500..552a5306bad 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4u.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4u.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4u is as _4t, but with --leaky-hmm-coefficient 0.08. Note: the # ultimate baseline is 4f. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4v.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4v.sh index 0682615acf3..90ef2a787c0 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4v.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4v.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4v is as _4r, but with --xent-regularize 0.1. Increasing max_param_change # from 1.0 to 2.0 because there is a lot of parameter change in the final xent diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4w.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4w.sh index 77d5013d91f..cd6ac3f9140 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4w.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4w.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4w is as _4v, but doubling --xent-regularize to 0.2 WER seems consistently a # bit worse, although final valid prob is very slightly better. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4x.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4x.sh index 9c59137bbfc..355c6ff4494 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_4x.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_4x.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _4x is as _4u, but with --leaky-hmm-coefficient 0.2. Note: the # ultimate baseline is 4f. It seems a little bit worse than 4u on average: (+0.2, +0.2, 0.0, -0.1). diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5a.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5a.sh index 1d44637a8c8..0615287ce87 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5a.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5a is as _4w, but increasing jesus-forward-output-dim from 1400 to 1800, and # jesus-forward-input-dim from 400 to 500. Hoping that the cross-entropy regularization diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5b.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5b.sh index cdb769fb959..26046f54bdf 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5b.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5b is as _5a, but adding --leaky-hmm-coefficient 0.1. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5c.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5c.sh index 17d8c41a82e..0019dee621b 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5c.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5c is as _4w, but changing --xent-regularize to 0.05, since 0.2 seemed to be # worse than 0.1. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5d.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5d.sh index f3b92944f1a..8b2d7429b1c 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5d.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5d is as _5b, but increasing jesus-forward-input-dim from 500 to 600 and # jesus-forward-output-dim from 1800 to 2000. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5e.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5e.sh index 5a64c967907..4f94195f95b 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5e.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5e is as _5b, but reducing --xent-regularize from 0.2 to 0.1 (since based on # the results of 4v, 4w and 5c, it looks like 0.1 is better than 0.2 or 0.05). diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5f.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5f.sh index c40f2ada0d3..7ce7d646ff7 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5f.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5f is as _5e, but making the 5b->5d change (increasing the # number of parameters)-- increasing jesus-forward-output-dim from 1800 to 2000, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5g.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5g.sh index 5f59e146f65..1ba24b67cbb 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5g.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5g is as _5e, but adding one statistics-extraction layer to the # splice indexes, in the middle of the network (with both mean diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5h.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5h.sh index f8dc8886eb5..0d92ed7d100 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5h.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5h is as _5g, but only mean, no stddev, stats. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5i.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5i.sh index 7b7f67125c3..ccdcb815b3a 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5i.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5i is as _5g, but adding the mean+stddev features for all hidden layers. # a little worse than 5g (but for Remi Francis it was a little better). diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5j.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5j.sh index bf1787c4373..22e461181fd 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5j.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5j is as _5e, but omitting the iVectors. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5k.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5k.sh index 93f9bffdd12..d35a8efa035 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5k.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5k is as _5j (omitting iVectors), and adding a statistics-extraction layer # in the middle, like 5e->5g, to see whether it recovers some of the improvement diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5l.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5l.sh index f0c66c3a7cd..91829daec91 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5l.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5l is as _5k, but doubling frames-per-eg from 150 to 300, and increasing # the context radius of the statistics-pooling from 99 to 153. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5m.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5m.sh index dc0f19e9261..3e57cbe7ffe 100644 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5m.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5m.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5m is as _5e, but with a script change where we are randomizing # the frame shift a bit better. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5n.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5n.sh index 51a3f6e7723..3b756252a77 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5n.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5n is as _5j (also omitting the iVectors), but using double the input frame # rate from 10 to 5 ms (and reducing frame width from 25 to 20), and modifying diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5o.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5o.sh index 4e2e6033d29..6b43c4b6381 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5o.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5o.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5o is as _5n but adding an extra splicing layer and increasing the # splice-width slightly on the 1st layer, to get closer to the context in 5n; diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5p.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5p.sh index 36056efce7a..0463a44f59d 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5p.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5p is as _5e but adding (new option) --self-repair-scale-nonlinearity 0.00001, to repair # ReLUs that are over or under-saturated. [abandoned after discovering bug, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5q.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5q.sh index 01a9e867b57..c25a67d083f 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5q.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5q.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5q is as _5p but reducing jesus-forward-output-dim from 1800 to 1500 to try # to compensate for the fact that more of the output dimensions are now being diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5r.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5r.sh index a20ca2da3de..353f1ad6adc 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5r.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5r.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5r is as _5q but also reducing --jesus-hidden-dim from 7500 to 5000. # [abandoned after discovering bug, this thread is picked up in 5s and 5t.] diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5s.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5s.sh index df981a478c0..ceb5ec415c0 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5s.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5s.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Comparing with 5e which is the most recent baseline we actually decoded, # 5s is as 5e but with jesus-forward-output-dim reduced 1800->1700, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5t.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5t.sh index ddd08de7707..acf1c806d7b 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5t.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5t.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5t is as _5s but further reducing the jesus-hidden-dim (trying to speed it # up), from 5000 to 3500. Seems to make no difference to WERs; valid prob improves. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5u.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5u.sh index 28333fd912e..c14f7879c6e 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5u.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5u.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5u is as _5o but modifying the mfcc generation to use a narrower window while # generating the lower-order mfcc coefficients (the first 10). diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5v.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5v.sh index 2cdb0bb988c..947f141e578 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5v.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5v.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5v is as _5t, but further reducing the --jesus-hidden-dim from 3500 to 2500. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5w.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5w.sh index 5a33622645a..e425e52455a 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5w.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5w.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5w is as _5k (which is a fairly good-performing ivector-free model), but # making the same changes as 5e -> 5t, which makes the model more lightweight diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5x.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5x.sh index 0b76fe60a7b..dbfba2b9bea 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5x.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5x.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5x is as _5w but decreasing the context of the averaging layer from +-0.99 # seconds to +-0.66 seconds. I would not have expected this to work a priori, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5y.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5y.sh index 3fd623e163f..7f2973fbb9c 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5y.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5y.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5y is as _5v, but rebalancing the network to have fewer parameters in the # final layer and more in the hidden parts, by reducing --final-hidden-dim from 500 diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5z.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5z.sh index ff3528d9660..6e7518e7a35 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_5z.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_5z.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _5z is as _5v, but adding skip-splicing (a new configuration option) # It seems not helpful. I'll remove the option soon. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6a.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6a.sh index 194245be1e3..38365385e39 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6a.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6a is as _5y, where we keep the hidden parts of the network a bit larger # but take the final-hidden-dim back up to 500, which is the same as what diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6b.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6b.sh index d4194a5afe4..914f1ad2158 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6b.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6b is as _5y, where we keep the hidden parts of the network a bit larger # but take the final-hidden-dim back up to 500, which is the same as what diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6c.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6c.sh index 89021098c49..c2f515da3e3 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6c.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6c is as _5v but adding "--thick-jesus-layer true" (new option): extra hidden # layer inside jesus layer. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6d.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6d.sh index 354640e0258..b58e027409e 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6d.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6d is as _5v but changing adding --num-jesus-blocks 84 (default is 100). # this means (after rounding) that we have 6, not 5, as diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6e.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6e.sh index 80fea19e7a2..5c6dfafdbac 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6e.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6e is as _6d but going further: reducing --num-jesus-blocks to 72 = ceil(500/7). diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6f.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6f.sh index f92048cfeb4..8f5fe54fd1a 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6f.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6f is as _5v, but setting --jesus-hidden-dim to 0 which with a script change # means there is no hidden part in the jesus layer (it's just repeated affine and relu). diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6g.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6g.sh index fbc5e0c54b5..9726bf4eb89 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6g.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6g is as _6f but increasing the parameters (increasing # jesus-forward-input-from from 500 to 600). diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h.sh index 5449671d131..270320547d7 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6h is as _6g but adding --xent-separate-forward-affine=true, which # gives a separate last-but-one weight matrix to the xent output. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h_discriminative.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h_discriminative.sh index 6db0a4f5ac4..23d44b51850 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h_discriminative.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o pipefail set -e diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h_py.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h_py.sh index 32631f4d348..1e18884f0a7 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h_py.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6h_py.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a replica of_6h script, but makes use of the python trainer set -e diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6i.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6i.sh index 093bceb2717..0846f1f9a32 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6i.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6i takes aspects from 5n and 6g. Like 6g it uses a 'thin' jesus-layer # (no hidden dimension), and like 5n it uses a non-standard frame shift at the diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6j.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6j.sh index cf98106ea04..6ab58dfb827 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6j.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6j is another baseline for _6i, in which we use regular features (10 ms frame # shift) with the 4-fold subsampling of 6i. I don't expect this will be as diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6k.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6k.sh index 5d518aeab2a..95145c87e5c 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6k.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6k is as _6i, but one more epoch. After running the first few stages, I'm # copying the last model from 6i and starting from that point, to save compute. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6l.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6l.sh index c76f5a9efd3..18558fb8586 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6l.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6l is as _6i, but adding the option --xent-separate-forward-affine=true which # I had accidentally omitted, and adding 4 frames more left context and 2 frames diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6m.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6m.sh index 39d6d3cb449..8ffeac4570a 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6m.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6m.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6m is as _6j (which subsamples by 4 frames not 3 at the output), changing just the # --left-tolerance and --right-tolerance to be the same total width but more diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6n.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6n.sh index 0911711e73c..47aa3dffb4e 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6n.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6n is as _6m, but with a less-wide splicing context. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6o.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6o.sh index c07cb35ed33..b45c66ca8b7 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6o.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6o.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6o is as _6h but halving the --l2-regularize option, because since the # time we last tuned this, other regularization methods have been added. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6p.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6p.sh index 5710dbe2ef9..a0888b3bbfa 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6p.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6p is as _6j, but increasing the various regularization coefficients. # the intention is to increase them by 4/3, since they are all evaluated diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6q.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6q.sh index 3e93d79b799..102ebc84c94 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6q.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6q.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6q is as _5n (which is a double-frame-rate system), but putting back # the iVectors and otherwise changing the configuration as in 5j -> 6g, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6r.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6r.sh index 0415f4e0fb9..200616dc4d4 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6r.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6r.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6r is as _6q, but adding --self-repair-scale-nonlinearity 0.00001 # --xent-separate-forward-affine=true. the appropriate normal-frame-rate diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6s.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6s.sh index 0564c0a858f..d5a9813de66 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6s.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6s.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6s is as _6r, but changing the splicing indexes to be exactly the same as 6h, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6t.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6t.sh index 98ecd477a1d..ddbd9c4d3da 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6t.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6t.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # since _6s didn't work that well, in 6t we try something else: # modifying 6s to use almost exactly the same splicing indexes as 6r, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6u.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6u.sh index 9e8afc3c5b8..c87cb0d1d97 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6u.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6u.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _6u is as _6h, but with slightly different splicing indexes (start # narrower than 6h and ramp up slowly). These are designed to be diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6v.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6v.sh index 732b60d7c95..12758ce9d64 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6v.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6v.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script contains online decoding using chain + nnet3 setup. # _6v is as _6h, but moving to a TDNN+ReLU recipe instead of using jesus-layer. # Otherwise we make everything as similar as possible to 6h. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6w.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6w.sh index a625859f7d4..ff0a9936ed6 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6w.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6w.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 6w is as 6v (a new tdnn-based recipe), but using 1.5 million not 1.2 million # frames per iter (and of course re-dumping the egs). diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6x.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6x.sh index 2e79e24ddb6..931eaee27d0 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6x.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6x.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 6x is as 6w, but changing the splice-indexes to be like in 6u # except since this is a TDNN setup, we need a final "0" [the jesus-layer diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6y.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6y.sh index 5cf1cead63f..b545df05d45 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6y.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6y.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 6y is as 6w, but after fixing the config-generation script to use # a higher learning-rate factor for the final xent layer (it was otherwise diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6z.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6z.sh index baa42a087b7..4167e37ceaf 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_6z.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_6z.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 6z is as 6y, but fixing the right-tolerance in the scripts to default to 5 (as # the default is in the code), rather than the previous script default value of diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7a.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7a.sh index 5dd430ded8d..c6496073927 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7a.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7a inherits from 6z (which is a TDNN+ReLU-based network with various small # bugs hopefully fixed now), and from 6r, which is our most-successful diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7b.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7b.sh index 47dbe843d8e..c731b1975be 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7b.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7b is as 6z, but increasing the relu-dim slightly from 576 to 625. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7c.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7c.sh index 3335ef788a4..35e7e350aa7 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7c.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7c is as 6z, but reducing the left and right tolerance from 5 to 4. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7d.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7d.sh index dba1b99582a..609999c7d88 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7d.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7d is as 7b, but changing the HMM context from triphone to left biphone. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7e.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7e.sh index 704411b6a76..74a45e615b0 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7e.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7e is as 7d, but using a different splice indexes which gives slightly better results. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7f.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7f.sh index a7a5a11dc7a..bbc9520d06a 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7f.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7f is as 7e, but adding the max-change-per-component to the neural net training # which affects results slightly diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7g.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7g.sh index 0623d26a9e4..54f31e29175 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7g.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7g is same as 7f but using the xconfig format of network specification. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7h.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7h.sh index dbbe3c1e6fd..fa82dd076fc 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7h.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #System tdnn_7g tdnn_7h #WER on train_dev(tg) 13.98 13.84 diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7i.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7i.sh index 2a8a658bf6b..8cab592dc26 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7i.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Same as 7h but double the number of parameters (27983950 vs 15551509) diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7j.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7j.sh index a9eba36ddaa..92eca66b6c5 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7j.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #System tdnn_7h tdnn_7j diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7k.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7k.sh index 8e0b290cf87..b60264aec84 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7k.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_7k.sh is like run_tdnn_7h.sh but batchnorm components instead of renorm diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7l.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7l.sh index bb9ddf209d6..882c13f49aa 100644 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7l.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7l is based on 7h, but adding a 64 dim lowrank module in the xent branch #System tdnn_7h tdnn_7l diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7m.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7m.sh index 97f92c14f1f..10c0b640f4b 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7m.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7m.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7m is as 7k but adding two non-splicing layers towards the beginning of the # network. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7m25l.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7m25l.sh index d9fe106e5d7..85ae17cb20e 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7m25l.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7m25l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7m25l is as 7m25j but with no dropout on the prefinal layer. Hoping to resolve # bad objf in middle of training. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7n.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7n.sh index 99e43443f99..b595c216a94 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7n.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7n is a kind of factorized TDNN, with skip connections. We have to write diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7o.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7o.sh index 44ca3b3d279..ea315fd023d 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7o.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7o.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7o is as 7n but with a bunch of tuning changes affecting both the structure diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7p.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7p.sh index d19a4ef4c0b..28daadb28bc 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7p.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7p is as 7o but adding the option "--constrained false" to --egs.opts. # This is the new 'unconstrained egs' code where it uses the e2e examples. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7q.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7q.sh index cea0891d5d7..3ecb57ee349 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7q.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7q.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7q is as 7p but a modified topology with resnet-style skip connections, more layers, # skinnier bottlenecks, removing the 3-way splicing and skip-layer splicing, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7r.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7r.sh index 10e4ae1ddca..9da9f0503d8 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_7r.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_7r.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 7r is as 7q but replaces the LDA layer at the input of the # network with traditional delta and delta-delta features. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_a.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_a.sh index 96046ac23c1..b1d1ffdfc65 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_a.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # caution: the egs for this were dumped with a bug in the numerator lattices, # you can subtract 0.0152 from the likelihoods to correct for this. (compare diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_a2.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_a2.sh index 3a8e41a8315..f4cdd45b8ea 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_a2.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_a2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_attention_1a.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_attention_1a.sh index d4febd61e94..be3f741fd61 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_attention_1a.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_attention_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # In this recipe everything is the same as tdnn_7k, except the # 7th TDNN layer has been replaced with an attention layer diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_b.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_b.sh index 8c623a7c01b..c6c953a6004 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_b.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _b is as as _a except for configuration changes: using 12k num-leaves instead of # 5k; using 5 times larger learning rate, and --final-layer-normalize-target=0.5, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1a.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1a.sh index 4414147bf0e..b07546b389f 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1a.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tdnn_blstm_1a is same as blstm_6k, but with the initial tdnn layers # blstm_6k : num-parameters: 41155430 diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1b.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1b.sh index cd9d4dc6f2b..2c3cb70b394 100644 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1b.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tdnn_blstm_1b is same as tdnn_blstm_1a, but with the per-frame dropout # added with location 4, see paper: diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1c.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1c.sh index 18b660b4080..06613298de3 100644 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1c.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tdnn_blstm_1c is same as tdnn_blstm_1a, # but take : egs/wsj/s5/local/chain/run_tdnn_lstm.sh as reference diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1d.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1d.sh index be615e0e361..033f84e7b9c 100644 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1d.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_blstm_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tdnn_blstm_1d is same as tdnn_blstm_1c, but with the perframe-dropout added diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_c.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_c.sh index ec4634acf69..f54a804df08 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_c.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _c is as _a but getting rid of the final-layer-normalize-target (making it 1.0 # as the default) as it's not clear that it was helpful; using the old learning-rates; diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_d.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_d.sh index 3a66a8cd556..1ee8d2d32eb 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_d.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _d is as _c but with a modified topology (with 4 distinct states per phone # instead of 2), and a slightly larger num-states (8000) to compensate for the diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_e.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_e.sh index d30a513181e..be956caaf3a 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_e.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _e is as _d but making it more similar in configuration to _b. # (turns out b was better than a after all-- the egs' likelihoods had to diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_f.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_f.sh index 12450c2ae62..e0fb4fe114e 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_f.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _f is as _e but with 30 as the number of left phone classes instead # of 10. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_g.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_g.sh index 70845684262..5cff7b6cbd7 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_g.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _g is as _f but more splicing at last layer. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_h.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_h.sh index 01f8743f585..752f6980138 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_h.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _h is as _g but different application of max-param-change (use --scale-max-param-change true) # The WER is quite a bit worse. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_i.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_i.sh index 82d91bbd33e..6b779fc3c3e 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_i.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _i is as _h but longer egs: 150 frames instead of 75, and # 128 elements per minibatch instead of 256. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_j.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_j.sh index 334eec7e872..4c6c6987f99 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_j.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _j is as _i and using the same egs, but setting # --left-deriv-truncate and --right-deriv-truncate to 10 diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_k.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_k.sh index b64318ec4bb..254f0ae5cb7 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_k.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _k is as _i but reverting the g->h change, removing the --scale-max-param-change # option and setting max-param-change to 1.. Using the same egs. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_l.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_l.sh index 6de6c79affc..ee351517bf0 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_l.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _l is as _k but even longer chunk size: 200 instead of 150. having to halve # minibatch size to save memory. I correspondingly changed max-param-change. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1a.sh index 43855e6f7ce..c76ddbc7705 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1a is a straight forward combination of tdnn_7h and lstm_6j. # TDNN layers are stacked before LSTM. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1b.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1b.sh index 5c82ed0eb11..655571006ed 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1b.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Unlike 1a this setup interleaves the TDNN and LSTM layers. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1c.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1c.sh index c3df0bf2b2c..855459270ca 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1c.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_lstm_1c.sh is like run_tdnn_lstm_1b.sh but using the # new 'fast-lstm' layer. Results are slightly improved, plus diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1d.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1d.sh index 3d353387239..2997bd4c690 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1d.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_lstm_1d.sh is like run_tdnn_lstm_1c.sh but making diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1e.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1e.sh index 2a2d508ecdd..952f1659b44 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1e.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_lstm_1e.sh is like run_tdnn_lstm_1d.sh but # trying the change of xent_regularize from 0.025 (which was an diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1f.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1f.sh index 5af5463b372..fe6a9f07f5c 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1f.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_lstm_1f.sh is like run_tdnn_lstm_1e.sh but # reducing the frames-per-iter from 1.5 million to 1 million, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1g.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1g.sh index 28105a587ec..3afccc860bd 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1g.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1g is like 1e, but reducing decay-time from 20 to 15, to see if # it reduces the difference between regular and looped decoding. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1h.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1h.sh index d6e81f2d8eb..eb1073542af 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1h.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1h is like 1e, but reducing the hidden-dims from 1024 to 880. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1i.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1i.sh index 060d98c9d05..33115c31322 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1i.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_lstm_1i.sh is like run_tdnn_lstm_1{e,f}.sh but # with a different frames-per-iter: 2 million, vs. 1.5 million diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1j.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1j.sh index 9bd39a262c5..b1a6948ed28 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1j.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # same as 1e but with delay of -1 # System tdnn_lstm_1e_sp tdnn_lstm_1j_sp diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1k.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1k.sh index ccd6138da6e..e4bc2ed4942 100644 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1k.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_lstm_1k.sh is like run_tdnn_lstm_1e.sh but # added the per-frame dropout location 4 as paper: diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1l.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1l.sh index f702033377a..d74fdd6c307 100644 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1l.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tdnn_lstm_1l is same as tdnn_lstm_1b, but with the per-frame dropout # added with location 4 in LSTM layer, see paper: diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1m.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1m.sh index b43577bd76c..fd071091374 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1m.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1m.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tdnn_lstm_1m is same as tdnn_lstm_1j, but with batchnorm-layer and decay-time # option diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1n.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1n.sh index 5bb6e7da152..f02635c6849 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1n.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_lstm_1n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1n is as 1m but with significant changes, replacing TDNN layers with a diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_m.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_m.sh index 8d357db0217..576e446a0b3 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_m.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_m.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _m is as _k but after a code change that makes the denominator FST more # compact. I am rerunning in order to verify that the WER is not changed (since diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_n.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_n.sh index a190a1d56dd..fa0adb7fe4a 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_n.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _n is as _m but changing the egs configuration to get better and more even # coverage of the data: increasing frames_per_eg from 150 to 200, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_o.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_o.sh index 5b80665268d..83b610e51cc 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_o.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_o.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _o is as _n, but reducing the number of parameters to try to reduce # over-training: reducing relu-dim from 1024 to 850 and target num-states diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_opgru_1a.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_opgru_1a.sh index 4db38d74508..97493438bfa 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_opgru_1a.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_opgru_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 University of Chinese Academy of Sciences (UCAS) Gaofeng Cheng # Apache 2.0 diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_opgru_1b.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_opgru_1b.sh index 7e9dec67068..71f7e44bae3 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_opgru_1b.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_opgru_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Apache 2.0 # This is based on TDNN_OPGRU_1A, but using the FastNormOPGRU to replace the NormPGRU. diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_p.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_p.sh index d401790449d..16b9c4b9f38 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_p.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _p is as _m except with a code change in which we switch to a different, more # exact mechanism to deal with the edges of the egs, and correspondingly diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_q.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_q.sh index c6758a62fa5..ec6c76b4f94 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_q.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_q.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _q is as _p except making the same change as from n->o, which diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_r.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_r.sh index 73cadcc622c..38d068a6f69 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_r.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_r.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _r is as _q except adding --lm-opts "--num-extra-states=0" # to reduce the size of the phone LM. Not really expecting much difference diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_s.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_s.sh index ae10b53824f..2ddcf71242f 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_s.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_s.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _s is as _q but setting pdf-boundary-penalty to 0.0 # This is helpful: 19.8->18.0 after fg rescoring on all of eval2000, diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_t.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_t.sh index dabb2a6db87..30499a22a01 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_t.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_t.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _t is as _s but setting pdf-boundary-penalty to 2.0 diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_u.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_u.sh index c83274499fa..8861504a6d3 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_u.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_u.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _u is as _t but also setting --truncate-deriv-weights 3. # This doesn't seem to be helpful, or at least inconsistent: 18.2->18.6 on all of eval2000 diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_v.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_v.sh index 38f31269d33..722c4044358 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_v.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_v.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _v is as _u but setting pdf-boundary-penalty to 0.0 (as in t->s), # and also trying a smaller language model: --lm-opts "--num-extra-states=0" diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_w.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_w.sh index 35d1ddd8052..0f8125d75a3 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_w.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_w.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _w is as _s (with --pdf-boundary-penalty 0.0) but setting # --lm-opts "--num-extra-states=500" (like the opposite of diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_x.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_x.sh index 0f294033489..98f36725e12 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_x.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_x.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _x is as _s but setting --lm-opts "--num-extra-states=0". # this is a kind of repeat of the u->v experiment, where it seemed to make things diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_y.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_y.sh index 09217d1b196..29dfb635b3b 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_y.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_y.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _y is as _s but trying --apply-deriv-weights false. (note: in the # interim, the script was changed so the train and valid probs have --pdf-boundary-penalty 0 diff --git a/egs/swbd/s5c/local/chain/tuning/run_tdnn_z.sh b/egs/swbd/s5c/local/chain/tuning/run_tdnn_z.sh index 0c8524a2c90..571258aeb6c 100755 --- a/egs/swbd/s5c/local/chain/tuning/run_tdnn_z.sh +++ b/egs/swbd/s5c/local/chain/tuning/run_tdnn_z.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _z is as _x but setting --lm-opts "--num-extra-states=2000". # (see also w, which has --num-extra-states=500, and 2a, which has 8000). diff --git a/egs/swbd/s5c/local/confidence_calibration.sh b/egs/swbd/s5c/local/confidence_calibration.sh index e9dd8947e6f..ce17d24e372 100755 --- a/egs/swbd/s5c/local/confidence_calibration.sh +++ b/egs/swbd/s5c/local/confidence_calibration.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh . ./path.sh diff --git a/egs/swbd/s5c/local/eval1997_data_prep.sh b/egs/swbd/s5c/local/eval1997_data_prep.sh index ea1e691e1c7..5d5cd473ac9 100755 --- a/egs/swbd/s5c/local/eval1997_data_prep.sh +++ b/egs/swbd/s5c/local/eval1997_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Hub-5 Eval 1997 data preparation # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/swbd/s5c/local/eval2000_data_prep.sh b/egs/swbd/s5c/local/eval2000_data_prep.sh index 33dfac24ddf..96b36135a85 100755 --- a/egs/swbd/s5c/local/eval2000_data_prep.sh +++ b/egs/swbd/s5c/local/eval2000_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Hub-5 Eval 2000 data preparation # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/swbd/s5c/local/nnet/run_dnn.sh b/egs/swbd/s5c/local/nnet/run_dnn.sh index 0ad87100e31..000354a3f73 100755 --- a/egs/swbd/s5c/local/nnet/run_dnn.sh +++ b/egs/swbd/s5c/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # 2014 Guoguo Chen diff --git a/egs/swbd/s5c/local/nnet/run_dnn_tandem_uc.sh b/egs/swbd/s5c/local/nnet/run_dnn_tandem_uc.sh index 637f970b460..4a7fc598d66 100755 --- a/egs/swbd/s5c/local/nnet/run_dnn_tandem_uc.sh +++ b/egs/swbd/s5c/local/nnet/run_dnn_tandem_uc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/swbd/s5c/local/nnet2/run_nnet2.sh b/egs/swbd/s5c/local/nnet2/run_nnet2.sh index e83c587a006..aa8a7e2e0bf 100755 --- a/egs/swbd/s5c/local/nnet2/run_nnet2.sh +++ b/egs/swbd/s5c/local/nnet2/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This runs on the full training set (with duplicates removed), with p-norm diff --git a/egs/swbd/s5c/local/nnet3/compare_wer_general.sh b/egs/swbd/s5c/local/nnet3/compare_wer_general.sh index 7cf42c9ae04..40791c72942 100755 --- a/egs/swbd/s5c/local/nnet3/compare_wer_general.sh +++ b/egs/swbd/s5c/local/nnet3/compare_wer_general.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. diff --git a/egs/swbd/s5c/local/nnet3/multi_condition/run_aug_common.sh b/egs/swbd/s5c/local/nnet3/multi_condition/run_aug_common.sh index 7d36cdfaac9..e557e7e4c6a 100755 --- a/egs/swbd/s5c/local/nnet3/multi_condition/run_aug_common.sh +++ b/egs/swbd/s5c/local/nnet3/multi_condition/run_aug_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Phani Sankar Nidadavolu # Apache 2.0. diff --git a/egs/swbd/s5c/local/nnet3/run_blstm_discriminative.sh b/egs/swbd/s5c/local/nnet3/run_blstm_discriminative.sh index ba751ad8732..94440f73d2f 100755 --- a/egs/swbd/s5c/local/nnet3/run_blstm_discriminative.sh +++ b/egs/swbd/s5c/local/nnet3/run_blstm_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o pipefail set -e diff --git a/egs/swbd/s5c/local/nnet3/run_ivector_common.sh b/egs/swbd/s5c/local/nnet3/run_ivector_common.sh index a0cac0c1d5d..daf1ec961c8 100755 --- a/egs/swbd/s5c/local/nnet3/run_ivector_common.sh +++ b/egs/swbd/s5c/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh set -e diff --git a/egs/swbd/s5c/local/nnet3/run_lstm.sh b/egs/swbd/s5c/local/nnet3/run_lstm.sh index 169737654e4..5b3e2df0cbb 100755 --- a/egs/swbd/s5c/local/nnet3/run_lstm.sh +++ b/egs/swbd/s5c/local/nnet3/run_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (Author: Daniel Povey). # 2015 Vijayaditya Peddinti diff --git a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_a.sh b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_a.sh index 42b9bcb0a1e..18a310c5532 100755 --- a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_a.sh +++ b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is the standard "tdnn" system, built in nnet3; it's what we use to # call multi-splice. diff --git a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_b.sh b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_b.sh index 1ddbaef71d6..90b865ff43b 100755 --- a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_b.sh +++ b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # b is as a, but using a different splice indexes with geometrically increasing # relu dims across layers. It gives better results but takes 2x time for training diff --git a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_c.sh b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_c.sh index 49f8ab62247..309b1799f80 100644 --- a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_c.sh +++ b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # c is as a, but uses xconfig. diff --git a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_d.sh b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_d.sh index 427678da17b..95018ec5e01 100755 --- a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_d.sh +++ b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # d is as c, but with one extra layer. diff --git a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_d_disc.sh b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_d_disc.sh index 6f42e042166..f5be1c004c3 100755 --- a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_d_disc.sh +++ b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_d_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script does discriminative training on top of the CE nnet3 system # from run_tdnn_d. To simplify things, this assumes you are using the "speed-perturbed" data diff --git a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_e.sh b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_e.sh index 974f697d651..16d9bf89fba 100755 --- a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_e.sh +++ b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e is as c, but uses splicing similar to chain's without changing number of # layers. diff --git a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1a.sh b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1a.sh index 02e637286b5..2dd042cd38f 100755 --- a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1a.sh +++ b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _lfr1a is as _c, but is LFR (low frame rate): it uses triphone chain topology # with a frame subsampling factor of 3. diff --git a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1b.sh b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1b.sh index 67fd3c03d27..851fca84c27 100755 --- a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1b.sh +++ b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _lfr1b is as _lfr1a, but with one more -3,3 layer (the comparable # non-LFR system is tdnn_d) diff --git a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1c.sh b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1c.sh index 260116666a0..7b265ddaf98 100755 --- a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1c.sh +++ b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # _lfr1c is as _lfr1a, but uses splicing similar to chain's without changing # number of layers (comparable non-LFR system is tdnn_e). diff --git a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1c_disc.sh b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1c_disc.sh index e1d0f06affe..a260a237911 100755 --- a/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1c_disc.sh +++ b/egs/swbd/s5c/local/nnet3/tuning/run_tdnn_lfr1c_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script does discriminative training on top of the CE nnet3 LFR system # from run_tdnn_lfr1c. To simplify things, this assumes you are using the diff --git a/egs/swbd/s5c/local/online/run_nnet2_common.sh b/egs/swbd/s5c/local/online/run_nnet2_common.sh index 8221be79162..814af2ea3cd 100755 --- a/egs/swbd/s5c/local/online/run_nnet2_common.sh +++ b/egs/swbd/s5c/local/online/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh set -e diff --git a/egs/swbd/s5c/local/online/run_nnet2_ms.sh b/egs/swbd/s5c/local/online/run_nnet2_ms.sh index 2525aa85739..08b6439400c 100755 --- a/egs/swbd/s5c/local/online/run_nnet2_ms.sh +++ b/egs/swbd/s5c/local/online/run_nnet2_ms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh set -e diff --git a/egs/swbd/s5c/local/online/run_nnet2_ms_perturbed.sh b/egs/swbd/s5c/local/online/run_nnet2_ms_perturbed.sh index 5a120d1e00d..5d9fdb88dfa 100755 --- a/egs/swbd/s5c/local/online/run_nnet2_ms_perturbed.sh +++ b/egs/swbd/s5c/local/online/run_nnet2_ms_perturbed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (author: Daniel Povey) # 2014 Tom Ko diff --git a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1a.sh b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1a.sh index 2bc7f7db21e..4d1a3fecd4c 100755 --- a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1a.sh +++ b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1b.sh b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1b.sh index 5d24309e99a..00729a1e1fd 100755 --- a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1b.sh +++ b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1c.sh b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1c.sh index bdef09102d9..f8e9e3dc964 100755 --- a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1c.sh +++ b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1d.sh b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1d.sh index 3787c8a532a..16118ab8b9f 100755 --- a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1d.sh +++ b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1e.sh b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1e.sh index b7e53b016ea..afabc49e96b 100755 --- a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1e.sh +++ b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_back_1e.sh b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_back_1e.sh index 4f85ed8f28b..e4d921c050e 100755 --- a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_back_1e.sh +++ b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_back_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_swbd.sh b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_swbd.sh index c167e454fe8..c3628f1b2f7 100755 --- a/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_swbd.sh +++ b/egs/swbd/s5c/local/rnnlm/tuning/run_tdnn_lstm_swbd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/swbd/s5c/local/rt03_data_prep.sh b/egs/swbd/s5c/local/rt03_data_prep.sh index f537b88b609..15e03f70498 100755 --- a/egs/swbd/s5c/local/rt03_data_prep.sh +++ b/egs/swbd/s5c/local/rt03_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # RT-03 data preparation (conversational telephone speech part only) # Adapted from Arnab Ghoshal's script for Hub-5 Eval 2000 by Peng Qi diff --git a/egs/swbd/s5c/local/run_asr_segmentation.sh b/egs/swbd/s5c/local/run_asr_segmentation.sh index 6da8b55631d..a81913fbeac 100755 --- a/egs/swbd/s5c/local/run_asr_segmentation.sh +++ b/egs/swbd/s5c/local/run_asr_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Nagendra Kumar Goel # 2017 Vimal Manohar diff --git a/egs/swbd/s5c/local/run_cleanup_segmentation.sh b/egs/swbd/s5c/local/run_cleanup_segmentation.sh index c879a55d16a..e7d7a603092 100755 --- a/egs/swbd/s5c/local/run_cleanup_segmentation.sh +++ b/egs/swbd/s5c/local/run_cleanup_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/swbd/s5c/local/run_raw_fmllr.sh b/egs/swbd/s5c/local/run_raw_fmllr.sh index 88839fdbfc5..58c4f646346 100755 --- a/egs/swbd/s5c/local/run_raw_fmllr.sh +++ b/egs/swbd/s5c/local/run_raw_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh set -e diff --git a/egs/swbd/s5c/local/run_resegment.sh b/egs/swbd/s5c/local/run_resegment.sh index 8cf08330afe..f01185bf107 100755 --- a/egs/swbd/s5c/local/run_resegment.sh +++ b/egs/swbd/s5c/local/run_resegment.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates some scripts for resegmenting data. This was # developed for a scenario where the evaluation data doesn't come with diff --git a/egs/swbd/s5c/local/run_sgmm2.sh b/egs/swbd/s5c/local/run_sgmm2.sh index 5410819dadb..56b71cfaa2f 100755 --- a/egs/swbd/s5c/local/run_sgmm2.sh +++ b/egs/swbd/s5c/local/run_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/swbd/s5c/local/score.sh b/egs/swbd/s5c/local/score.sh index 49aedc2163d..f3ac934ec8b 100755 --- a/egs/swbd/s5c/local/score.sh +++ b/egs/swbd/s5c/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. orig_args= diff --git a/egs/swbd/s5c/local/score_basic.sh b/egs/swbd/s5c/local/score_basic.sh index 2cb1fafc8d8..094ce3e0f7a 100755 --- a/egs/swbd/s5c/local/score_basic.sh +++ b/egs/swbd/s5c/local/score_basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/swbd/s5c/local/score_sclite.sh b/egs/swbd/s5c/local/score_sclite.sh index 0f632bb48dc..d7665981d55 100755 --- a/egs/swbd/s5c/local/score_sclite.sh +++ b/egs/swbd/s5c/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/swbd/s5c/local/score_sclite_conf.sh b/egs/swbd/s5c/local/score_sclite_conf.sh index 21da4520a4d..599030c03e3 100755 --- a/egs/swbd/s5c/local/score_sclite_conf.sh +++ b/egs/swbd/s5c/local/score_sclite_conf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # begin configuration section. diff --git a/egs/swbd/s5c/local/segmentation/tuning/train_lstm_asr_sad_1a.sh b/egs/swbd/s5c/local/segmentation/tuning/train_lstm_asr_sad_1a.sh index 13318756e43..1bd818098e5 100755 --- a/egs/swbd/s5c/local/segmentation/tuning/train_lstm_asr_sad_1a.sh +++ b/egs/swbd/s5c/local/segmentation/tuning/train_lstm_asr_sad_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Nagendra Kumar Goel # Apache 2.0 diff --git a/egs/swbd/s5c/local/segmentation/tuning/train_stats_asr_sad_1a.sh b/egs/swbd/s5c/local/segmentation/tuning/train_stats_asr_sad_1a.sh index 05e5f4ded05..6305536048f 100755 --- a/egs/swbd/s5c/local/segmentation/tuning/train_stats_asr_sad_1a.sh +++ b/egs/swbd/s5c/local/segmentation/tuning/train_stats_asr_sad_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Nagendra Kumar Goel # 2016 Vimal Manohar diff --git a/egs/swbd/s5c/local/swbd1_data_download.sh b/egs/swbd/s5c/local/swbd1_data_download.sh index ce1837b9045..a1f03898d24 100755 --- a/egs/swbd/s5c/local/swbd1_data_download.sh +++ b/egs/swbd/s5c/local/swbd1_data_download.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Switchboard-1 training data preparation customized for Edinburgh # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/swbd/s5c/local/swbd1_data_prep.sh b/egs/swbd/s5c/local/swbd1_data_prep.sh index 33f3ab8807a..5c8626bf1fb 100755 --- a/egs/swbd/s5c/local/swbd1_data_prep.sh +++ b/egs/swbd/s5c/local/swbd1_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Switchboard-1 training data preparation customized for Edinburgh # Author: Arnab Ghoshal (Jan 2013) diff --git a/egs/swbd/s5c/local/swbd1_prepare_dict.sh b/egs/swbd/s5c/local/swbd1_prepare_dict.sh index dadd33e7954..157b0c6d6a2 100755 --- a/egs/swbd/s5c/local/swbd1_prepare_dict.sh +++ b/egs/swbd/s5c/local/swbd1_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Formatting the Mississippi State dictionary for use in Edinburgh. Differs # from the one in Kaldi s5 recipe in that it uses lower-case --Arnab (Jan 2013) diff --git a/egs/swbd/s5c/local/swbd1_train_lms.sh b/egs/swbd/s5c/local/swbd1_train_lms.sh index 5b98f4b6beb..e323f557099 100755 --- a/egs/swbd/s5c/local/swbd1_train_lms.sh +++ b/egs/swbd/s5c/local/swbd1_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal # Johns Hopkins University (author: Daniel Povey) diff --git a/egs/swbd/s5c/run.sh b/egs/swbd/s5c/run.sh index 3a1c90567a6..a2a6b8e55fd 100755 --- a/egs/swbd/s5c/run.sh +++ b/egs/swbd/s5c/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 train_discriminative=false # by default, don't do the GMM-based discriminative diff --git a/egs/tedlium/s5/local/chain/run_tdnn.sh b/egs/tedlium/s5/local/chain/run_tdnn.sh index 545294dd035..ed4d56aa5ff 100755 --- a/egs/tedlium/s5/local/chain/run_tdnn.sh +++ b/egs/tedlium/s5/local/chain/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This script requires that you have run the toplevel run.sh script in TEDLIUM up to stage 7. # diff --git a/egs/tedlium/s5/local/confidence_calibration.sh b/egs/tedlium/s5/local/confidence_calibration.sh index 9791524ffb6..90ab881495d 100755 --- a/egs/tedlium/s5/local/confidence_calibration.sh +++ b/egs/tedlium/s5/local/confidence_calibration.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh . ./path.sh diff --git a/egs/tedlium/s5/local/download_data.sh b/egs/tedlium/s5/local/download_data.sh index f24aa33c3d3..6309b93622a 100755 --- a/egs/tedlium/s5/local/download_data.sh +++ b/egs/tedlium/s5/local/download_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/tedlium/s5/local/nnet/run_dnn.sh b/egs/tedlium/s5/local/nnet/run_dnn.sh index d1cf3440bc5..9702097ec07 100755 --- a/egs/tedlium/s5/local/nnet/run_dnn.sh +++ b/egs/tedlium/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/tedlium/s5/local/nnet/run_dnn_bn.sh b/egs/tedlium/s5/local/nnet/run_dnn_bn.sh index 6bef438d61b..a200e7d7153 100755 --- a/egs/tedlium/s5/local/nnet/run_dnn_bn.sh +++ b/egs/tedlium/s5/local/nnet/run_dnn_bn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Based mostly on the Switchboard recipe. The training database is TED-LIUM, # it consists of TED talks with cleaned automatic transcripts: diff --git a/egs/tedlium/s5/local/nnet/run_dnn_fbank.sh b/egs/tedlium/s5/local/nnet/run_dnn_fbank.sh index 762b8a71307..d1445052f44 100755 --- a/egs/tedlium/s5/local/nnet/run_dnn_fbank.sh +++ b/egs/tedlium/s5/local/nnet/run_dnn_fbank.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/tedlium/s5/local/nnet/run_lstm.sh b/egs/tedlium/s5/local/nnet/run_lstm.sh index a8d6326812e..ddc12113a3d 100755 --- a/egs/tedlium/s5/local/nnet/run_lstm.sh +++ b/egs/tedlium/s5/local/nnet/run_lstm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/tedlium/s5/local/nnet3/run_ivector_common.sh b/egs/tedlium/s5/local/nnet3/run_ivector_common.sh index 0b1738a2e8e..839744c60c4 100755 --- a/egs/tedlium/s5/local/nnet3/run_ivector_common.sh +++ b/egs/tedlium/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is based on: # swbd/s5c/local/nnet3/run_ivector_common.sh and diff --git a/egs/tedlium/s5/local/nnet3/run_tdnn.sh b/egs/tedlium/s5/local/nnet3/run_tdnn.sh index 16b756473d1..3191aa9c73b 100755 --- a/egs/tedlium/s5/local/nnet3/run_tdnn.sh +++ b/egs/tedlium/s5/local/nnet3/run_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is the standard "tdnn" system, built in nnet3; it's what we use to # call multi-splice. diff --git a/egs/tedlium/s5/local/nnet3/run_tdnn_discriminative.sh b/egs/tedlium/s5/local/nnet3/run_tdnn_discriminative.sh index b37fbf9d35e..abce0aeae68 100755 --- a/egs/tedlium/s5/local/nnet3/run_tdnn_discriminative.sh +++ b/egs/tedlium/s5/local/nnet3/run_tdnn_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script does discriminative training on top of CE nnet3 system. # note: this relies on having a cluster that has plenty of CPUs as well as GPUs, diff --git a/egs/tedlium/s5/local/online/run_nnet2_common.sh b/egs/tedlium/s5/local/online/run_nnet2_common.sh index 3b947a7f577..a258e1e54e4 100755 --- a/egs/tedlium/s5/local/online/run_nnet2_common.sh +++ b/egs/tedlium/s5/local/online/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script contains some common (shared) parts of the run_nnet*.sh scripts. diff --git a/egs/tedlium/s5/local/online/run_nnet2_ensemble.sh b/egs/tedlium/s5/local/online/run_nnet2_ensemble.sh index d2590c69a7b..8d2176014fa 100755 --- a/egs/tedlium/s5/local/online/run_nnet2_ensemble.sh +++ b/egs/tedlium/s5/local/online/run_nnet2_ensemble.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the "multi-splice" version of the online-nnet2 training script. # It's currently the best recipe. diff --git a/egs/tedlium/s5/local/online/run_nnet2_ms.sh b/egs/tedlium/s5/local/online/run_nnet2_ms.sh index 76b908ef70b..8addf3b9dd0 100755 --- a/egs/tedlium/s5/local/online/run_nnet2_ms.sh +++ b/egs/tedlium/s5/local/online/run_nnet2_ms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the "multi-splice" version of the online-nnet2 training script. # It's currently the best recipe. diff --git a/egs/tedlium/s5/local/online/run_nnet2_ms_disc.sh b/egs/tedlium/s5/local/online/run_nnet2_ms_disc.sh index fc4e34b35ed..45cf835b102 100755 --- a/egs/tedlium/s5/local/online/run_nnet2_ms_disc.sh +++ b/egs/tedlium/s5/local/online/run_nnet2_ms_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script does discriminative training on top of the online, multi-splice diff --git a/egs/tedlium/s5/local/online/run_nnet2_ms_perturbed.sh b/egs/tedlium/s5/local/online/run_nnet2_ms_perturbed.sh index 09ddd46b7fe..ff0063ba171 100755 --- a/egs/tedlium/s5/local/online/run_nnet2_ms_perturbed.sh +++ b/egs/tedlium/s5/local/online/run_nnet2_ms_perturbed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (author: Daniel Povey) # 2014 Tom Ko diff --git a/egs/tedlium/s5/local/prepare_data.sh b/egs/tedlium/s5/local/prepare_data.sh index c2a1f0a5e84..4ac26e1af3f 100755 --- a/egs/tedlium/s5/local/prepare_data.sh +++ b/egs/tedlium/s5/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/tedlium/s5/local/prepare_dict.sh b/egs/tedlium/s5/local/prepare_dict.sh index fcb03ea7aef..e1b78ca5bd3 100755 --- a/egs/tedlium/s5/local/prepare_dict.sh +++ b/egs/tedlium/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/tedlium/s5/local/prepare_lm.sh b/egs/tedlium/s5/local/prepare_lm.sh index dd3a5434a8e..1198658e2ba 100755 --- a/egs/tedlium/s5/local/prepare_lm.sh +++ b/egs/tedlium/s5/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # Apache 2.0 diff --git a/egs/tedlium/s5/local/score_basic.sh b/egs/tedlium/s5/local/score_basic.sh index e59c053926f..a78edcccec8 100755 --- a/egs/tedlium/s5/local/score_basic.sh +++ b/egs/tedlium/s5/local/score_basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/tedlium/s5/local/score_sclite.sh b/egs/tedlium/s5/local/score_sclite.sh index 52ab2c8f93d..6fff25e9464 100755 --- a/egs/tedlium/s5/local/score_sclite.sh +++ b/egs/tedlium/s5/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright Johns Hopkins University (Author: Daniel Povey) 2012, # Brno University of Technology (Author: Karel Vesely) 2014, diff --git a/egs/tedlium/s5/run.sh b/egs/tedlium/s5/run.sh index 33ed73fa2db..02df7c09f00 100755 --- a/egs/tedlium/s5/run.sh +++ b/egs/tedlium/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Based mostly on the Switchboard recipe. The training database is TED-LIUM, # it consists of TED talks with cleaned automatic transcripts: diff --git a/egs/tedlium/s5_r2/local/chain/compare_wer_general.sh b/egs/tedlium/s5_r2/local/chain/compare_wer_general.sh index 88dde1ff0e2..e5fd8b14b8c 100755 --- a/egs/tedlium/s5_r2/local/chain/compare_wer_general.sh +++ b/egs/tedlium/s5_r2/local/chain/compare_wer_general.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer_general.sh exp/chain_cleaned/tdnn_{c,d}_sp diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_blstm_1a.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_blstm_1a.sh index 2ac8c09dad1..daa1dde2108 100644 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_blstm_1a.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_blstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_blstm_1a.sh is a first attempt at an BLSTM system, based on xconfigs # ./local/chain/compare_wer_general.sh exp/chain_cleaned/blstm_1a_sp_bi diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1a.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1a.sh index 47557f93696..54ac70acfe3 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1a.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_lstm_1a.sh is a first attempt at an LSTM system, based on xconfigs-- it's # probably not very well configured, e.g. the num-params might be too small. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1b.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1b.sh index 7afa1b7f902..da42338f63b 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1b.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_lstm_1b.sh is as run_lstm_1a.sh but replacing the projected LSTM # with a regular LSTM. This is done in order to have an LSTM-only baseline diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1c.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1c.sh index e69e499e152..327a045ca1f 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1c.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_lstm_1c.sh is like run_lstm_1b.sh but changing from the old LSTM diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1d.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1d.sh index 86e0352828c..0678bbc23ac 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1d.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_lstm_1d.sh is like run_lstm_1c.sh, but switching back to projected diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1e.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1e.sh index 0fdb2b3b63e..0316d1b2667 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1e.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_lstm_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_lstm_1e.sh is like run_lstm_1d.sh, but reducing non-recurrent-projection-dim diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1a.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1a.sh index 70e72ee1914..27ebede135c 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the original TDNN script before we introduced xconfigs. # See run_tdnn_1b.sh for comparative results. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1b.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1b.sh index 492d3efb804..2fce0f27a45 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_1b.sh is like run_tdnn_1a.sh but upgrading to xconfig-based # config generation. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1c.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1c.sh index 01768c3875f..a803075a376 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1c.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_1c.sh is like run_tdnn_1b.sh but changing chunk-width from 150 to # '140,110,160', and diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1d.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1d.sh index bb5007f4c9f..85e4e6d0a7b 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1d.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_1d.sh is like run_tdnn_1b.sh but using 10 times the self-repair diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1e.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1e.sh index 1476ed1fd40..a3edb1a96f5 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1e.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_1e.sh is like run_tdnn_1d.sh but batchnorm components instead of renorm diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1f.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1f.sh index 47f939fea1c..927c2cbeeb8 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1f.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_1f.sh is like run_tdnn_1e.sh but it use 2 to 6 jobs and add proportional-shrink 20. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1g.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1g.sh index f02025674e8..9f825686c61 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1g.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_1g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1g is as 1f but moving to a factorized TDNN (TDNN-F) model, re-tuning it, and # switching to unconstrained egs (the last of which gives around 0.1% diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1a.sh index b03da27e760..9bd9a5474b3 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # steps/info/chain_dir_info.pl exp/chain_cleaned/tdnn_lstm1a_sp_bi diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1b.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1b.sh index e896a7867b3..99f2c8dfd89 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1b.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is as run_tdnn_lstm_1a.sh, but changing # frames_per_chunk 150 to 140,100,160 diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1c.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1c.sh index 00f72fab796..6f5b11ca21d 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1c.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1c is as 1b, but adding the option --slow-start true. [since removed; it # takes half the param change from the first two minibatches of each diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1d.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1d.sh index 80a9ed1c4d0..acb758a35f4 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1d.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1d is as 1b, but adding decay-time=40 to the fast-lstmp-layers. note: it # uses egs from 1b, remember to remove that before I commit. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1e.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1e.sh index 031978f878a..1fa3b51fa1f 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1e.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1e is as 1d, but reducing decay-time from 40 to 20. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1e_disc.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1e_disc.sh index 0d64c75aea8..ed1760db7d6 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1e_disc.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1e_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script does discriminative training on top of the 1e chain system. To # simplify things, this assumes you are using the "cleaned" data (since this is diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1f.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1f.sh index c60b8f7fefc..98dbb5a4c1c 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1f.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1f is as 1d, but increasing decay-time from 40 to 80. [see also 1e, at 20.] # see 1e for summary of results. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1g.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1g.sh index 2d2048a6869..5a30cceef60 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1g.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ####################### # 1g is as 1e, but reducing decay-time further from 20 to 10. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1h.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1h.sh index a074e128270..84c89ebc062 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1h.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ####################### # 1h is as 1e, but increasing decay-time from to to 30. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1i.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1i.sh index 3bfe175806f..527bf9338ec 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1i.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1i is as 1e, but adding boundary-offset. No clear effect. # diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1j.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1j.sh index acbef783823..f4a100802b7 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1j.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1j.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1j is as 1e, but adding self-repair-scale=1.0e-04 on 1st tdnn layer [default is 1e-5]. # It's definitely more effective in preventing under or over-saturated ReLUs, but diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1k.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1k.sh index 173be863608..5912e9dc015 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1k.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1k.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1k is as 1e, but introducing a dropout schedule. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1l.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1l.sh index 94955d0472c..ab176e11920 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1l.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1l.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1l is as 1k, but having the dropout end at the end of training, not @0.75. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1m.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1m.sh index efd3bc98725..abd722ec306 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1m.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1m.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1m is as 1l, but having the dropout end at 0.1 diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1n.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1n.sh index c0559e8d389..e6c0175b513 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1n.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1n.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1n is as 1k, but maxing out at 0.5, not 0.7. # 1k is as 1e, but introducing a dropout schedule. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1o.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1o.sh index 5a6dbaef8af..a8286d1a120 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1o.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1o.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1o is as 1k, but putting the dropout on (c,m), i.e. the output # of the LstmNonlinearityComponent, which I believe is the same as diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1r.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1r.sh index dd38d56759f..4df38437ac9 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1r.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1r.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1r is as 1e, but changing update-period of natural gradient from 4 to 1, # Not helpful. diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1s.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1s.sh index 1378d2d176d..4cc7e95245b 100644 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1s.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1s.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1s is as 1e, but adding per-frame dropout to LSTM in location4 # as paper : http://www.danielpovey.com/files/2017_interspeech_dropout.pdf diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1t.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1t.sh index 3c4882ec2c6..4b81828d7a7 100644 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1t.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1t.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1t is as 1e, but increasing the TDNN dim and LSTM cell-dim into # 1024, the recurrent and non-recurrent projection of the LSTM from diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1u.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1u.sh index 23ea14ae151..da3f64484bc 100644 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1u.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1u.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1u is the same as 1t but adding per-frame dropout to LSTM # in location4, see paper : http://www.danielpovey.com/files/2017_interspeech_dropout.pdf diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1v.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1v.sh index 7c44d963504..089721fdb97 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1v.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_1v.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1v is as 1t, but using backstitch training with scale=1.0,interval=4, and # num of epochs increased to 7 diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_1a.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_1a.sh index 042ef346578..dbf4a3fd800 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_1a.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # In this recipe we replace the last LSTM layer with an attention layer # which leads to some consistent improvements in WER diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_bs_1a.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_bs_1a.sh index 905e1845183..5e3186b8209 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_bs_1a.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_bs_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tdnn_lstm_attention_bs_1a is like tdnn_lstm_1v (i.e. it uses backstitch) # except we replace the last LSTM layer with an attention layer diff --git a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_bs_1b.sh b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_bs_1b.sh index 7bd96e7d82c..cd91a8ff26b 100755 --- a/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_bs_1b.sh +++ b/egs/tedlium/s5_r2/local/chain/tuning/run_tdnn_lstm_attention_bs_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1b is as 1a except all renorms are replaced by batchnorms diff --git a/egs/tedlium/s5_r2/local/download_data.sh b/egs/tedlium/s5_r2/local/download_data.sh index 945ba378cef..cfbc70c6ce5 100755 --- a/egs/tedlium/s5_r2/local/download_data.sh +++ b/egs/tedlium/s5_r2/local/download_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/tedlium/s5_r2/local/format_lms.sh b/egs/tedlium/s5_r2/local/format_lms.sh index 7d8e342cddd..f87d72eb1d8 100755 --- a/egs/tedlium/s5_r2/local/format_lms.sh +++ b/egs/tedlium/s5_r2/local/format_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # Apache 2.0 diff --git a/egs/tedlium/s5_r2/local/nnet3/compare_wer.sh b/egs/tedlium/s5_r2/local/nnet3/compare_wer.sh index da0bb728e69..484a60dc232 100755 --- a/egs/tedlium/s5_r2/local/nnet3/compare_wer.sh +++ b/egs/tedlium/s5_r2/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/nnet3/compare_wer.sh exp/nnet3_cleaned/tdnn_{c,d}_sp diff --git a/egs/tedlium/s5_r2/local/nnet3/run_ivector_common.sh b/egs/tedlium/s5_r2/local/nnet3/run_ivector_common.sh index 337092b1520..86cced16bd0 100755 --- a/egs/tedlium/s5_r2/local/nnet3/run_ivector_common.sh +++ b/egs/tedlium/s5_r2/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/tedlium/s5_r2/local/nnet3/tuning/run_lstm_1a.sh b/egs/tedlium/s5_r2/local/nnet3/tuning/run_lstm_1a.sh index 0f8dc6304f0..db1de508c7c 100755 --- a/egs/tedlium/s5_r2/local/nnet3/tuning/run_lstm_1a.sh +++ b/egs/tedlium/s5_r2/local/nnet3/tuning/run_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the standard "lstm" system, built in nnet3; this script # is the version that's meant to run with data-cleanup, that doesn't diff --git a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1a.sh b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1a.sh index f0eae04918d..374874243e2 100755 --- a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1a.sh +++ b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the standard "tdnn" system, built in nnet3; this script # is the version that's meant to run with data-cleanup, that doesn't diff --git a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1b.sh b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1b.sh index 21268398997..d0ebffa3429 100755 --- a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1b.sh +++ b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1b is as 1a but uses xconfigs. diff --git a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1c.sh b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1c.sh index 61f68839a5f..94af22448e4 100755 --- a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1c.sh +++ b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1c is as 1b but using more 'chain-like' splicing and slightly # smaller dim. Not better; maybe slightly worse. diff --git a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lfr_1a.sh b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lfr_1a.sh index f0220b17376..f1f3bb7f9ca 100755 --- a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lfr_1a.sh +++ b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lfr_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_lfr_1a.sh is similar in configuration to run_tdnn_1c.sh, but it's a diff --git a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1a.sh b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1a.sh index 28c45836cf7..2caa798df6c 100755 --- a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1a.sh +++ b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a TDNN+LSTM system; the configuration is similar to # local/chain/tuning/run_tdnn_lstm_1e.sh, but a non-chain nnet3 system, and diff --git a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1a_disc.sh b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1a_disc.sh index 1826caf3d05..77221afbb3f 100755 --- a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1a_disc.sh +++ b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1a_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script does discriminative training on top of CE nnet3 system. To # simplify things, this assumes you are using the "cleaned" data (since this is diff --git a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1b.sh b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1b.sh index 8b8af6eff78..b6dd9521a54 100755 --- a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1b.sh +++ b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1b is as 1a, but removing the decay-time option as a baseline. diff --git a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1b_disc.sh b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1b_disc.sh index 07c3d4af233..e1ebf5baa6d 100755 --- a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1b_disc.sh +++ b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1b_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script does discriminative training on top of CE nnet3 system. To # simplify things, this assumes you are using the "cleaned" data (since this is diff --git a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1c.sh b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1c.sh index bc9a717419d..27d159a802b 100755 --- a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1c.sh +++ b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_lstm_1c.sh is as run_tdnn_lstm_1a.sh, but about 1.5 times larger # chunk lengths than 1a. diff --git a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_lfr_1a.sh b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_lfr_1a.sh index 3e8509bf4ac..f948e9fff20 100755 --- a/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_lfr_1a.sh +++ b/egs/tedlium/s5_r2/local/nnet3/tuning/run_tdnn_lstm_lfr_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_lstm_lfr_1a.sh is like run_tdnn_lstm_1a.sh, but diff --git a/egs/tedlium/s5_r2/local/prepare_data.sh b/egs/tedlium/s5_r2/local/prepare_data.sh index a1f554ef7b6..411690b504b 100755 --- a/egs/tedlium/s5_r2/local/prepare_data.sh +++ b/egs/tedlium/s5_r2/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/tedlium/s5_r2/local/prepare_data_iwslt.sh b/egs/tedlium/s5_r2/local/prepare_data_iwslt.sh index 1e0c33dbfa2..b96a0f701cb 100755 --- a/egs/tedlium/s5_r2/local/prepare_data_iwslt.sh +++ b/egs/tedlium/s5_r2/local/prepare_data_iwslt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/tedlium/s5_r2/local/prepare_dict.sh b/egs/tedlium/s5_r2/local/prepare_dict.sh index 18837c21085..502346a239b 100755 --- a/egs/tedlium/s5_r2/local/prepare_dict.sh +++ b/egs/tedlium/s5_r2/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/tedlium/s5_r2/local/rnnlm/prepare_rnnlm_data.sh b/egs/tedlium/s5_r2/local/rnnlm/prepare_rnnlm_data.sh index ba6252450da..cd1a0c9aa93 100755 --- a/egs/tedlium/s5_r2/local/rnnlm/prepare_rnnlm_data.sh +++ b/egs/tedlium/s5_r2/local/rnnlm/prepare_rnnlm_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from the egs/ directory. diff --git a/egs/tedlium/s5_r2/local/rnnlm/tuning/run_lstm_tdnn.sh b/egs/tedlium/s5_r2/local/rnnlm/tuning/run_lstm_tdnn.sh index 87f99f651bf..25d144b3a90 100755 --- a/egs/tedlium/s5_r2/local/rnnlm/tuning/run_lstm_tdnn.sh +++ b/egs/tedlium/s5_r2/local/rnnlm/tuning/run_lstm_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/tedlium/s5_r2/local/rnnlm/tuning/run_lstm_tdnn_with_lm1b.sh b/egs/tedlium/s5_r2/local/rnnlm/tuning/run_lstm_tdnn_with_lm1b.sh index ec289df81ef..2e1bc25a9a1 100755 --- a/egs/tedlium/s5_r2/local/rnnlm/tuning/run_lstm_tdnn_with_lm1b.sh +++ b/egs/tedlium/s5_r2/local/rnnlm/tuning/run_lstm_tdnn_with_lm1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2018 Ke Li diff --git a/egs/tedlium/s5_r2/local/run_cleanup_segmentation.sh b/egs/tedlium/s5_r2/local/run_cleanup_segmentation.sh index 559d20046dd..ac5f0cb9009 100755 --- a/egs/tedlium/s5_r2/local/run_cleanup_segmentation.sh +++ b/egs/tedlium/s5_r2/local/run_cleanup_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/tedlium/s5_r2/local/run_segmentation_long_utts.sh b/egs/tedlium/s5_r2/local/run_segmentation_long_utts.sh index 560d6fb450f..9f77e20d717 100644 --- a/egs/tedlium/s5_r2/local/run_segmentation_long_utts.sh +++ b/egs/tedlium/s5_r2/local/run_segmentation_long_utts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # Apache 2.0 diff --git a/egs/tedlium/s5_r2/local/run_unk_model.sh b/egs/tedlium/s5_r2/local/run_unk_model.sh index 35f8292b940..8a21531f01f 100755 --- a/egs/tedlium/s5_r2/local/run_unk_model.sh +++ b/egs/tedlium/s5_r2/local/run_unk_model.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash utils/lang/make_unk_lm.sh data/local/dict exp/unk_lang_model diff --git a/egs/tedlium/s5_r2/local/score_basic.sh b/egs/tedlium/s5_r2/local/score_basic.sh index 47b57396c64..a8dab49ce68 100755 --- a/egs/tedlium/s5_r2/local/score_basic.sh +++ b/egs/tedlium/s5_r2/local/score_basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/tedlium/s5_r2/local/score_sclite.sh b/egs/tedlium/s5_r2/local/score_sclite.sh index 16c8b30e52f..ab71c909270 100755 --- a/egs/tedlium/s5_r2/local/score_sclite.sh +++ b/egs/tedlium/s5_r2/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright Johns Hopkins University (Author: Daniel Povey) 2012, # Brno University of Technology (Author: Karel Vesely) 2014, diff --git a/egs/tedlium/s5_r2/local/ted_download_lm.sh b/egs/tedlium/s5_r2/local/ted_download_lm.sh index 11ee5bc82d6..3f73afb0621 100755 --- a/egs/tedlium/s5_r2/local/ted_download_lm.sh +++ b/egs/tedlium/s5_r2/local/ted_download_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2018 David Snyder # Apache 2.0 diff --git a/egs/tedlium/s5_r2/local/ted_train_lm.sh b/egs/tedlium/s5_r2/local/ted_train_lm.sh index 3a1bef567fb..25dca8e13c4 100755 --- a/egs/tedlium/s5_r2/local/ted_train_lm.sh +++ b/egs/tedlium/s5_r2/local/ted_train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/tedlium/s5_r2/results.sh b/egs/tedlium/s5_r2/results.sh index 98bcab94ec5..f3bfcdc44fa 100755 --- a/egs/tedlium/s5_r2/results.sh +++ b/egs/tedlium/s5_r2/results.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash filter_regexp=. [ $# -ge 1 ] && filter_regexp=$1 diff --git a/egs/tedlium/s5_r2/run.sh b/egs/tedlium/s5_r2/run.sh index e7b5df6055e..5c94f72583e 100755 --- a/egs/tedlium/s5_r2/run.sh +++ b/egs/tedlium/s5_r2/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Based mostly on the Switchboard recipe. The training database is TED-LIUM, # it consists of TED talks with cleaned automatic transcripts: diff --git a/egs/tedlium/s5_r2_wsj/local/format_lms.sh b/egs/tedlium/s5_r2_wsj/local/format_lms.sh index e9b9d3c63f0..de3745f0dbf 100755 --- a/egs/tedlium/s5_r2_wsj/local/format_lms.sh +++ b/egs/tedlium/s5_r2_wsj/local/format_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # Apache 2.0 diff --git a/egs/tedlium/s5_r2_wsj/local/prepare_data.sh b/egs/tedlium/s5_r2_wsj/local/prepare_data.sh index 2aa5eb71be4..490b5a0130b 100755 --- a/egs/tedlium/s5_r2_wsj/local/prepare_data.sh +++ b/egs/tedlium/s5_r2_wsj/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/tedlium/s5_r2_wsj/local/prepare_dict.sh b/egs/tedlium/s5_r2_wsj/local/prepare_dict.sh index 23b478be5ce..671cc199565 100755 --- a/egs/tedlium/s5_r2_wsj/local/prepare_dict.sh +++ b/egs/tedlium/s5_r2_wsj/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation # 2012-2014 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/tedlium/s5_r2_wsj/local/score_basic.sh b/egs/tedlium/s5_r2_wsj/local/score_basic.sh index d840bd9c981..7caed63bb95 100755 --- a/egs/tedlium/s5_r2_wsj/local/score_basic.sh +++ b/egs/tedlium/s5_r2_wsj/local/score_basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/tedlium/s5_r2_wsj/local/score_sclite.sh b/egs/tedlium/s5_r2_wsj/local/score_sclite.sh index 16c8b30e52f..ab71c909270 100755 --- a/egs/tedlium/s5_r2_wsj/local/score_sclite.sh +++ b/egs/tedlium/s5_r2_wsj/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright Johns Hopkins University (Author: Daniel Povey) 2012, # Brno University of Technology (Author: Karel Vesely) 2014, diff --git a/egs/tedlium/s5_r2_wsj/local/train_lm.sh b/egs/tedlium/s5_r2_wsj/local/train_lm.sh index 2e8f8de11f9..8748fd677f0 100755 --- a/egs/tedlium/s5_r2_wsj/local/train_lm.sh +++ b/egs/tedlium/s5_r2_wsj/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/tedlium/s5_r2_wsj/local/wsj_data_prep.sh b/egs/tedlium/s5_r2_wsj/local/wsj_data_prep.sh index 62174ec4349..32541e7e84f 100755 --- a/egs/tedlium/s5_r2_wsj/local/wsj_data_prep.sh +++ b/egs/tedlium/s5_r2_wsj/local/wsj_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # Apache 2.0. diff --git a/egs/tedlium/s5_r2_wsj/local/wsj_format_data.sh b/egs/tedlium/s5_r2_wsj/local/wsj_format_data.sh index 4bbfd3d3014..625ddfd4148 100755 --- a/egs/tedlium/s5_r2_wsj/local/wsj_format_data.sh +++ b/egs/tedlium/s5_r2_wsj/local/wsj_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/tedlium/s5_r2_wsj/results.sh b/egs/tedlium/s5_r2_wsj/results.sh index 11b23294d80..945f0913ca1 100755 --- a/egs/tedlium/s5_r2_wsj/results.sh +++ b/egs/tedlium/s5_r2_wsj/results.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash filter_regexp=. [ $# -ge 1 ] && filter_regexp=$1 diff --git a/egs/tedlium/s5_r2_wsj/run.sh b/egs/tedlium/s5_r2_wsj/run.sh index d96201ce012..37b9819369a 100755 --- a/egs/tedlium/s5_r2_wsj/run.sh +++ b/egs/tedlium/s5_r2_wsj/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This recipe uses WSJ models and TED-LIUM audio with un-aligned transcripts. # diff --git a/egs/tedlium/s5_r3/local/chain/compare_wer_general.sh b/egs/tedlium/s5_r3/local/chain/compare_wer_general.sh index c709e351e1e..7701607b1be 100755 --- a/egs/tedlium/s5_r3/local/chain/compare_wer_general.sh +++ b/egs/tedlium/s5_r3/local/chain/compare_wer_general.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer_general.sh exp/chain_cleaned/tdnn_{c,d}_sp diff --git a/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1a.sh b/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1a.sh index 1204ff6ce4c..7e07a19edeb 100755 --- a/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Results diff --git a/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1b.sh b/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1b.sh index 744c964db2f..ba4b30f5fa7 100755 --- a/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_1b.sh is the script which results are presented in the corpus release paper. # It uses 2 to 6 jobs and add proportional-shrink 10. diff --git a/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1c.sh b/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1c.sh index faac365af54..2307f289806 100755 --- a/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1c.sh +++ b/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is copied from tedlium/s5_r2/local/chain/tuning/run_tdnn_1g.sh setup, and it replaces the current run_tdnn_1b.sh script. diff --git a/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1d.sh b/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1d.sh index 7d0e2c9bae4..1248edff841 100755 --- a/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1d.sh +++ b/egs/tedlium/s5_r3/local/chain/tuning/run_tdnn_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1d is like 1c, while it introduces 'apply-cmvn-online' that does # cmn normalization both for i-extractor and TDNN input. diff --git a/egs/tedlium/s5_r3/local/download_data.sh b/egs/tedlium/s5_r3/local/download_data.sh index 0b31a258613..2f319f43be5 100755 --- a/egs/tedlium/s5_r3/local/download_data.sh +++ b/egs/tedlium/s5_r3/local/download_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/tedlium/s5_r3/local/format_lms.sh b/egs/tedlium/s5_r3/local/format_lms.sh index bba5bbd17ec..c16945b4bd9 100755 --- a/egs/tedlium/s5_r3/local/format_lms.sh +++ b/egs/tedlium/s5_r3/local/format_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # Apache 2.0 diff --git a/egs/tedlium/s5_r3/local/nnet3/run_ivector_common.sh b/egs/tedlium/s5_r3/local/nnet3/run_ivector_common.sh index 4afbc9f4da9..efa1c89224c 100755 --- a/egs/tedlium/s5_r3/local/nnet3/run_ivector_common.sh +++ b/egs/tedlium/s5_r3/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/tedlium/s5_r3/local/prepare_data.sh b/egs/tedlium/s5_r3/local/prepare_data.sh index c4b911601e5..3f3346d30ea 100755 --- a/egs/tedlium/s5_r3/local/prepare_data.sh +++ b/egs/tedlium/s5_r3/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/tedlium/s5_r3/local/prepare_dict.sh b/egs/tedlium/s5_r3/local/prepare_dict.sh index 204b3f910e5..aaf299249ce 100755 --- a/egs/tedlium/s5_r3/local/prepare_dict.sh +++ b/egs/tedlium/s5_r3/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/tedlium/s5_r3/local/rnnlm/average_rnnlm.sh b/egs/tedlium/s5_r3/local/rnnlm/average_rnnlm.sh index 61ad07645ff..41d0172bc58 100755 --- a/egs/tedlium/s5_r3/local/rnnlm/average_rnnlm.sh +++ b/egs/tedlium/s5_r3/local/rnnlm/average_rnnlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2018 François Hernandez (Ubiqus) # diff --git a/egs/tedlium/s5_r3/local/rnnlm/prepare_rnnlm_data.sh b/egs/tedlium/s5_r3/local/rnnlm/prepare_rnnlm_data.sh index ba6252450da..cd1a0c9aa93 100755 --- a/egs/tedlium/s5_r3/local/rnnlm/prepare_rnnlm_data.sh +++ b/egs/tedlium/s5_r3/local/rnnlm/prepare_rnnlm_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # To be run from the egs/ directory. diff --git a/egs/tedlium/s5_r3/local/rnnlm/tuning/run_lstm_tdnn_a.sh b/egs/tedlium/s5_r3/local/rnnlm/tuning/run_lstm_tdnn_a.sh index 73a684b6379..f9d8e9014ed 100755 --- a/egs/tedlium/s5_r3/local/rnnlm/tuning/run_lstm_tdnn_a.sh +++ b/egs/tedlium/s5_r3/local/rnnlm/tuning/run_lstm_tdnn_a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/tedlium/s5_r3/local/run_cleanup_segmentation.sh b/egs/tedlium/s5_r3/local/run_cleanup_segmentation.sh index 559d20046dd..ac5f0cb9009 100755 --- a/egs/tedlium/s5_r3/local/run_cleanup_segmentation.sh +++ b/egs/tedlium/s5_r3/local/run_cleanup_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/tedlium/s5_r3/local/score_basic.sh b/egs/tedlium/s5_r3/local/score_basic.sh index 47b57396c64..a8dab49ce68 100755 --- a/egs/tedlium/s5_r3/local/score_basic.sh +++ b/egs/tedlium/s5_r3/local/score_basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/tedlium/s5_r3/local/score_sclite.sh b/egs/tedlium/s5_r3/local/score_sclite.sh index 16c8b30e52f..ab71c909270 100755 --- a/egs/tedlium/s5_r3/local/score_sclite.sh +++ b/egs/tedlium/s5_r3/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright Johns Hopkins University (Author: Daniel Povey) 2012, # Brno University of Technology (Author: Karel Vesely) 2014, diff --git a/egs/tedlium/s5_r3/local/ted_download_lm.sh b/egs/tedlium/s5_r3/local/ted_download_lm.sh index 6118876a0ab..33badbaf8e4 100755 --- a/egs/tedlium/s5_r3/local/ted_download_lm.sh +++ b/egs/tedlium/s5_r3/local/ted_download_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2018 David Snyder # Apache 2.0 diff --git a/egs/tedlium/s5_r3/local/ted_download_rnnlm.sh b/egs/tedlium/s5_r3/local/ted_download_rnnlm.sh index 6cbcaaa85ee..faac9a7ed3c 100755 --- a/egs/tedlium/s5_r3/local/ted_download_rnnlm.sh +++ b/egs/tedlium/s5_r3/local/ted_download_rnnlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2018 François Hernandez # Apache 2.0 diff --git a/egs/tedlium/s5_r3/local/ted_train_lm.sh b/egs/tedlium/s5_r3/local/ted_train_lm.sh index 3c587f63094..663e36a1add 100755 --- a/egs/tedlium/s5_r3/local/ted_train_lm.sh +++ b/egs/tedlium/s5_r3/local/ted_train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/tedlium/s5_r3/results.sh b/egs/tedlium/s5_r3/results.sh index ba04c6c9bac..2bdbeeeba5d 100755 --- a/egs/tedlium/s5_r3/results.sh +++ b/egs/tedlium/s5_r3/results.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # The output of this script (after successfully running ./run.sh) can be found in the RESULTS file. diff --git a/egs/tedlium/s5_r3/run.sh b/egs/tedlium/s5_r3/run.sh index c264c21d728..63d71c8a50a 100755 --- a/egs/tedlium/s5_r3/run.sh +++ b/egs/tedlium/s5_r3/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Based mostly on the Switchboard recipe. The training database is TED-LIUM, # it consists of TED talks with cleaned automatic transcripts: diff --git a/egs/thchs30/s5/local/dae/run_dae.sh b/egs/thchs30/s5/local/dae/run_dae.sh index 8248b867425..83a6183cdae 100755 --- a/egs/thchs30/s5/local/dae/run_dae.sh +++ b/egs/thchs30/s5/local/dae/run_dae.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Tsinghua University (Author: Dong Wang, Xuewei Zhang). Apache 2.0. # 2016 LeSpeech (Author: Xingyu Na). Apache 2.0 diff --git a/egs/thchs30/s5/local/download_and_untar.sh b/egs/thchs30/s5/local/download_and_untar.sh index 655e674dc9b..1f6c77396b3 100755 --- a/egs/thchs30/s5/local/download_and_untar.sh +++ b/egs/thchs30/s5/local/download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (author: Daniel Povey) # Copyright 2016 Tsinghua University (author: Dong Wang) diff --git a/egs/thchs30/s5/local/nnet/run_dnn.sh b/egs/thchs30/s5/local/nnet/run_dnn.sh index ccb915feed1..93d18af5167 100755 --- a/egs/thchs30/s5/local/nnet/run_dnn.sh +++ b/egs/thchs30/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #Copyright 2016 Tsinghua University (Author: Dong Wang, Xuewei Zhang). Apache 2.0. #run from ../.. diff --git a/egs/thchs30/s5/local/thchs-30_data_prep.sh b/egs/thchs30/s5/local/thchs-30_data_prep.sh index 525ee069531..f230aed8d85 100755 --- a/egs/thchs30/s5/local/thchs-30_data_prep.sh +++ b/egs/thchs30/s5/local/thchs-30_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Tsinghua University (Author: Dong Wang, Xuewei Zhang). Apache 2.0. # 2016 LeSpeech (Author: Xingyu Na) diff --git a/egs/thchs30/s5/local/thchs-30_decode.sh b/egs/thchs30/s5/local/thchs-30_decode.sh index f9661f61f21..1f987fe0e36 100755 --- a/egs/thchs30/s5/local/thchs-30_decode.sh +++ b/egs/thchs30/s5/local/thchs-30_decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #Copyright 2016 Tsinghua University (Author: Dong Wang, Xuewei Zhang). Apache 2.0. #decoding wrapper for thchs30 recipe diff --git a/egs/thchs30/s5/run.sh b/egs/thchs30/s5/run.sh index 54eb4586455..5e54ce52c12 100755 --- a/egs/thchs30/s5/run.sh +++ b/egs/thchs30/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh ## You'll want to change cmd.sh to something that will work on your system. ## This relates to the queue. diff --git a/egs/tidigits/s5/local/score.sh b/egs/tidigits/s5/local/score.sh index f38be2d2d20..8072d23b092 100755 --- a/egs/tidigits/s5/local/score.sh +++ b/egs/tidigits/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/tidigits/s5/local/tidigits_data_prep.sh b/egs/tidigits/s5/local/tidigits_data_prep.sh index 9d177fd31a4..f947dc11dcf 100755 --- a/egs/tidigits/s5/local/tidigits_data_prep.sh +++ b/egs/tidigits/s5/local/tidigits_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0. diff --git a/egs/tidigits/s5/local/tidigits_prepare_lang.sh b/egs/tidigits/s5/local/tidigits_prepare_lang.sh index 0bc08ab40a0..ab596a714d3 100755 --- a/egs/tidigits/s5/local/tidigits_prepare_lang.sh +++ b/egs/tidigits/s5/local/tidigits_prepare_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0. diff --git a/egs/tidigits/s5/run.sh b/egs/tidigits/s5/run.sh index 873e2db69fa..3f19ffb4c94 100755 --- a/egs/tidigits/s5/run.sh +++ b/egs/tidigits/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Note: this TIDIGITS setup has not been tuned at all and has some obvious # deficiencies; this has been created as a starting point for a tutorial. diff --git a/egs/timit/s5/local/nnet/run_autoencoder.sh b/egs/timit/s5/local/nnet/run_autoencoder.sh index 1fa9c0772f0..c239df9db38 100755 --- a/egs/timit/s5/local/nnet/run_autoencoder.sh +++ b/egs/timit/s5/local/nnet/run_autoencoder.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./path.sh . ./cmd.sh diff --git a/egs/timit/s5/local/nnet/run_dnn.sh b/egs/timit/s5/local/nnet/run_dnn.sh index beb4f9d962a..90e81865665 100755 --- a/egs/timit/s5/local/nnet/run_dnn.sh +++ b/egs/timit/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/timit/s5/local/score_basic.sh b/egs/timit/s5/local/score_basic.sh index 2dbffe38e80..f665181dbb5 100755 --- a/egs/timit/s5/local/score_basic.sh +++ b/egs/timit/s5/local/score_basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/timit/s5/local/score_combine.sh b/egs/timit/s5/local/score_combine.sh index 835d40f6417..18150253a02 100755 --- a/egs/timit/s5/local/score_combine.sh +++ b/egs/timit/s5/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal diff --git a/egs/timit/s5/local/score_sclite.sh b/egs/timit/s5/local/score_sclite.sh index 97dfbc04e80..8da4ce26cf4 100755 --- a/egs/timit/s5/local/score_sclite.sh +++ b/egs/timit/s5/local/score_sclite.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/timit/s5/local/timit_data_prep.sh b/egs/timit/s5/local/timit_data_prep.sh index be2d6725952..ee18826c8c1 100755 --- a/egs/timit/s5/local/timit_data_prep.sh +++ b/egs/timit/s5/local/timit_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 (Authors: Bagher BabaAli, Daniel Povey, Arnab Ghoshal) # 2014 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/timit/s5/local/timit_format_data.sh b/egs/timit/s5/local/timit_format_data.sh index 4e8816a6799..9e503a38c93 100755 --- a/egs/timit/s5/local/timit_format_data.sh +++ b/egs/timit/s5/local/timit_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/timit/s5/local/timit_prepare_dict.sh b/egs/timit/s5/local/timit_prepare_dict.sh index 7996aab01b2..8829fd17f5b 100755 --- a/egs/timit/s5/local/timit_prepare_dict.sh +++ b/egs/timit/s5/local/timit_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 (Authors: Daniel Povey, Bagher BabaAli) diff --git a/egs/timit/s5/run.sh b/egs/timit/s5/run.sh index 58bd871f60e..40bd591723c 100755 --- a/egs/timit/s5/run.sh +++ b/egs/timit/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2013 Bagher BabaAli, diff --git a/egs/tunisian_msa/s5/local/chain/compare_wer.sh b/egs/tunisian_msa/s5/local/chain/compare_wer.sh index c6a3a91ea69..a553aaf2831 100755 --- a/egs/tunisian_msa/s5/local/chain/compare_wer.sh +++ b/egs/tunisian_msa/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/tunisian_msa/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/tunisian_msa/s5/local/chain/tuning/run_tdnn_1a.sh index ab68ba6fb68..cfb7c46e66b 100755 --- a/egs/tunisian_msa/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/tunisian_msa/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Uses a resnet-style factored TDNN-F model. diff --git a/egs/tunisian_msa/s5/local/nnet3/run_ivector_common.sh b/egs/tunisian_msa/s5/local/nnet3/run_ivector_common.sh index e8ff9a150ea..561eb301d8e 100755 --- a/egs/tunisian_msa/s5/local/nnet3/run_ivector_common.sh +++ b/egs/tunisian_msa/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/tunisian_msa/s5/local/prepare_lm.sh b/egs/tunisian_msa/s5/local/prepare_lm.sh index 4fc50b84d11..37b36f2abf2 100755 --- a/egs/tunisian_msa/s5/local/prepare_lm.sh +++ b/egs/tunisian_msa/s5/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 John Morgan # Apache 2.0. diff --git a/egs/tunisian_msa/s5/local/qcri_buckwalter2utf8.sh b/egs/tunisian_msa/s5/local/qcri_buckwalter2utf8.sh index 0468c04ebd8..76b796c08ca 100755 --- a/egs/tunisian_msa/s5/local/qcri_buckwalter2utf8.sh +++ b/egs/tunisian_msa/s5/local/qcri_buckwalter2utf8.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 John Morgan # Apache 2.0. diff --git a/egs/tunisian_msa/s5/local/subs_download.sh b/egs/tunisian_msa/s5/local/subs_download.sh index 7e46fd255aa..646246bc101 100755 --- a/egs/tunisian_msa/s5/local/subs_download.sh +++ b/egs/tunisian_msa/s5/local/subs_download.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 John Morgan # Apache 2.0. diff --git a/egs/tunisian_msa/s5/local/tamsa_download.sh b/egs/tunisian_msa/s5/local/tamsa_download.sh index 5e4666482ab..2c9d883f84b 100755 --- a/egs/tunisian_msa/s5/local/tamsa_download.sh +++ b/egs/tunisian_msa/s5/local/tamsa_download.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 John Morgan # Apache 2.0. diff --git a/egs/uw3/v1/local/chain/compare_wer.sh b/egs/uw3/v1/local/chain/compare_wer.sh index 1a40523355a..ece324c279e 100755 --- a/egs/uw3/v1/local/chain/compare_wer.sh +++ b/egs/uw3/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/uw3/v1/local/chain/run_cnn_1a.sh b/egs/uw3/v1/local/chain/run_cnn_1a.sh index e3548609da7..ad65dfd389c 100755 --- a/egs/uw3/v1/local/chain/run_cnn_1a.sh +++ b/egs/uw3/v1/local/chain/run_cnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # 2017 Chun Chieh Chang diff --git a/egs/uw3/v1/local/prepare_data.sh b/egs/uw3/v1/local/prepare_data.sh index 47f62e4335a..8f3d4eeb800 100755 --- a/egs/uw3/v1/local/prepare_data.sh +++ b/egs/uw3/v1/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Chun Chieh Chang diff --git a/egs/uw3/v1/local/prepare_dict.sh b/egs/uw3/v1/local/prepare_dict.sh index 72c9b50e5ec..67903fedeff 100755 --- a/egs/uw3/v1/local/prepare_dict.sh +++ b/egs/uw3/v1/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Chun Chieh Chang # 2017 Hossein Hadian diff --git a/egs/uw3/v1/local/score.sh b/egs/uw3/v1/local/score.sh index 3a6aeaa08ad..3f1cfd7c1bf 100755 --- a/egs/uw3/v1/local/score.sh +++ b/egs/uw3/v1/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey, Yenda Trmal) # Apache 2.0 diff --git a/egs/uw3/v1/local/train_lm.sh b/egs/uw3/v1/local/train_lm.sh index 39eb051d273..19567e71a5e 100755 --- a/egs/uw3/v1/local/train_lm.sh +++ b/egs/uw3/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/uw3/v1/run.sh b/egs/uw3/v1/run.sh index 68c51fa4690..632f0f50c0e 100755 --- a/egs/uw3/v1/run.sh +++ b/egs/uw3/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Chun Chieh Chang # 2017 Ashish Arora diff --git a/egs/voxceleb/v1/local/nnet3/xvector/prepare_feats_for_egs.sh b/egs/voxceleb/v1/local/nnet3/xvector/prepare_feats_for_egs.sh index 21efb8e3dad..a899ea7e952 100755 --- a/egs/voxceleb/v1/local/nnet3/xvector/prepare_feats_for_egs.sh +++ b/egs/voxceleb/v1/local/nnet3/xvector/prepare_feats_for_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copied from egs/sre16/v1/local/nnet3/xvector/prepare_feats_for_egs.sh (commit 3ea534070fd2cccd2e4ee21772132230033022ce). # diff --git a/egs/voxceleb/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh b/egs/voxceleb/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh index 0c2c77bb5bd..a7bb0cdd432 100755 --- a/egs/voxceleb/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh +++ b/egs/voxceleb/v1/local/nnet3/xvector/tuning/run_xvector_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 David Snyder # 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/voxceleb/v1/run.sh b/egs/voxceleb/v1/run.sh index 500c05c5db6..3e291728310 100755 --- a/egs/voxceleb/v1/run.sh +++ b/egs/voxceleb/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) # 2017-2018 David Snyder diff --git a/egs/voxceleb/v2/run.sh b/egs/voxceleb/v2/run.sh index 7c70e4a42c1..c333691ebc2 100755 --- a/egs/voxceleb/v2/run.sh +++ b/egs/voxceleb/v2/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (Author: Daniel Garcia-Romero) # 2017 Johns Hopkins University (Author: Daniel Povey) # 2017-2018 David Snyder diff --git a/egs/voxforge/gst_demo/run-simulated.sh b/egs/voxforge/gst_demo/run-simulated.sh index 5e93c70dec4..f23e01cd83b 100755 --- a/egs/voxforge/gst_demo/run-simulated.sh +++ b/egs/voxforge/gst_demo/run-simulated.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2012 Vassil Panayotov # Copyright 2013 Tanel Alumae diff --git a/egs/voxforge/online_demo/run.sh b/egs/voxforge/online_demo/run.sh index 6a7e89991b6..9924d38882a 100755 --- a/egs/voxforge/online_demo/run.sh +++ b/egs/voxforge/online_demo/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # Apache 2.0 diff --git a/egs/voxforge/s5/getdata.sh b/egs/voxforge/s5/getdata.sh index 6651491789e..f976abe689a 100755 --- a/egs/voxforge/s5/getdata.sh +++ b/egs/voxforge/s5/getdata.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # Apache 2.0 diff --git a/egs/voxforge/s5/local/run_mmi_tri2b.sh b/egs/voxforge/s5/local/run_mmi_tri2b.sh index 8a4d03c59c4..22b670c144e 100755 --- a/egs/voxforge/s5/local/run_mmi_tri2b.sh +++ b/egs/voxforge/s5/local/run_mmi_tri2b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/voxforge/s5/local/run_mmi_tri4b.sh b/egs/voxforge/s5/local/run_mmi_tri4b.sh index 52485eceb3a..18e1c625217 100755 --- a/egs/voxforge/s5/local/run_mmi_tri4b.sh +++ b/egs/voxforge/s5/local/run_mmi_tri4b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh steps/make_denlats.sh --nj 30 --sub-split 30 --cmd "$train_cmd" \ diff --git a/egs/voxforge/s5/local/run_sgmm2.sh b/egs/voxforge/s5/local/run_sgmm2.sh index 89da19690a5..951ad06510a 100755 --- a/egs/voxforge/s5/local/run_sgmm2.sh +++ b/egs/voxforge/s5/local/run_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is as run_sgmm.sh but using the "sgmm2" code, which uses "state-clustered tied mixtures" # and the symmetric SGMM, and one or two other small changes (e.g. no updating of M for a few diff --git a/egs/voxforge/s5/local/run_sgmm2x.sh b/egs/voxforge/s5/local/run_sgmm2x.sh index c019bfdf3be..a6a11378078 100755 --- a/egs/voxforge/s5/local/run_sgmm2x.sh +++ b/egs/voxforge/s5/local/run_sgmm2x.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is as run_sgmm2.sh but excluding the "speaker-dependent weights", # so not doing the symmetric SGMM. diff --git a/egs/voxforge/s5/local/score.sh b/egs/voxforge/s5/local/score.sh index 0be7d192282..096db28a832 100755 --- a/egs/voxforge/s5/local/score.sh +++ b/egs/voxforge/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/voxforge/s5/local/voxforge_data_prep.sh b/egs/voxforge/s5/local/voxforge_data_prep.sh index ec2b49b6b6c..b13b513061e 100755 --- a/egs/voxforge/s5/local/voxforge_data_prep.sh +++ b/egs/voxforge/s5/local/voxforge_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # 2014 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/voxforge/s5/local/voxforge_format_data.sh b/egs/voxforge/s5/local/voxforge_format_data.sh index 6abaf6c7656..489cfd6f22e 100755 --- a/egs/voxforge/s5/local/voxforge_format_data.sh +++ b/egs/voxforge/s5/local/voxforge_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # Apache 2.0 diff --git a/egs/voxforge/s5/local/voxforge_map_anonymous.sh b/egs/voxforge/s5/local/voxforge_map_anonymous.sh index 202d8128f6f..8c4955087c2 100755 --- a/egs/voxforge/s5/local/voxforge_map_anonymous.sh +++ b/egs/voxforge/s5/local/voxforge_map_anonymous.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # Apache 2.0 diff --git a/egs/voxforge/s5/local/voxforge_prepare_dict.sh b/egs/voxforge/s5/local/voxforge_prepare_dict.sh index daf4e2326e5..ffd0f882fe7 100755 --- a/egs/voxforge/s5/local/voxforge_prepare_dict.sh +++ b/egs/voxforge/s5/local/voxforge_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # Apache 2.0 diff --git a/egs/voxforge/s5/local/voxforge_prepare_lm.sh b/egs/voxforge/s5/local/voxforge_prepare_lm.sh index 195eb52a46d..a764409b1ce 100755 --- a/egs/voxforge/s5/local/voxforge_prepare_lm.sh +++ b/egs/voxforge/s5/local/voxforge_prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # Apache 2.0 diff --git a/egs/voxforge/s5/local/voxforge_select.sh b/egs/voxforge/s5/local/voxforge_select.sh index a17a17d293e..116bbe74dc9 100755 --- a/egs/voxforge/s5/local/voxforge_select.sh +++ b/egs/voxforge/s5/local/voxforge_select.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # Apache 2.0 diff --git a/egs/voxforge/s5/run.sh b/egs/voxforge/s5/run.sh index 86fc128469e..b244a7295a6 100755 --- a/egs/voxforge/s5/run.sh +++ b/egs/voxforge/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # Apache 2.0 diff --git a/egs/vystadial_cz/online_demo/display_gmm_latgen.sh b/egs/vystadial_cz/online_demo/display_gmm_latgen.sh index 15a25db2717..70550ef37b0 100755 --- a/egs/vystadial_cz/online_demo/display_gmm_latgen.sh +++ b/egs/vystadial_cz/online_demo/display_gmm_latgen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # source the settings . ./path.sh diff --git a/egs/vystadial_cz/online_demo/path.sh b/egs/vystadial_cz/online_demo/path.sh index f54d95d60a8..3683a2b2372 100755 --- a/egs/vystadial_cz/online_demo/path.sh +++ b/egs/vystadial_cz/online_demo/path.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # data location PWD=`pwd` diff --git a/egs/vystadial_cz/online_demo/run_live-demo.sh b/egs/vystadial_cz/online_demo/run_live-demo.sh index d2a330231e5..f1ab140fc47 100755 --- a/egs/vystadial_cz/online_demo/run_live-demo.sh +++ b/egs/vystadial_cz/online_demo/run_live-demo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # source the settings . ./path.sh diff --git a/egs/vystadial_cz/online_demo/run_online-latgen-recogniser.sh b/egs/vystadial_cz/online_demo/run_online-latgen-recogniser.sh index ffe09f6dad6..cad8c130d8b 100755 --- a/egs/vystadial_cz/online_demo/run_online-latgen-recogniser.sh +++ b/egs/vystadial_cz/online_demo/run_online-latgen-recogniser.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # source the settings . ./path.sh diff --git a/egs/vystadial_cz/online_demo/run_pyonline-latgen-recogniser.sh b/egs/vystadial_cz/online_demo/run_pyonline-latgen-recogniser.sh index 7a7705c4121..aae5681ffe0 100755 --- a/egs/vystadial_cz/online_demo/run_pyonline-latgen-recogniser.sh +++ b/egs/vystadial_cz/online_demo/run_pyonline-latgen-recogniser.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # source the settings . ./path.sh diff --git a/egs/vystadial_cz/s5/env_voip_cs.sh b/egs/vystadial_cz/s5/env_voip_cs.sh index 4c0adf5dcb2..39b6bcf350c 100755 --- a/egs/vystadial_cz/s5/env_voip_cs.sh +++ b/egs/vystadial_cz/s5/env_voip_cs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # EVERY_N utterance is used for training # EVERY_N=3 -> we use one third of training data diff --git a/egs/vystadial_cz/s5/local/backup.sh b/egs/vystadial_cz/s5/local/backup.sh index 13a6dd9c2d2..68aa7db960e 100755 --- a/egs/vystadial_cz/s5/local/backup.sh +++ b/egs/vystadial_cz/s5/local/backup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # diff --git a/egs/vystadial_cz/s5/local/create_G.sh b/egs/vystadial_cz/s5/local/create_G.sh index b462b9eab01..02f35cac3e3 100755 --- a/egs/vystadial_cz/s5/local/create_G.sh +++ b/egs/vystadial_cz/s5/local/create_G.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # 2013 Ondrej Platek diff --git a/egs/vystadial_cz/s5/local/create_LMs.sh b/egs/vystadial_cz/s5/local/create_LMs.sh index 0b506a611d0..c8ed8026d7c 100755 --- a/egs/vystadial_cz/s5/local/create_LMs.sh +++ b/egs/vystadial_cz/s5/local/create_LMs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/vystadial_cz/s5/local/create_phone_lists.sh b/egs/vystadial_cz/s5/local/create_phone_lists.sh index 6dcb5a80fed..1b7dd1849b5 100755 --- a/egs/vystadial_cz/s5/local/create_phone_lists.sh +++ b/egs/vystadial_cz/s5/local/create_phone_lists.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/vystadial_cz/s5/local/create_sample.sh b/egs/vystadial_cz/s5/local/create_sample.sh index 80301f2d756..09f49e9f784 100755 --- a/egs/vystadial_cz/s5/local/create_sample.sh +++ b/egs/vystadial_cz/s5/local/create_sample.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # example usage: # ./local/create_sample.sh /ha/projects/vystadial/data/asr/en/voip/ Results/vystadial-sample/ test 100 # note that it suppose there are only *.wav and *.wav.trn and the diff --git a/egs/vystadial_cz/s5/local/data_split.sh b/egs/vystadial_cz/s5/local/data_split.sh index 07d9fca8fa2..a083910d0e8 100755 --- a/egs/vystadial_cz/s5/local/data_split.sh +++ b/egs/vystadial_cz/s5/local/data_split.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/vystadial_cz/s5/local/download_cs_data.sh b/egs/vystadial_cz/s5/local/download_cs_data.sh index 3ce4ff2e25d..8094fe67a83 100755 --- a/egs/vystadial_cz/s5/local/download_cs_data.sh +++ b/egs/vystadial_cz/s5/local/download_cs_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Ondrej Platek Apache 2.0 DATA_ROOT=$1 diff --git a/egs/vystadial_cz/s5/local/export_models.sh b/egs/vystadial_cz/s5/local/export_models.sh index 3226fcd1c8f..ad201f0ffd5 100755 --- a/egs/vystadial_cz/s5/local/export_models.sh +++ b/egs/vystadial_cz/s5/local/export_models.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # diff --git a/egs/vystadial_cz/s5/local/prepare_cs_transcription.sh b/egs/vystadial_cz/s5/local/prepare_cs_transcription.sh index 0aebfb85ce4..e3e48775340 100755 --- a/egs/vystadial_cz/s5/local/prepare_cs_transcription.sh +++ b/egs/vystadial_cz/s5/local/prepare_cs_transcription.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash locdata=$1; shift locdict=$1; shift diff --git a/egs/vystadial_cz/s5/local/save_check.sh b/egs/vystadial_cz/s5/local/save_check.sh index f49db5d5621..50faae52856 100755 --- a/egs/vystadial_cz/s5/local/save_check.sh +++ b/egs/vystadial_cz/s5/local/save_check.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/vystadial_cz/s5/local/score.sh b/egs/vystadial_cz/s5/local/score.sh index d1a3b5878dd..18b63c84916 100755 --- a/egs/vystadial_cz/s5/local/score.sh +++ b/egs/vystadial_cz/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2014 Mff UK, UFAL (modification: Ondrej Platek) # Apache 2.0 diff --git a/egs/vystadial_cz/s5/run.sh b/egs/vystadial_cz/s5/run.sh index 472a55022cb..07c565b4157 100755 --- a/egs/vystadial_cz/s5/run.sh +++ b/egs/vystadial_cz/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Ondrej Platek Apache 2.0 renice 20 $$ diff --git a/egs/vystadial_cz/s5b/local/chain/compare_wer.sh b/egs/vystadial_cz/s5b/local/chain/compare_wer.sh index 14ca1196e64..bd06d985fca 100755 --- a/egs/vystadial_cz/s5b/local/chain/compare_wer.sh +++ b/egs/vystadial_cz/s5b/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copied from egs/mini_librispeech/s5/local/chain/compare_wer.sh (commit 421a062477d732fc02e2109b9d50857ae0f18661) diff --git a/egs/vystadial_cz/s5b/local/chain/tuning/run_tdnn_1a.sh b/egs/vystadial_cz/s5b/local/chain/tuning/run_tdnn_1a.sh index 844ccf80677..216213bcee4 100755 --- a/egs/vystadial_cz/s5b/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/vystadial_cz/s5b/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Adapted from egs/mini_librispeech/s5/local/chain/tuning/run_tdnn_1g.sh diff --git a/egs/vystadial_cz/s5b/local/nnet3/run_ivector_common.sh b/egs/vystadial_cz/s5b/local/nnet3/run_ivector_common.sh index beecd9a46c2..bb3c37b575e 100755 --- a/egs/vystadial_cz/s5b/local/nnet3/run_ivector_common.sh +++ b/egs/vystadial_cz/s5b/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/egs/vystadial_cz/s5b/run.sh b/egs/vystadial_cz/s5b/run.sh index f837b273466..8af3cb63c26 100755 --- a/egs/vystadial_cz/s5b/run.sh +++ b/egs/vystadial_cz/s5b/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Change this location to somewhere where you want to put the data. data=$HOME/vystadial_cz diff --git a/egs/vystadial_en/s5/env_voip_en.sh b/egs/vystadial_en/s5/env_voip_en.sh index 0d334422cb5..3b29ea728df 100755 --- a/egs/vystadial_en/s5/env_voip_en.sh +++ b/egs/vystadial_en/s5/env_voip_en.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # EVERY_N utterance is used for training # EVERY_N=3 -> we use one third of training data diff --git a/egs/vystadial_en/s5/local/backup.sh b/egs/vystadial_en/s5/local/backup.sh index 13a6dd9c2d2..68aa7db960e 100755 --- a/egs/vystadial_en/s5/local/backup.sh +++ b/egs/vystadial_en/s5/local/backup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # diff --git a/egs/vystadial_en/s5/local/create_G.sh b/egs/vystadial_en/s5/local/create_G.sh index b462b9eab01..02f35cac3e3 100755 --- a/egs/vystadial_en/s5/local/create_G.sh +++ b/egs/vystadial_en/s5/local/create_G.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Vassil Panayotov # 2013 Ondrej Platek diff --git a/egs/vystadial_en/s5/local/create_LMs.sh b/egs/vystadial_en/s5/local/create_LMs.sh index 0b506a611d0..c8ed8026d7c 100755 --- a/egs/vystadial_en/s5/local/create_LMs.sh +++ b/egs/vystadial_en/s5/local/create_LMs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/vystadial_en/s5/local/create_phone_lists.sh b/egs/vystadial_en/s5/local/create_phone_lists.sh index 6dcb5a80fed..1b7dd1849b5 100755 --- a/egs/vystadial_en/s5/local/create_phone_lists.sh +++ b/egs/vystadial_en/s5/local/create_phone_lists.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/vystadial_en/s5/local/create_sample.sh b/egs/vystadial_en/s5/local/create_sample.sh index 80301f2d756..09f49e9f784 100755 --- a/egs/vystadial_en/s5/local/create_sample.sh +++ b/egs/vystadial_en/s5/local/create_sample.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # example usage: # ./local/create_sample.sh /ha/projects/vystadial/data/asr/en/voip/ Results/vystadial-sample/ test 100 # note that it suppose there are only *.wav and *.wav.trn and the diff --git a/egs/vystadial_en/s5/local/data_split.sh b/egs/vystadial_en/s5/local/data_split.sh index 07d9fca8fa2..a083910d0e8 100755 --- a/egs/vystadial_en/s5/local/data_split.sh +++ b/egs/vystadial_en/s5/local/data_split.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/vystadial_en/s5/local/download_en_data.sh b/egs/vystadial_en/s5/local/download_en_data.sh index a85b51b0f2a..1f2d07f6eae 100755 --- a/egs/vystadial_en/s5/local/download_en_data.sh +++ b/egs/vystadial_en/s5/local/download_en_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Ondrej Platek Apache 2.0 DATA_ROOT=$1 diff --git a/egs/vystadial_en/s5/local/export_models.sh b/egs/vystadial_en/s5/local/export_models.sh index 3226fcd1c8f..ad201f0ffd5 100755 --- a/egs/vystadial_en/s5/local/export_models.sh +++ b/egs/vystadial_en/s5/local/export_models.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # diff --git a/egs/vystadial_en/s5/local/prepare_en_transcription.sh b/egs/vystadial_en/s5/local/prepare_en_transcription.sh index dbebda23f07..3e6e8d401ec 100755 --- a/egs/vystadial_en/s5/local/prepare_en_transcription.sh +++ b/egs/vystadial_en/s5/local/prepare_en_transcription.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash locdata=$1 locdict=$2 diff --git a/egs/vystadial_en/s5/local/save_check.sh b/egs/vystadial_en/s5/local/save_check.sh index f49db5d5621..50faae52856 100755 --- a/egs/vystadial_en/s5/local/save_check.sh +++ b/egs/vystadial_en/s5/local/save_check.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2013, Ondrej Platek, Ufal MFF UK # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/vystadial_en/s5/local/score.sh b/egs/vystadial_en/s5/local/score.sh index d1a3b5878dd..18b63c84916 100755 --- a/egs/vystadial_en/s5/local/score.sh +++ b/egs/vystadial_en/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2014 Mff UK, UFAL (modification: Ondrej Platek) # Apache 2.0 diff --git a/egs/vystadial_en/s5/run.sh b/egs/vystadial_en/s5/run.sh index ef746a723d9..8de52628857 100755 --- a/egs/vystadial_en/s5/run.sh +++ b/egs/vystadial_en/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Ondrej Platek Apache 2.0 renice 20 $$ diff --git a/egs/wsj/s5/local/append_utterances.sh b/egs/wsj/s5/local/append_utterances.sh index e94c19d5cb7..f1c864b02a4 100755 --- a/egs/wsj/s5/local/append_utterances.sh +++ b/egs/wsj/s5/local/append_utterances.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/wsj/s5/local/chain/compare_wer.sh b/egs/wsj/s5/local/chain/compare_wer.sh index 924e417e55b..d90a856a752 100755 --- a/egs/wsj/s5/local/chain/compare_wer.sh +++ b/egs/wsj/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/wsj/s5/local/chain/e2e/run_tdnn_flatstart.sh b/egs/wsj/s5/local/chain/e2e/run_tdnn_flatstart.sh index 1ddb3c305ac..02ef0c52bee 100755 --- a/egs/wsj/s5/local/chain/e2e/run_tdnn_flatstart.sh +++ b/egs/wsj/s5/local/chain/e2e/run_tdnn_flatstart.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script performs chain training in a flat-start manner diff --git a/egs/wsj/s5/local/chain/e2e/run_tdnn_lstm_flatstart.sh b/egs/wsj/s5/local/chain/e2e/run_tdnn_lstm_flatstart.sh index be82e80d5fe..92ea24cd58e 100755 --- a/egs/wsj/s5/local/chain/e2e/run_tdnn_lstm_flatstart.sh +++ b/egs/wsj/s5/local/chain/e2e/run_tdnn_lstm_flatstart.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This is a TDNN-LSTM recipe that performs chain training in a flat-start manner diff --git a/egs/wsj/s5/local/chain/e2e/tuning/run_tdnnf_flatstart_char1a.sh b/egs/wsj/s5/local/chain/e2e/tuning/run_tdnnf_flatstart_char1a.sh index 4ab0cf58d53..a3ca58096c2 100755 --- a/egs/wsj/s5/local/chain/e2e/tuning/run_tdnnf_flatstart_char1a.sh +++ b/egs/wsj/s5/local/chain/e2e/tuning/run_tdnnf_flatstart_char1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script performs chain training in a flat-start manner diff --git a/egs/wsj/s5/local/chain/e2e/tuning/run_tdnnf_flatstart_char1b.sh b/egs/wsj/s5/local/chain/e2e/tuning/run_tdnnf_flatstart_char1b.sh index 4e66fae8baa..93d21c55ccb 100755 --- a/egs/wsj/s5/local/chain/e2e/tuning/run_tdnnf_flatstart_char1b.sh +++ b/egs/wsj/s5/local/chain/e2e/tuning/run_tdnnf_flatstart_char1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Hossein Hadian # 1b is the same as 1a except it uses a better tree (which is diff --git a/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1a.sh b/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1a.sh index e656b67e529..a04aa51ec94 100755 --- a/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1a.sh +++ b/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This was modified from run_tdnn_1a.sh; it's the diff --git a/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1b.sh b/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1b.sh index 9db76e94430..b69cb1b1f05 100755 --- a/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1b.sh +++ b/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1b is like 1a, but converting the batch-norm layers in all but the CNN diff --git a/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1c.sh b/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1c.sh index 36ec5bb61af..a08bccd9b2a 100755 --- a/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1c.sh +++ b/egs/wsj/s5/local/chain/tuning/run_cnn_tdnn_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1c is as 1b but taking the first layers from the cnn_tdnn_1a setup in mini_librispeech. # A little better than the baseline and overfits more. diff --git a/egs/wsj/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/wsj/s5/local/chain/tuning/run_tdnn_1a.sh index 8d44db6f917..798c455e75e 100755 --- a/egs/wsj/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/wsj/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This was modified from run_tdnn_lstm_1a.sh, making similar diff --git a/egs/wsj/s5/local/chain/tuning/run_tdnn_1b.sh b/egs/wsj/s5/local/chain/tuning/run_tdnn_1b.sh index 544b9b04a0a..05cea76a345 100755 --- a/egs/wsj/s5/local/chain/tuning/run_tdnn_1b.sh +++ b/egs/wsj/s5/local/chain/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1f is as 1a but using --proportional-shrink=60.0 diff --git a/egs/wsj/s5/local/chain/tuning/run_tdnn_1c.sh b/egs/wsj/s5/local/chain/tuning/run_tdnn_1c.sh index b268ed7feda..cbdf22cdde5 100755 --- a/egs/wsj/s5/local/chain/tuning/run_tdnn_1c.sh +++ b/egs/wsj/s5/local/chain/tuning/run_tdnn_1c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1c is as 1b but using batchnorm instead of renorm # 1b is as 1a but using --proportional-shrink=60.0 diff --git a/egs/wsj/s5/local/chain/tuning/run_tdnn_1d.sh b/egs/wsj/s5/local/chain/tuning/run_tdnn_1d.sh index d1a7f9d0663..979b55c6315 100755 --- a/egs/wsj/s5/local/chain/tuning/run_tdnn_1d.sh +++ b/egs/wsj/s5/local/chain/tuning/run_tdnn_1d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1d is as 1c but introducing two non-splicing layers towards the beginning of # the network. diff --git a/egs/wsj/s5/local/chain/tuning/run_tdnn_1e.sh b/egs/wsj/s5/local/chain/tuning/run_tdnn_1e.sh index e20069fbfa1..fe63c6ee2cb 100755 --- a/egs/wsj/s5/local/chain/tuning/run_tdnn_1e.sh +++ b/egs/wsj/s5/local/chain/tuning/run_tdnn_1e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1e is as 1d but increasing num-jobs-final to 8 for greater speed, # adding l2-regularize options and removing proportional-shrink. diff --git a/egs/wsj/s5/local/chain/tuning/run_tdnn_1f.sh b/egs/wsj/s5/local/chain/tuning/run_tdnn_1f.sh index 86df0779841..7517301d0a8 100755 --- a/egs/wsj/s5/local/chain/tuning/run_tdnn_1f.sh +++ b/egs/wsj/s5/local/chain/tuning/run_tdnn_1f.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1f is as 1e but a re-tuned model with fewer parameters and a bottleneck at the # end, and no chain l2-regularize diff --git a/egs/wsj/s5/local/chain/tuning/run_tdnn_1g.sh b/egs/wsj/s5/local/chain/tuning/run_tdnn_1g.sh index 9927a0c28d3..d52efb7a5ac 100755 --- a/egs/wsj/s5/local/chain/tuning/run_tdnn_1g.sh +++ b/egs/wsj/s5/local/chain/tuning/run_tdnn_1g.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1g is like 1f but upgrading to a "resnet-style TDNN-F model", i.e. # with bypass resnet connections, and re-tuned. diff --git a/egs/wsj/s5/local/chain/tuning/run_tdnn_1h.sh b/egs/wsj/s5/local/chain/tuning/run_tdnn_1h.sh index 2e014eed970..53ef17ae299 100755 --- a/egs/wsj/s5/local/chain/tuning/run_tdnn_1h.sh +++ b/egs/wsj/s5/local/chain/tuning/run_tdnn_1h.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1h is as 1g but replaces the LDA layer at the input of the # network with traditional delta and delta-delta features. diff --git a/egs/wsj/s5/local/chain/tuning/run_tdnn_1i.sh b/egs/wsj/s5/local/chain/tuning/run_tdnn_1i.sh index e1bdc24b5d8..95f095d8f74 100755 --- a/egs/wsj/s5/local/chain/tuning/run_tdnn_1i.sh +++ b/egs/wsj/s5/local/chain/tuning/run_tdnn_1i.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1i is like 1h, while it introduces 'apply-cmvn-online' that does # cmn normalization both for i-extractor and TDNN input. diff --git a/egs/wsj/s5/local/chain/tuning/run_tdnn_lstm_1a.sh b/egs/wsj/s5/local/chain/tuning/run_tdnn_lstm_1a.sh index 6e4f220c1f2..1eb1091c25c 100755 --- a/egs/wsj/s5/local/chain/tuning/run_tdnn_lstm_1a.sh +++ b/egs/wsj/s5/local/chain/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a TDNN+LSTM chain system. diff --git a/egs/wsj/s5/local/chain/tuning/run_tdnn_lstm_1b.sh b/egs/wsj/s5/local/chain/tuning/run_tdnn_lstm_1b.sh index 2d113e58a93..bc8a658b512 100755 --- a/egs/wsj/s5/local/chain/tuning/run_tdnn_lstm_1b.sh +++ b/egs/wsj/s5/local/chain/tuning/run_tdnn_lstm_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1b is like 1a but instead of having 3 fast-lstm-layers, having one diff --git a/egs/wsj/s5/local/cstr_wsj_data_prep.sh b/egs/wsj/s5/local/cstr_wsj_data_prep.sh index 755edda9fed..b91b00c3c9e 100755 --- a/egs/wsj/s5/local/cstr_wsj_data_prep.sh +++ b/egs/wsj/s5/local/cstr_wsj_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/wsj/s5/local/cstr_wsj_extend_dict.sh b/egs/wsj/s5/local/cstr_wsj_extend_dict.sh index 8004db1d924..c8d643cf5ac 100755 --- a/egs/wsj/s5/local/cstr_wsj_extend_dict.sh +++ b/egs/wsj/s5/local/cstr_wsj_extend_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script builds a larger word-list and dictionary # than used for the LMs supplied with the WSJ corpus. diff --git a/egs/wsj/s5/local/e2e/run_end2end_char.sh b/egs/wsj/s5/local/e2e/run_end2end_char.sh index ff44802f2be..fcb428bf0b8 100755 --- a/egs/wsj/s5/local/e2e/run_end2end_char.sh +++ b/egs/wsj/s5/local/e2e/run_end2end_char.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This top-level script demonstrates character-based end-to-end LF-MMI training diff --git a/egs/wsj/s5/local/e2e/run_end2end_phone.sh b/egs/wsj/s5/local/e2e/run_end2end_phone.sh index 3d33a4a57b5..10ba58623d5 100755 --- a/egs/wsj/s5/local/e2e/run_end2end_phone.sh +++ b/egs/wsj/s5/local/e2e/run_end2end_phone.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This top-level script demonstrates end-to-end LF-MMI training (specifically diff --git a/egs/wsj/s5/local/generate_example_kws.sh b/egs/wsj/s5/local/generate_example_kws.sh index 2c849438192..ecba20efbf1 100755 --- a/egs/wsj/s5/local/generate_example_kws.sh +++ b/egs/wsj/s5/local/generate_example_kws.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/wsj/s5/local/kws_data_prep.sh b/egs/wsj/s5/local/kws_data_prep.sh index 5222a88c9ef..fecfda52473 100755 --- a/egs/wsj/s5/local/kws_data_prep.sh +++ b/egs/wsj/s5/local/kws_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0. diff --git a/egs/wsj/s5/local/nnet/run_dnn.sh b/egs/wsj/s5/local/nnet/run_dnn.sh index 89db68340f4..dcee1259763 100755 --- a/egs/wsj/s5/local/nnet/run_dnn.sh +++ b/egs/wsj/s5/local/nnet/run_dnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 diff --git a/egs/wsj/s5/local/nnet2/run_5b.sh b/egs/wsj/s5/local/nnet2/run_5b.sh index ae45d73d8ce..14c7cbf12fd 100755 --- a/egs/wsj/s5/local/nnet2/run_5b.sh +++ b/egs/wsj/s5/local/nnet2/run_5b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 diff --git a/egs/wsj/s5/local/nnet2/run_5b_gpu.sh b/egs/wsj/s5/local/nnet2/run_5b_gpu.sh index c1faf3e5d4f..2f1bc330d71 100755 --- a/egs/wsj/s5/local/nnet2/run_5b_gpu.sh +++ b/egs/wsj/s5/local/nnet2/run_5b_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 diff --git a/egs/wsj/s5/local/nnet2/run_5c.sh b/egs/wsj/s5/local/nnet2/run_5c.sh index e3fb48f2ff5..bfe361e99af 100755 --- a/egs/wsj/s5/local/nnet2/run_5c.sh +++ b/egs/wsj/s5/local/nnet2/run_5c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is neural net training on top of adapted 40-dimensional features. # diff --git a/egs/wsj/s5/local/nnet2/run_5c2_gpu.sh b/egs/wsj/s5/local/nnet2/run_5c2_gpu.sh index 3d4b070ceda..be4768fbafb 100755 --- a/egs/wsj/s5/local/nnet2/run_5c2_gpu.sh +++ b/egs/wsj/s5/local/nnet2/run_5c2_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is neural net training on top of adapted 40-dimensional features. # This is an alternative to the run_5c_gpu.sh that will train faster if you diff --git a/egs/wsj/s5/local/nnet2/run_5d.sh b/egs/wsj/s5/local/nnet2/run_5d.sh index 131a380ec87..10d393fe61b 100755 --- a/egs/wsj/s5/local/nnet2/run_5d.sh +++ b/egs/wsj/s5/local/nnet2/run_5d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is pnorm neural net training on top of adapted 40-dimensional features. diff --git a/egs/wsj/s5/local/nnet2/run_5e_gpu.sh b/egs/wsj/s5/local/nnet2/run_5e_gpu.sh index b727acb905e..0162c7d877a 100755 --- a/egs/wsj/s5/local/nnet2/run_5e_gpu.sh +++ b/egs/wsj/s5/local/nnet2/run_5e_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is an ensemble training recipe using pnorm neural nets on top of adapted 40-dimensional features. ensemble_size=4 diff --git a/egs/wsj/s5/local/nnet2/run_6c_gpu.sh b/egs/wsj/s5/local/nnet2/run_6c_gpu.sh index ddd2d3e2a86..464f72da070 100755 --- a/egs/wsj/s5/local/nnet2/run_6c_gpu.sh +++ b/egs/wsj/s5/local/nnet2/run_6c_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates discriminative training of neural nets. It's on top diff --git a/egs/wsj/s5/local/nnet2/run_6d.sh b/egs/wsj/s5/local/nnet2/run_6d.sh index c208404e7e5..544fff0c132 100755 --- a/egs/wsj/s5/local/nnet2/run_6d.sh +++ b/egs/wsj/s5/local/nnet2/run_6d.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates discriminative training of p-norm neural nets. It's on top diff --git a/egs/wsj/s5/local/nnet2/run_6d_gpu.sh b/egs/wsj/s5/local/nnet2/run_6d_gpu.sh index 3ee2ecb53a3..e5dcc8bb073 100755 --- a/egs/wsj/s5/local/nnet2/run_6d_gpu.sh +++ b/egs/wsj/s5/local/nnet2/run_6d_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script demonstrates discriminative training of p-norm neural nets. It's on top diff --git a/egs/wsj/s5/local/nnet2/run_bnf.sh b/egs/wsj/s5/local/nnet2/run_bnf.sh index 245bb1c0bcf..2091531bdcc 100644 --- a/egs/wsj/s5/local/nnet2/run_bnf.sh +++ b/egs/wsj/s5/local/nnet2/run_bnf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Note: In order to run BNF, run run_bnf.sh . ./path.sh diff --git a/egs/wsj/s5/local/nnet2/run_pnorm_bnf.sh b/egs/wsj/s5/local/nnet2/run_pnorm_bnf.sh index 861e993774b..56fd1426200 100755 --- a/egs/wsj/s5/local/nnet2/run_pnorm_bnf.sh +++ b/egs/wsj/s5/local/nnet2/run_pnorm_bnf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Note: In order to run BNF, run run_bnf.sh use_gpu=true diff --git a/egs/wsj/s5/local/nnet3/compare_wer.sh b/egs/wsj/s5/local/nnet3/compare_wer.sh index 7a2fbd8a123..605c870a264 100755 --- a/egs/wsj/s5/local/nnet3/compare_wer.sh +++ b/egs/wsj/s5/local/nnet3/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/nnet3/compare_wer.sh exp/nnet3/tdnn_{c,d}_sp diff --git a/egs/wsj/s5/local/nnet3/run_ivector_common.sh b/egs/wsj/s5/local/nnet3/run_ivector_common.sh index f7f51a45a29..1e01204dfb6 100755 --- a/egs/wsj/s5/local/nnet3/run_ivector_common.sh +++ b/egs/wsj/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/wsj/s5/local/nnet3/run_tdnn_discriminative.sh b/egs/wsj/s5/local/nnet3/run_tdnn_discriminative.sh index 91c6be5fc22..b6eb26015a6 100755 --- a/egs/wsj/s5/local/nnet3/run_tdnn_discriminative.sh +++ b/egs/wsj/s5/local/nnet3/run_tdnn_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -o pipefail set -e diff --git a/egs/wsj/s5/local/nnet3/tuning/run_tdnn_1a.sh b/egs/wsj/s5/local/nnet3/tuning/run_tdnn_1a.sh index 3d3adf16ae8..0465e5b9487 100755 --- a/egs/wsj/s5/local/nnet3/tuning/run_tdnn_1a.sh +++ b/egs/wsj/s5/local/nnet3/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is the standard "tdnn" system, built in nnet3 with xconfigs. diff --git a/egs/wsj/s5/local/nnet3/tuning/run_tdnn_1b.sh b/egs/wsj/s5/local/nnet3/tuning/run_tdnn_1b.sh index 82efcda2173..03c64517bf6 100755 --- a/egs/wsj/s5/local/nnet3/tuning/run_tdnn_1b.sh +++ b/egs/wsj/s5/local/nnet3/tuning/run_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 1b is like 1a, but using a different splicing setup; the difference # is like the difference from diff --git a/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh b/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh index 6369fdc3fed..e33e90648ca 100755 --- a/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh +++ b/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_lstm_1a.sh is a TDNN+LSTM system. Compare with the TDNN diff --git a/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_1a_disc.sh b/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_1a_disc.sh index 6b1f98f04e7..432dfdfcc73 100755 --- a/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_1a_disc.sh +++ b/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_1a_disc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ### This script is not tested ### # This script does discriminative training on top of CE nnet3 system. diff --git a/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_lfr_1a.sh b/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_lfr_1a.sh index f2a4ed37ae5..e1b2ddf9189 100755 --- a/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_lfr_1a.sh +++ b/egs/wsj/s5/local/nnet3/tuning/run_tdnn_lstm_lfr_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run_tdnn_lstm_lfr_1a.sh is modified from the same named script diff --git a/egs/wsj/s5/local/online/run_nnet2.sh b/egs/wsj/s5/local/online/run_nnet2.sh index 2531e24fd2d..51a60956f79 100755 --- a/egs/wsj/s5/local/online/run_nnet2.sh +++ b/egs/wsj/s5/local/online/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is our online-nnet2 build. it's a "multi-splice" system (i.e. we have # splicing at various layers), with p-norm nonlinearities. We use the "accel2" diff --git a/egs/wsj/s5/local/online/run_nnet2_baseline.sh b/egs/wsj/s5/local/online/run_nnet2_baseline.sh index 6175776c6af..4d99dab8f61 100755 --- a/egs/wsj/s5/local/online/run_nnet2_baseline.sh +++ b/egs/wsj/s5/local/online/run_nnet2_baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/wsj/s5/local/online/run_nnet2_common.sh b/egs/wsj/s5/local/online/run_nnet2_common.sh index 9e64bd703d7..f1beac24199 100755 --- a/egs/wsj/s5/local/online/run_nnet2_common.sh +++ b/egs/wsj/s5/local/online/run_nnet2_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is called from scripts like run_nnet2.sh; it does # the common stages of the build. diff --git a/egs/wsj/s5/local/online/run_nnet2_discriminative.sh b/egs/wsj/s5/local/online/run_nnet2_discriminative.sh index 612a2df78e5..3d2dbc41933 100755 --- a/egs/wsj/s5/local/online/run_nnet2_discriminative.sh +++ b/egs/wsj/s5/local/online/run_nnet2_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This is discriminative training, to be run after run_nnet2.sh. diff --git a/egs/wsj/s5/local/online/run_nnet2_perturb_speed.sh b/egs/wsj/s5/local/online/run_nnet2_perturb_speed.sh index bfc28a4802b..ec609045767 100755 --- a/egs/wsj/s5/local/online/run_nnet2_perturb_speed.sh +++ b/egs/wsj/s5/local/online/run_nnet2_perturb_speed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (author: Daniel Povey) # 2014 Tom Ko # Apache 2.0 diff --git a/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_1a.sh b/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_1a.sh index 421da755f03..30e573fc02d 100755 --- a/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_1a.sh +++ b/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_1b.sh b/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_1b.sh index 8fe50b699cf..e35d0fd7fce 100755 --- a/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_1b.sh +++ b/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh b/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh index d3b7a97e980..f7e15f6ca62 100755 --- a/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh +++ b/egs/wsj/s5/local/rnnlm/tuning/run_lstm_tdnn_bs_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2017 Hainan Xu diff --git a/egs/wsj/s5/local/rnnlm/tuning/run_tdnn_a.sh b/egs/wsj/s5/local/rnnlm/tuning/run_tdnn_a.sh index c6eec2f98ec..efc05aebe0a 100755 --- a/egs/wsj/s5/local/rnnlm/tuning/run_tdnn_a.sh +++ b/egs/wsj/s5/local/rnnlm/tuning/run_tdnn_a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2015 Guoguo Chen diff --git a/egs/wsj/s5/local/run_basis_fmllr.sh b/egs/wsj/s5/local/run_basis_fmllr.sh index 93c00246b25..590ec0e9f13 100755 --- a/egs/wsj/s5/local/run_basis_fmllr.sh +++ b/egs/wsj/s5/local/run_basis_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash lang_suffix= diff --git a/egs/wsj/s5/local/run_bnf.sh b/egs/wsj/s5/local/run_bnf.sh index 4bd2f6f8399..293e58deb60 100644 --- a/egs/wsj/s5/local/run_bnf.sh +++ b/egs/wsj/s5/local/run_bnf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Note: In order to run BNF, run run_bnf.sh . ./path.sh diff --git a/egs/wsj/s5/local/run_bnf_sgmm.sh b/egs/wsj/s5/local/run_bnf_sgmm.sh index 8e2aadf214b..afabe6cc43f 100644 --- a/egs/wsj/s5/local/run_bnf_sgmm.sh +++ b/egs/wsj/s5/local/run_bnf_sgmm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script builds the SGMM system on top of the kaldi internal bottleneck features. diff --git a/egs/wsj/s5/local/run_deltas.sh b/egs/wsj/s5/local/run_deltas.sh index aca869e63fb..cb0ef4de096 100644 --- a/egs/wsj/s5/local/run_deltas.sh +++ b/egs/wsj/s5/local/run_deltas.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/local/run_gender_dep.sh b/egs/wsj/s5/local/run_gender_dep.sh index 050474d70b6..5f20194f0fc 100755 --- a/egs/wsj/s5/local/run_gender_dep.sh +++ b/egs/wsj/s5/local/run_gender_dep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is not really finished, all it does is train a model with its # means adapted to the female data, to demonstrate MAP adaptation. To have real diff --git a/egs/wsj/s5/local/run_mmi_tri4b.sh b/egs/wsj/s5/local/run_mmi_tri4b.sh index 2f05eddd884..6639b7cfa9c 100755 --- a/egs/wsj/s5/local/run_mmi_tri4b.sh +++ b/egs/wsj/s5/local/run_mmi_tri4b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh steps/make_denlats.sh --nj 30 --sub-split 30 --cmd "$train_cmd" \ diff --git a/egs/wsj/s5/local/run_nnet2.sh b/egs/wsj/s5/local/run_nnet2.sh index 728356e3ec7..a3f96840c2b 100755 --- a/egs/wsj/s5/local/run_nnet2.sh +++ b/egs/wsj/s5/local/run_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh diff --git a/egs/wsj/s5/local/run_raw_fmllr.sh b/egs/wsj/s5/local/run_raw_fmllr.sh index 69f716b80f5..2771543cf61 100644 --- a/egs/wsj/s5/local/run_raw_fmllr.sh +++ b/egs/wsj/s5/local/run_raw_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash steps/align_raw_fmllr.sh --nj 10 --cmd "$train_cmd" --use-graphs true \ diff --git a/egs/wsj/s5/local/run_rnnlms.sh b/egs/wsj/s5/local/run_rnnlms.sh index 6f2be505ec1..50476be06f3 100755 --- a/egs/wsj/s5/local/run_rnnlms.sh +++ b/egs/wsj/s5/local/run_rnnlms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./cmd.sh . ./path.sh diff --git a/egs/wsj/s5/local/run_segmentation.sh b/egs/wsj/s5/local/run_segmentation.sh index 3c0b8e5b0a8..6334e78898d 100755 --- a/egs/wsj/s5/local/run_segmentation.sh +++ b/egs/wsj/s5/local/run_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/wsj/s5/local/run_segmentation_long_utts.sh b/egs/wsj/s5/local/run_segmentation_long_utts.sh index b2f4362edcb..1cfded97d47 100644 --- a/egs/wsj/s5/local/run_segmentation_long_utts.sh +++ b/egs/wsj/s5/local/run_segmentation_long_utts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # Apache 2.0 diff --git a/egs/wsj/s5/local/run_sgmm2.sh b/egs/wsj/s5/local/run_sgmm2.sh index f391797ee58..34132403434 100755 --- a/egs/wsj/s5/local/run_sgmm2.sh +++ b/egs/wsj/s5/local/run_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is invoked from ../run.sh # It contains some SGMM-related scripts that I am breaking out of the main run.sh for clarity. diff --git a/egs/wsj/s5/local/run_vtln.sh b/egs/wsj/s5/local/run_vtln.sh index 1a341fab142..bd54b6f9b31 100755 --- a/egs/wsj/s5/local/run_vtln.sh +++ b/egs/wsj/s5/local/run_vtln.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash lang_suffix= diff --git a/egs/wsj/s5/local/run_vtln2.sh b/egs/wsj/s5/local/run_vtln2.sh index a1ec15978bc..581afb8e058 100755 --- a/egs/wsj/s5/local/run_vtln2.sh +++ b/egs/wsj/s5/local/run_vtln2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash lang_suffix= diff --git a/egs/wsj/s5/local/score_combine.sh b/egs/wsj/s5/local/score_combine.sh index 65caab06ecc..c4d3c13886a 100755 --- a/egs/wsj/s5/local/score_combine.sh +++ b/egs/wsj/s5/local/score_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Arnab Ghoshal diff --git a/egs/wsj/s5/local/score_mbr.sh b/egs/wsj/s5/local/score_mbr.sh index 04b84ccce5a..8c752368906 100755 --- a/egs/wsj/s5/local/score_mbr.sh +++ b/egs/wsj/s5/local/score_mbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script for minimum bayes risk decoding. diff --git a/egs/wsj/s5/local/wsj_data_prep.sh b/egs/wsj/s5/local/wsj_data_prep.sh index 04f2f6390d8..844fb449949 100755 --- a/egs/wsj/s5/local/wsj_data_prep.sh +++ b/egs/wsj/s5/local/wsj_data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2009-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # Apache 2.0. diff --git a/egs/wsj/s5/local/wsj_extend_char_dict.sh b/egs/wsj/s5/local/wsj_extend_char_dict.sh index 3419fdc10e5..c7c4882acee 100755 --- a/egs/wsj/s5/local/wsj_extend_char_dict.sh +++ b/egs/wsj/s5/local/wsj_extend_char_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script extends the word list by including OOVs from the training diff --git a/egs/wsj/s5/local/wsj_extend_dict.sh b/egs/wsj/s5/local/wsj_extend_dict.sh index c2b11b8dc8b..dc6ac81423d 100755 --- a/egs/wsj/s5/local/wsj_extend_dict.sh +++ b/egs/wsj/s5/local/wsj_extend_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script builds a larger word-list and dictionary # than used for the LMs supplied with the WSJ corpus. diff --git a/egs/wsj/s5/local/wsj_format_data.sh b/egs/wsj/s5/local/wsj_format_data.sh index 897b904db83..d20b5272084 100755 --- a/egs/wsj/s5/local/wsj_format_data.sh +++ b/egs/wsj/s5/local/wsj_format_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey) # 2015 Guoguo Chen diff --git a/egs/wsj/s5/local/wsj_format_local_lms.sh b/egs/wsj/s5/local/wsj_format_local_lms.sh index c415a806fff..c91aa1257e5 100755 --- a/egs/wsj/s5/local/wsj_format_local_lms.sh +++ b/egs/wsj/s5/local/wsj_format_local_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012 # Guoguo Chen 2014 diff --git a/egs/wsj/s5/local/wsj_prepare_char_dict.sh b/egs/wsj/s5/local/wsj_prepare_char_dict.sh index d2ff3afd851..a44e7b91dca 100755 --- a/egs/wsj/s5/local/wsj_prepare_char_dict.sh +++ b/egs/wsj/s5/local/wsj_prepare_char_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian diff --git a/egs/wsj/s5/local/wsj_prepare_dict.sh b/egs/wsj/s5/local/wsj_prepare_dict.sh index c644f91bc6e..8ae8233878f 100755 --- a/egs/wsj/s5/local/wsj_prepare_dict.sh +++ b/egs/wsj/s5/local/wsj_prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation # 2012-2014 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/wsj/s5/local/wsj_train_lms.sh b/egs/wsj/s5/local/wsj_train_lms.sh index 0807210be18..a5aaf415e44 100755 --- a/egs/wsj/s5/local/wsj_train_lms.sh +++ b/egs/wsj/s5/local/wsj_train_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script trains LMs on the WSJ LM-training data. # It requires that you have already run wsj_extend_dict.sh, diff --git a/egs/wsj/s5/local/wsj_train_rnnlms.sh b/egs/wsj/s5/local/wsj_train_rnnlms.sh index 6a7c08ed55a..a1be5f0bae2 100755 --- a/egs/wsj/s5/local/wsj_train_rnnlms.sh +++ b/egs/wsj/s5/local/wsj_train_rnnlms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (author: Daniel Povey) Tony Robinson # 2015 Guoguo Chen diff --git a/egs/wsj/s5/run.sh b/egs/wsj/s5/run.sh index 3f7737240a2..c4e9326a374 100755 --- a/egs/wsj/s5/run.sh +++ b/egs/wsj/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash stage=0 train=true # set to false to disable the training-related scripts diff --git a/egs/wsj/s5/steps/align_basis_fmllr.sh b/egs/wsj/s5/steps/align_basis_fmllr.sh index e5510c5ab7e..c81e41f384d 100755 --- a/egs/wsj/s5/steps/align_basis_fmllr.sh +++ b/egs/wsj/s5/steps/align_basis_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Copyright 2013 GoVivace Inc (Author: Nagendra Goel) # Apache 2.0 diff --git a/egs/wsj/s5/steps/align_basis_fmllr_lats.sh b/egs/wsj/s5/steps/align_basis_fmllr_lats.sh index 426168496cc..357d21c2c84 100755 --- a/egs/wsj/s5/steps/align_basis_fmllr_lats.sh +++ b/egs/wsj/s5/steps/align_basis_fmllr_lats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/align_fmllr.sh b/egs/wsj/s5/steps/align_fmllr.sh index 327978e680f..0d361d10d89 100755 --- a/egs/wsj/s5/steps/align_fmllr.sh +++ b/egs/wsj/s5/steps/align_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/align_fmllr_lats.sh b/egs/wsj/s5/steps/align_fmllr_lats.sh index b331b40d73c..0d141132b00 100755 --- a/egs/wsj/s5/steps/align_fmllr_lats.sh +++ b/egs/wsj/s5/steps/align_fmllr_lats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/align_lvtln.sh b/egs/wsj/s5/steps/align_lvtln.sh index 9efba2b9096..86525342f86 100755 --- a/egs/wsj/s5/steps/align_lvtln.sh +++ b/egs/wsj/s5/steps/align_lvtln.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar diff --git a/egs/wsj/s5/steps/align_raw_fmllr.sh b/egs/wsj/s5/steps/align_raw_fmllr.sh index 639dde559a4..13e4ed66cf3 100755 --- a/egs/wsj/s5/steps/align_raw_fmllr.sh +++ b/egs/wsj/s5/steps/align_raw_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/align_sgmm2.sh b/egs/wsj/s5/steps/align_sgmm2.sh index d2f829f7e3e..e569a7655d8 100755 --- a/egs/wsj/s5/steps/align_sgmm2.sh +++ b/egs/wsj/s5/steps/align_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/align_si.sh b/egs/wsj/s5/steps/align_si.sh index 0bfebe6b0fc..347f310914b 100755 --- a/egs/wsj/s5/steps/align_si.sh +++ b/egs/wsj/s5/steps/align_si.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/best_path_weights.sh b/egs/wsj/s5/steps/best_path_weights.sh index d34d574173f..1176f981a96 100755 --- a/egs/wsj/s5/steps/best_path_weights.sh +++ b/egs/wsj/s5/steps/best_path_weights.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014-17 Vimal Manohar diff --git a/egs/wsj/s5/steps/cleanup/clean_and_segment_data.sh b/egs/wsj/s5/steps/cleanup/clean_and_segment_data.sh index fb386fa244f..a4479b2a320 100755 --- a/egs/wsj/s5/steps/cleanup/clean_and_segment_data.sh +++ b/egs/wsj/s5/steps/cleanup/clean_and_segment_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/wsj/s5/steps/cleanup/clean_and_segment_data_nnet3.sh b/egs/wsj/s5/steps/cleanup/clean_and_segment_data_nnet3.sh index cc8da298d2f..fabec85353e 100755 --- a/egs/wsj/s5/steps/cleanup/clean_and_segment_data_nnet3.sh +++ b/egs/wsj/s5/steps/cleanup/clean_and_segment_data_nnet3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/wsj/s5/steps/cleanup/debug_lexicon.sh b/egs/wsj/s5/steps/cleanup/debug_lexicon.sh index eca807ad247..183875eab0e 100755 --- a/egs/wsj/s5/steps/cleanup/debug_lexicon.sh +++ b/egs/wsj/s5/steps/cleanup/debug_lexicon.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/cleanup/decode_fmllr_segmentation.sh b/egs/wsj/s5/steps/cleanup/decode_fmllr_segmentation.sh index d1297ccd836..b0e2fa16fd6 100755 --- a/egs/wsj/s5/steps/cleanup/decode_fmllr_segmentation.sh +++ b/egs/wsj/s5/steps/cleanup/decode_fmllr_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen, 2015 GoVivace Inc. (Nagendra Goel) # 2017 Vimal Manohar diff --git a/egs/wsj/s5/steps/cleanup/decode_segmentation.sh b/egs/wsj/s5/steps/cleanup/decode_segmentation.sh index 628741e1e7c..fa4972ab898 100755 --- a/egs/wsj/s5/steps/cleanup/decode_segmentation.sh +++ b/egs/wsj/s5/steps/cleanup/decode_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen, 2015 GoVivace Inc. (Nagendra Goel) # 2017 Vimal Manohar diff --git a/egs/wsj/s5/steps/cleanup/decode_segmentation_nnet3.sh b/egs/wsj/s5/steps/cleanup/decode_segmentation_nnet3.sh index 02a9d87d26b..3fdeb5cf664 100755 --- a/egs/wsj/s5/steps/cleanup/decode_segmentation_nnet3.sh +++ b/egs/wsj/s5/steps/cleanup/decode_segmentation_nnet3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen, 2015 GoVivace Inc. (Nagendra Goel) # 2017 Vimal Manohar diff --git a/egs/wsj/s5/steps/cleanup/find_bad_utts.sh b/egs/wsj/s5/steps/cleanup/find_bad_utts.sh index 9bb67abeff9..b84e0f02ed0 100755 --- a/egs/wsj/s5/steps/cleanup/find_bad_utts.sh +++ b/egs/wsj/s5/steps/cleanup/find_bad_utts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/cleanup/find_bad_utts_nnet.sh b/egs/wsj/s5/steps/cleanup/find_bad_utts_nnet.sh index b18efe35a3c..f92149a3bb6 100755 --- a/egs/wsj/s5/steps/cleanup/find_bad_utts_nnet.sh +++ b/egs/wsj/s5/steps/cleanup/find_bad_utts_nnet.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey) # 2016 Api.ai (Author: Ilya Platonov) # Apache 2.0 diff --git a/egs/wsj/s5/steps/cleanup/make_biased_lm_graphs.sh b/egs/wsj/s5/steps/cleanup/make_biased_lm_graphs.sh index d957ce4d5c7..c1ed3747ce6 100755 --- a/egs/wsj/s5/steps/cleanup/make_biased_lm_graphs.sh +++ b/egs/wsj/s5/steps/cleanup/make_biased_lm_graphs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2016 Johns Hopkins University (Author: Daniel Povey) # 2016 Vimal Manohar # Apache 2.0 diff --git a/egs/wsj/s5/steps/cleanup/make_segmentation_data_dir.sh b/egs/wsj/s5/steps/cleanup/make_segmentation_data_dir.sh index 62e8dc7de45..30af36255d9 100755 --- a/egs/wsj/s5/steps/cleanup/make_segmentation_data_dir.sh +++ b/egs/wsj/s5/steps/cleanup/make_segmentation_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/wsj/s5/steps/cleanup/make_segmentation_graph.sh b/egs/wsj/s5/steps/cleanup/make_segmentation_graph.sh index 6705ab6db54..3d60cad3325 100755 --- a/egs/wsj/s5/steps/cleanup/make_segmentation_graph.sh +++ b/egs/wsj/s5/steps/cleanup/make_segmentation_graph.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/wsj/s5/steps/cleanup/make_utterance_graph.sh b/egs/wsj/s5/steps/cleanup/make_utterance_graph.sh index 277c5a2da1c..0c55d4afd6e 100755 --- a/egs/wsj/s5/steps/cleanup/make_utterance_graph.sh +++ b/egs/wsj/s5/steps/cleanup/make_utterance_graph.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/wsj/s5/steps/cleanup/segment_long_utterances.sh b/egs/wsj/s5/steps/cleanup/segment_long_utterances.sh index 92c575d0740..5871f5a5a4a 100755 --- a/egs/wsj/s5/steps/cleanup/segment_long_utterances.sh +++ b/egs/wsj/s5/steps/cleanup/segment_long_utterances.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # 2016 Vimal Manohar diff --git a/egs/wsj/s5/steps/cleanup/segment_long_utterances_nnet3.sh b/egs/wsj/s5/steps/cleanup/segment_long_utterances_nnet3.sh index f0df1e7730c..05d34804906 100755 --- a/egs/wsj/s5/steps/cleanup/segment_long_utterances_nnet3.sh +++ b/egs/wsj/s5/steps/cleanup/segment_long_utterances_nnet3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # 2016 Vimal Manohar diff --git a/egs/wsj/s5/steps/cleanup/split_long_utterance.sh b/egs/wsj/s5/steps/cleanup/split_long_utterance.sh index 6f3637ed112..a6d3f58d3fa 100755 --- a/egs/wsj/s5/steps/cleanup/split_long_utterance.sh +++ b/egs/wsj/s5/steps/cleanup/split_long_utterance.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/wsj/s5/steps/combine_ali_dirs.sh b/egs/wsj/s5/steps/combine_ali_dirs.sh index 39f2ff2b33b..9f2b4d3cc94 100755 --- a/egs/wsj/s5/steps/combine_ali_dirs.sh +++ b/egs/wsj/s5/steps/combine_ali_dirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Xiaohui Zhang Apache 2.0. # Copyright 2019 SmartAction (kkm) diff --git a/egs/wsj/s5/steps/combine_trans_dirs.sh b/egs/wsj/s5/steps/combine_trans_dirs.sh index 2edb9b9f6a5..821bd0aa021 100644 --- a/egs/wsj/s5/steps/combine_trans_dirs.sh +++ b/egs/wsj/s5/steps/combine_trans_dirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Xiaohui Zhang Apache 2.0. # Copyright 2019 SmartAction (kkm) # Copyright 2019 manhong wang (marvin) diff --git a/egs/wsj/s5/steps/compare_alignments.sh b/egs/wsj/s5/steps/compare_alignments.sh index d94d2197fee..b62adec6111 100755 --- a/egs/wsj/s5/steps/compare_alignments.sh +++ b/egs/wsj/s5/steps/compare_alignments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Johns Hopkins University (author: Daniel Povey) # Apache 2.0. diff --git a/egs/wsj/s5/steps/compute_cmvn_stats.sh b/egs/wsj/s5/steps/compute_cmvn_stats.sh index 6c05c66a0bc..73b4e7730b8 100755 --- a/egs/wsj/s5/steps/compute_cmvn_stats.sh +++ b/egs/wsj/s5/steps/compute_cmvn_stats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2016 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/conf/apply_calibration.sh b/egs/wsj/s5/steps/conf/apply_calibration.sh index c1a22e274b8..104125d9793 100755 --- a/egs/wsj/s5/steps/conf/apply_calibration.sh +++ b/egs/wsj/s5/steps/conf/apply_calibration.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Brno University of Technology (Author: Karel Vesely). Apache 2.0. # Trains logistic regression, which calibrates the per-word confidences, diff --git a/egs/wsj/s5/steps/conf/get_ctm_conf.sh b/egs/wsj/s5/steps/conf/get_ctm_conf.sh index 5ce39b1ddb6..01e017cdd60 100755 --- a/egs/wsj/s5/steps/conf/get_ctm_conf.sh +++ b/egs/wsj/s5/steps/conf/get_ctm_conf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # This script produces CTM files from a decoding directory that has lattices diff --git a/egs/wsj/s5/steps/conf/lattice_depth_per_frame.sh b/egs/wsj/s5/steps/conf/lattice_depth_per_frame.sh index 7167bd970bb..e40159f82a8 100755 --- a/egs/wsj/s5/steps/conf/lattice_depth_per_frame.sh +++ b/egs/wsj/s5/steps/conf/lattice_depth_per_frame.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Brno University of Technology (Author: Karel Vesely) # Licensed under the Apache License, Version 2.0 (the "License") diff --git a/egs/wsj/s5/steps/conf/train_calibration.sh b/egs/wsj/s5/steps/conf/train_calibration.sh index c2aca05056e..b08a8ca3e92 100755 --- a/egs/wsj/s5/steps/conf/train_calibration.sh +++ b/egs/wsj/s5/steps/conf/train_calibration.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015, Brno University of Technology (Author: Karel Vesely). Apache 2.0. # Trains logistic regression, which calibrates the per-word confidences in 'CTM'. diff --git a/egs/wsj/s5/steps/copy_ali_dir.sh b/egs/wsj/s5/steps/copy_ali_dir.sh index 60618a2f4bf..2642c198a81 100755 --- a/egs/wsj/s5/steps/copy_ali_dir.sh +++ b/egs/wsj/s5/steps/copy_ali_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Phani Sankar Nidadavolu # Apache 2.0. diff --git a/egs/wsj/s5/steps/copy_lat_dir.sh b/egs/wsj/s5/steps/copy_lat_dir.sh index 67b2a66382e..fd39ee5bb82 100755 --- a/egs/wsj/s5/steps/copy_lat_dir.sh +++ b/egs/wsj/s5/steps/copy_lat_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Phani Sankar Nidadavolu # Apache 2.0. diff --git a/egs/wsj/s5/steps/copy_trans_dir.sh b/egs/wsj/s5/steps/copy_trans_dir.sh index 3344d749ef8..4ccaf438727 100644 --- a/egs/wsj/s5/steps/copy_trans_dir.sh +++ b/egs/wsj/s5/steps/copy_trans_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2019 Phani Sankar Nidadavolu # Copyright 2019 manhong wang(marvin) # Apache 2.0. diff --git a/egs/wsj/s5/steps/data/make_musan.sh b/egs/wsj/s5/steps/data/make_musan.sh index 40ec9b9a279..eb7f575b68f 100755 --- a/egs/wsj/s5/steps/data/make_musan.sh +++ b/egs/wsj/s5/steps/data/make_musan.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 David Snyder # 2019 Phani Sankar Nidadavolu # Apache 2.0. diff --git a/egs/wsj/s5/steps/decode.sh b/egs/wsj/s5/steps/decode.sh index e9ca2f17cc5..8c85724c043 100755 --- a/egs/wsj/s5/steps/decode.sh +++ b/egs/wsj/s5/steps/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/decode_basis_fmllr.sh b/egs/wsj/s5/steps/decode_basis_fmllr.sh index afb914e7f0d..14c06d052ca 100755 --- a/egs/wsj/s5/steps/decode_basis_fmllr.sh +++ b/egs/wsj/s5/steps/decode_basis_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Carnegie Mellon University (Author: Yajie Miao) # Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/wsj/s5/steps/decode_biglm.sh b/egs/wsj/s5/steps/decode_biglm.sh index 0663391430d..f57191ed290 100755 --- a/egs/wsj/s5/steps/decode_biglm.sh +++ b/egs/wsj/s5/steps/decode_biglm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/decode_combine.sh b/egs/wsj/s5/steps/decode_combine.sh index 63c60071458..953bb42987c 100755 --- a/egs/wsj/s5/steps/decode_combine.sh +++ b/egs/wsj/s5/steps/decode_combine.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/decode_fmllr.sh b/egs/wsj/s5/steps/decode_fmllr.sh index 0522fe7bb8f..142a41400bd 100755 --- a/egs/wsj/s5/steps/decode_fmllr.sh +++ b/egs/wsj/s5/steps/decode_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/wsj/s5/steps/decode_fmllr_extra.sh b/egs/wsj/s5/steps/decode_fmllr_extra.sh index 04d4c2ae343..e8cb87410c4 100755 --- a/egs/wsj/s5/steps/decode_fmllr_extra.sh +++ b/egs/wsj/s5/steps/decode_fmllr_extra.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/wsj/s5/steps/decode_fmmi.sh b/egs/wsj/s5/steps/decode_fmmi.sh index 5460d37ff28..dd006db9661 100755 --- a/egs/wsj/s5/steps/decode_fmmi.sh +++ b/egs/wsj/s5/steps/decode_fmmi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/decode_fromlats.sh b/egs/wsj/s5/steps/decode_fromlats.sh index ee719c0e132..4822953ea0e 100755 --- a/egs/wsj/s5/steps/decode_fromlats.sh +++ b/egs/wsj/s5/steps/decode_fromlats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/decode_lvtln.sh b/egs/wsj/s5/steps/decode_lvtln.sh index ac58b2ee04b..9aa64fe3686 100755 --- a/egs/wsj/s5/steps/decode_lvtln.sh +++ b/egs/wsj/s5/steps/decode_lvtln.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Copyright 2014 Vimal Manohar diff --git a/egs/wsj/s5/steps/decode_nolats.sh b/egs/wsj/s5/steps/decode_nolats.sh index 28d1113acd5..5d2a4614e08 100755 --- a/egs/wsj/s5/steps/decode_nolats.sh +++ b/egs/wsj/s5/steps/decode_nolats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey) # Vimal Manohar diff --git a/egs/wsj/s5/steps/decode_raw_fmllr.sh b/egs/wsj/s5/steps/decode_raw_fmllr.sh index 069dc84a711..b09a3dcdc0a 100755 --- a/egs/wsj/s5/steps/decode_raw_fmllr.sh +++ b/egs/wsj/s5/steps/decode_raw_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/wsj/s5/steps/decode_sgmm2.sh b/egs/wsj/s5/steps/decode_sgmm2.sh index 87a4762351e..bb78b1d46cf 100755 --- a/egs/wsj/s5/steps/decode_sgmm2.sh +++ b/egs/wsj/s5/steps/decode_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/decode_sgmm2_fromlats.sh b/egs/wsj/s5/steps/decode_sgmm2_fromlats.sh index 1cdd9885314..8fd5c29aa50 100755 --- a/egs/wsj/s5/steps/decode_sgmm2_fromlats.sh +++ b/egs/wsj/s5/steps/decode_sgmm2_fromlats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/decode_sgmm2_rescore.sh b/egs/wsj/s5/steps/decode_sgmm2_rescore.sh index c258ad00067..3a909e88104 100755 --- a/egs/wsj/s5/steps/decode_sgmm2_rescore.sh +++ b/egs/wsj/s5/steps/decode_sgmm2_rescore.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/decode_sgmm2_rescore_project.sh b/egs/wsj/s5/steps/decode_sgmm2_rescore_project.sh index 277d72fbeba..1562acdc1ea 100755 --- a/egs/wsj/s5/steps/decode_sgmm2_rescore_project.sh +++ b/egs/wsj/s5/steps/decode_sgmm2_rescore_project.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/decode_with_map.sh b/egs/wsj/s5/steps/decode_with_map.sh index ab507debd11..53ff4142536 100755 --- a/egs/wsj/s5/steps/decode_with_map.sh +++ b/egs/wsj/s5/steps/decode_with_map.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Neha Agrawal, Cisco Systems; # Johns Hopkins University (Author: Daniel Povey); diff --git a/egs/wsj/s5/steps/diagnostic/analyze_alignments.sh b/egs/wsj/s5/steps/diagnostic/analyze_alignments.sh index 21b48e649a5..223333e63d2 100755 --- a/egs/wsj/s5/steps/diagnostic/analyze_alignments.sh +++ b/egs/wsj/s5/steps/diagnostic/analyze_alignments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright Johns Hopkins University (Author: Daniel Povey) 2016. Apache 2.0. diff --git a/egs/wsj/s5/steps/diagnostic/analyze_lats.sh b/egs/wsj/s5/steps/diagnostic/analyze_lats.sh index df1a6d64801..a36fc016a0b 100755 --- a/egs/wsj/s5/steps/diagnostic/analyze_lats.sh +++ b/egs/wsj/s5/steps/diagnostic/analyze_lats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright Johns Hopkins University (Author: Daniel Povey) 2016. Apache 2.0. diff --git a/egs/wsj/s5/steps/dict/apply_g2p.sh b/egs/wsj/s5/steps/dict/apply_g2p.sh index 1f66c838010..e7802e5b339 100755 --- a/egs/wsj/s5/steps/dict/apply_g2p.sh +++ b/egs/wsj/s5/steps/dict/apply_g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2016 Xiaohui Zhang # Apache 2.0 diff --git a/egs/wsj/s5/steps/dict/apply_g2p_phonetisaurus.sh b/egs/wsj/s5/steps/dict/apply_g2p_phonetisaurus.sh index a793f91fd0a..866dd54f541 100755 --- a/egs/wsj/s5/steps/dict/apply_g2p_phonetisaurus.sh +++ b/egs/wsj/s5/steps/dict/apply_g2p_phonetisaurus.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2016 Xiaohui Zhang # 2018 Ruizhe Huang diff --git a/egs/wsj/s5/steps/dict/train_g2p.sh b/egs/wsj/s5/steps/dict/train_g2p.sh index 75eb3fc88ec..a5cb863672b 100755 --- a/egs/wsj/s5/steps/dict/train_g2p.sh +++ b/egs/wsj/s5/steps/dict/train_g2p.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2016 Xiaohui Zhang # Apache 2.0 diff --git a/egs/wsj/s5/steps/dict/train_g2p_phonetisaurus.sh b/egs/wsj/s5/steps/dict/train_g2p_phonetisaurus.sh index 94c483e09e2..0e9798317aa 100755 --- a/egs/wsj/s5/steps/dict/train_g2p_phonetisaurus.sh +++ b/egs/wsj/s5/steps/dict/train_g2p_phonetisaurus.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Intellisist, Inc. (Author: Navneeth K) # 2017 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/get_ctm.sh b/egs/wsj/s5/steps/get_ctm.sh index 6ebce2049d9..efbb45fd166 100755 --- a/egs/wsj/s5/steps/get_ctm.sh +++ b/egs/wsj/s5/steps/get_ctm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # This script produces CTM files from a decoding directory that has lattices diff --git a/egs/wsj/s5/steps/get_ctm_conf_fast.sh b/egs/wsj/s5/steps/get_ctm_conf_fast.sh index 088fbd4a9cf..8a39d9749d4 100755 --- a/egs/wsj/s5/steps/get_ctm_conf_fast.sh +++ b/egs/wsj/s5/steps/get_ctm_conf_fast.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2017 Vimal Manohar # 2018 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/get_ctm_fast.sh b/egs/wsj/s5/steps/get_ctm_fast.sh index b0fae12b7bc..fb52c76cd60 100755 --- a/egs/wsj/s5/steps/get_ctm_fast.sh +++ b/egs/wsj/s5/steps/get_ctm_fast.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2017 Vimal Manohar # 2018 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/get_fmllr_basis.sh b/egs/wsj/s5/steps/get_fmllr_basis.sh index 9b60af1fa51..62b20e4dd63 100755 --- a/egs/wsj/s5/steps/get_fmllr_basis.sh +++ b/egs/wsj/s5/steps/get_fmllr_basis.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Carnegie Mellon University (Author: Yajie Miao) # Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/wsj/s5/steps/get_lexicon_probs.sh b/egs/wsj/s5/steps/get_lexicon_probs.sh index 14091ba6340..89441942571 100755 --- a/egs/wsj/s5/steps/get_lexicon_probs.sh +++ b/egs/wsj/s5/steps/get_lexicon_probs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/get_prons.sh b/egs/wsj/s5/steps/get_prons.sh index 4c5453edbe2..6836a71e65d 100755 --- a/egs/wsj/s5/steps/get_prons.sh +++ b/egs/wsj/s5/steps/get_prons.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/wsj/s5/steps/get_train_ctm.sh b/egs/wsj/s5/steps/get_train_ctm.sh index 6942014fc88..87ea1fd938e 100755 --- a/egs/wsj/s5/steps/get_train_ctm.sh +++ b/egs/wsj/s5/steps/get_train_ctm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012. Apache 2.0. # This script produces CTM files from a training directory that has alignments diff --git a/egs/wsj/s5/steps/lmrescore.sh b/egs/wsj/s5/steps/lmrescore.sh index 88db8ae15dc..f1ab9f8e782 100755 --- a/egs/wsj/s5/steps/lmrescore.sh +++ b/egs/wsj/s5/steps/lmrescore.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/wsj/s5/steps/lmrescore_const_arpa.sh b/egs/wsj/s5/steps/lmrescore_const_arpa.sh index 796ff5fc95c..3106261389e 100755 --- a/egs/wsj/s5/steps/lmrescore_const_arpa.sh +++ b/egs/wsj/s5/steps/lmrescore_const_arpa.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/wsj/s5/steps/lmrescore_const_arpa_undeterminized.sh b/egs/wsj/s5/steps/lmrescore_const_arpa_undeterminized.sh index a075b8debe8..7d4b983e761 100755 --- a/egs/wsj/s5/steps/lmrescore_const_arpa_undeterminized.sh +++ b/egs/wsj/s5/steps/lmrescore_const_arpa_undeterminized.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # 2017 Vimal Manohar diff --git a/egs/wsj/s5/steps/lmrescore_rnnlm_lat.sh b/egs/wsj/s5/steps/lmrescore_rnnlm_lat.sh index 049e15df303..633be09f2bf 100755 --- a/egs/wsj/s5/steps/lmrescore_rnnlm_lat.sh +++ b/egs/wsj/s5/steps/lmrescore_rnnlm_lat.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Guoguo Chen # 2017 Hainan Xu diff --git a/egs/wsj/s5/steps/make_denlats.sh b/egs/wsj/s5/steps/make_denlats.sh index 6499d4e90fd..75fffeaddd3 100755 --- a/egs/wsj/s5/steps/make_denlats.sh +++ b/egs/wsj/s5/steps/make_denlats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Create denominator lattices for MMI/MPE training. diff --git a/egs/wsj/s5/steps/make_denlats_sgmm2.sh b/egs/wsj/s5/steps/make_denlats_sgmm2.sh index 0aa13617869..48b6b8c0595 100755 --- a/egs/wsj/s5/steps/make_denlats_sgmm2.sh +++ b/egs/wsj/s5/steps/make_denlats_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # 2014 Guoguo Chen diff --git a/egs/wsj/s5/steps/make_fbank.sh b/egs/wsj/s5/steps/make_fbank.sh index 29153458f9b..7c414170ddf 100755 --- a/egs/wsj/s5/steps/make_fbank.sh +++ b/egs/wsj/s5/steps/make_fbank.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2016 Karel Vesely # Copyright 2012-2016 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/wsj/s5/steps/make_fbank_pitch.sh b/egs/wsj/s5/steps/make_fbank_pitch.sh index 7f971df54ae..ee12d360732 100755 --- a/egs/wsj/s5/steps/make_fbank_pitch.sh +++ b/egs/wsj/s5/steps/make_fbank_pitch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 The Shenzhen Key Laboratory of Intelligent Media and Speech, # PKU-HKUST Shenzhen Hong Kong Institution (Author: Wei Shi) diff --git a/egs/wsj/s5/steps/make_index.sh b/egs/wsj/s5/steps/make_index.sh index 6c29dbbe8b6..22ff2845a3e 100755 --- a/egs/wsj/s5/steps/make_index.sh +++ b/egs/wsj/s5/steps/make_index.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0 diff --git a/egs/wsj/s5/steps/make_mfcc.sh b/egs/wsj/s5/steps/make_mfcc.sh index 37433f87dcd..7600ae30411 100755 --- a/egs/wsj/s5/steps/make_mfcc.sh +++ b/egs/wsj/s5/steps/make_mfcc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2016 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/make_mfcc_pitch.sh b/egs/wsj/s5/steps/make_mfcc_pitch.sh index dda31667d6a..aa9acaf55bf 100755 --- a/egs/wsj/s5/steps/make_mfcc_pitch.sh +++ b/egs/wsj/s5/steps/make_mfcc_pitch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 The Shenzhen Key Laboratory of Intelligent Media and Speech, # PKU-HKUST Shenzhen Hong Kong Institution (Author: Wei Shi) diff --git a/egs/wsj/s5/steps/make_mfcc_pitch_online.sh b/egs/wsj/s5/steps/make_mfcc_pitch_online.sh index 001c1e4c6f4..117645ae596 100755 --- a/egs/wsj/s5/steps/make_mfcc_pitch_online.sh +++ b/egs/wsj/s5/steps/make_mfcc_pitch_online.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 The Shenzhen Key Laboratory of Intelligent Media and Speech, # PKU-HKUST Shenzhen Hong Kong Institution (Author: Wei Shi) diff --git a/egs/wsj/s5/steps/make_phone_graph.sh b/egs/wsj/s5/steps/make_phone_graph.sh index aaf88cc66d2..f1a4b9edd31 100755 --- a/egs/wsj/s5/steps/make_phone_graph.sh +++ b/egs/wsj/s5/steps/make_phone_graph.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # steps/make_phone_graph.sh data/train_100k_nodup/ data/lang exp/tri2_ali_100k_nodup/ exp/tri2 diff --git a/egs/wsj/s5/steps/make_plp.sh b/egs/wsj/s5/steps/make_plp.sh index c4a987aaeeb..54a82fb9247 100755 --- a/egs/wsj/s5/steps/make_plp.sh +++ b/egs/wsj/s5/steps/make_plp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2016 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/make_plp_pitch.sh b/egs/wsj/s5/steps/make_plp_pitch.sh index 9f565d8a5bf..8b8c78578af 100755 --- a/egs/wsj/s5/steps/make_plp_pitch.sh +++ b/egs/wsj/s5/steps/make_plp_pitch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 The Shenzhen Key Laboratory of Intelligent Media and Speech, # PKU-HKUST Shenzhen Hong Kong Institution (Author: Wei Shi) diff --git a/egs/wsj/s5/steps/nnet/align.sh b/egs/wsj/s5/steps/nnet/align.sh index f976711fa58..fc1391e041d 100755 --- a/egs/wsj/s5/steps/nnet/align.sh +++ b/egs/wsj/s5/steps/nnet/align.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Brno University of Technology (author: Karel Vesely) # Apache 2.0 diff --git a/egs/wsj/s5/steps/nnet/decode.sh b/egs/wsj/s5/steps/nnet/decode.sh index c374905b127..a8011fc71f6 100755 --- a/egs/wsj/s5/steps/nnet/decode.sh +++ b/egs/wsj/s5/steps/nnet/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Brno University of Technology (author: Karel Vesely), Daniel Povey # Apache 2.0 diff --git a/egs/wsj/s5/steps/nnet/ivector/extract_ivectors.sh b/egs/wsj/s5/steps/nnet/ivector/extract_ivectors.sh index fcfbd0f2eb4..9df88b961e5 100755 --- a/egs/wsj/s5/steps/nnet/ivector/extract_ivectors.sh +++ b/egs/wsj/s5/steps/nnet/ivector/extract_ivectors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2016 Brno University of Technology (author: Karel Vesely) diff --git a/egs/wsj/s5/steps/nnet/ivector/train_diag_ubm.sh b/egs/wsj/s5/steps/nnet/ivector/train_diag_ubm.sh index ebd36a9e8e4..87c714bbc05 100755 --- a/egs/wsj/s5/steps/nnet/ivector/train_diag_ubm.sh +++ b/egs/wsj/s5/steps/nnet/ivector/train_diag_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2013 Daniel Povey diff --git a/egs/wsj/s5/steps/nnet/ivector/train_ivector_extractor.sh b/egs/wsj/s5/steps/nnet/ivector/train_ivector_extractor.sh index 252035a525f..c99b0d62a9d 100755 --- a/egs/wsj/s5/steps/nnet/ivector/train_ivector_extractor.sh +++ b/egs/wsj/s5/steps/nnet/ivector/train_ivector_extractor.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # 2016 Brno University of Technology (Author: Karel Vesely) diff --git a/egs/wsj/s5/steps/nnet/make_bn_feats.sh b/egs/wsj/s5/steps/nnet/make_bn_feats.sh index 631f3d5243a..a1d01116e9e 100755 --- a/egs/wsj/s5/steps/nnet/make_bn_feats.sh +++ b/egs/wsj/s5/steps/nnet/make_bn_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Brno University of Technology (author: Karel Vesely) # Apache 2.0 diff --git a/egs/wsj/s5/steps/nnet/make_denlats.sh b/egs/wsj/s5/steps/nnet/make_denlats.sh index 52bf7ce4e95..d0e07271502 100755 --- a/egs/wsj/s5/steps/nnet/make_denlats.sh +++ b/egs/wsj/s5/steps/nnet/make_denlats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Brno University of Technology (author: Karel Vesely), Daniel Povey # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet/make_fmllr_feats.sh b/egs/wsj/s5/steps/nnet/make_fmllr_feats.sh index 60b8b0fea7c..657ee266ab8 100755 --- a/egs/wsj/s5/steps/nnet/make_fmllr_feats.sh +++ b/egs/wsj/s5/steps/nnet/make_fmllr_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Brno University of Technology (author: Karel Vesely), # diff --git a/egs/wsj/s5/steps/nnet/make_fmmi_feats.sh b/egs/wsj/s5/steps/nnet/make_fmmi_feats.sh index 2874f00067b..b8d6748bfd1 100755 --- a/egs/wsj/s5/steps/nnet/make_fmmi_feats.sh +++ b/egs/wsj/s5/steps/nnet/make_fmmi_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Brno University of Technology (author: Karel Vesely), # diff --git a/egs/wsj/s5/steps/nnet/pretrain_dbn.sh b/egs/wsj/s5/steps/nnet/pretrain_dbn.sh index 0f0d6e767e2..56b5efb07f9 100755 --- a/egs/wsj/s5/steps/nnet/pretrain_dbn.sh +++ b/egs/wsj/s5/steps/nnet/pretrain_dbn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2015 Brno University of Technology (author: Karel Vesely) # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/wsj/s5/steps/nnet/train.sh b/egs/wsj/s5/steps/nnet/train.sh index e73fa5f77d1..8406663082b 100755 --- a/egs/wsj/s5/steps/nnet/train.sh +++ b/egs/wsj/s5/steps/nnet/train.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2017 Brno University of Technology (author: Karel Vesely) # Apache 2.0 diff --git a/egs/wsj/s5/steps/nnet/train_mmi.sh b/egs/wsj/s5/steps/nnet/train_mmi.sh index 5ecfdf7144a..c6d3a5a0276 100755 --- a/egs/wsj/s5/steps/nnet/train_mmi.sh +++ b/egs/wsj/s5/steps/nnet/train_mmi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2015 Brno University of Technology (author: Karel Vesely) # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet/train_mpe.sh b/egs/wsj/s5/steps/nnet/train_mpe.sh index 4edec6a5955..4a2fbc646bf 100755 --- a/egs/wsj/s5/steps/nnet/train_mpe.sh +++ b/egs/wsj/s5/steps/nnet/train_mpe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2017 Brno University of Technology (author: Karel Vesely) # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet/train_scheduler.sh b/egs/wsj/s5/steps/nnet/train_scheduler.sh index 6377acf6c7b..1bfb9103853 100755 --- a/egs/wsj/s5/steps/nnet/train_scheduler.sh +++ b/egs/wsj/s5/steps/nnet/train_scheduler.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2017 Brno University of Technology (author: Karel Vesely) # Apache 2.0 diff --git a/egs/wsj/s5/steps/nnet2/adjust_priors.sh b/egs/wsj/s5/steps/nnet2/adjust_priors.sh index 3cdcfb4ae73..bcf70c82388 100755 --- a/egs/wsj/s5/steps/nnet2/adjust_priors.sh +++ b/egs/wsj/s5/steps/nnet2/adjust_priors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Copyright (c) 2015, Johns Hopkins University (Yenda Trmal ) diff --git a/egs/wsj/s5/steps/nnet2/align.sh b/egs/wsj/s5/steps/nnet2/align.sh index fa040d692ad..66680843139 100755 --- a/egs/wsj/s5/steps/nnet2/align.sh +++ b/egs/wsj/s5/steps/nnet2/align.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Brno University of Technology (Author: Karel Vesely) # 2013 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/nnet2/check_ivectors_compatible.sh b/egs/wsj/s5/steps/nnet2/check_ivectors_compatible.sh index 7c5d3a3254d..6b046b563ba 100755 --- a/egs/wsj/s5/steps/nnet2/check_ivectors_compatible.sh +++ b/egs/wsj/s5/steps/nnet2/check_ivectors_compatible.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2016, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/wsj/s5/steps/nnet2/convert_lda_to_raw.sh b/egs/wsj/s5/steps/nnet2/convert_lda_to_raw.sh index 18de3b81d95..32c413bb6eb 100755 --- a/egs/wsj/s5/steps/nnet2/convert_lda_to_raw.sh +++ b/egs/wsj/s5/steps/nnet2/convert_lda_to_raw.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/convert_nnet1_to_nnet2.sh b/egs/wsj/s5/steps/nnet2/convert_nnet1_to_nnet2.sh index 2ec7424ef1f..6813aeaf4df 100755 --- a/egs/wsj/s5/steps/nnet2/convert_nnet1_to_nnet2.sh +++ b/egs/wsj/s5/steps/nnet2/convert_nnet1_to_nnet2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/create_appended_model.sh b/egs/wsj/s5/steps/nnet2/create_appended_model.sh index b5748a97d86..70149955f94 100755 --- a/egs/wsj/s5/steps/nnet2/create_appended_model.sh +++ b/egs/wsj/s5/steps/nnet2/create_appended_model.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/decode.sh b/egs/wsj/s5/steps/nnet2/decode.sh index ee06679f5a8..241c8ac5718 100755 --- a/egs/wsj/s5/steps/nnet2/decode.sh +++ b/egs/wsj/s5/steps/nnet2/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/dump_bottleneck_features.sh b/egs/wsj/s5/steps/nnet2/dump_bottleneck_features.sh index 0746a3188a1..9417e95060e 100755 --- a/egs/wsj/s5/steps/nnet2/dump_bottleneck_features.sh +++ b/egs/wsj/s5/steps/nnet2/dump_bottleneck_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 2014 Pegah Ghahremani # Apache 2.0 diff --git a/egs/wsj/s5/steps/nnet2/get_egs.sh b/egs/wsj/s5/steps/nnet2/get_egs.sh index ceae90681bf..7094a003e20 100755 --- a/egs/wsj/s5/steps/nnet2/get_egs.sh +++ b/egs/wsj/s5/steps/nnet2/get_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # This script, which will generally be called from other neural-net training diff --git a/egs/wsj/s5/steps/nnet2/get_egs2.sh b/egs/wsj/s5/steps/nnet2/get_egs2.sh index 27d46951d26..c5b469ede1f 100755 --- a/egs/wsj/s5/steps/nnet2/get_egs2.sh +++ b/egs/wsj/s5/steps/nnet2/get_egs2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # diff --git a/egs/wsj/s5/steps/nnet2/get_egs_discriminative2.sh b/egs/wsj/s5/steps/nnet2/get_egs_discriminative2.sh index 82c045bcd6c..55fe8e9c401 100755 --- a/egs/wsj/s5/steps/nnet2/get_egs_discriminative2.sh +++ b/egs/wsj/s5/steps/nnet2/get_egs_discriminative2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/get_ivector_id.sh b/egs/wsj/s5/steps/nnet2/get_ivector_id.sh index 1ec60d1f514..7542d0d332c 100755 --- a/egs/wsj/s5/steps/nnet2/get_ivector_id.sh +++ b/egs/wsj/s5/steps/nnet2/get_ivector_id.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2016, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/egs/wsj/s5/steps/nnet2/get_lda.sh b/egs/wsj/s5/steps/nnet2/get_lda.sh index e40d4a7dac9..ae421e7328b 100755 --- a/egs/wsj/s5/steps/nnet2/get_lda.sh +++ b/egs/wsj/s5/steps/nnet2/get_lda.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # This script, which will generally be called from other neural-net training diff --git a/egs/wsj/s5/steps/nnet2/get_lda_block.sh b/egs/wsj/s5/steps/nnet2/get_lda_block.sh index 70ebce8a577..621a6442fab 100755 --- a/egs/wsj/s5/steps/nnet2/get_lda_block.sh +++ b/egs/wsj/s5/steps/nnet2/get_lda_block.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # This script, which will generally be called from other neural-net training diff --git a/egs/wsj/s5/steps/nnet2/get_perturbed_feats.sh b/egs/wsj/s5/steps/nnet2/get_perturbed_feats.sh index 9fd92e6d056..650913bf81a 100755 --- a/egs/wsj/s5/steps/nnet2/get_perturbed_feats.sh +++ b/egs/wsj/s5/steps/nnet2/get_perturbed_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # begin configuration section diff --git a/egs/wsj/s5/steps/nnet2/make_denlats.sh b/egs/wsj/s5/steps/nnet2/make_denlats.sh index b46cbe6437b..71f078c9710 100755 --- a/egs/wsj/s5/steps/nnet2/make_denlats.sh +++ b/egs/wsj/s5/steps/nnet2/make_denlats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Create denominator lattices for MMI/MPE training. diff --git a/egs/wsj/s5/steps/nnet2/relabel_egs.sh b/egs/wsj/s5/steps/nnet2/relabel_egs.sh index 34b64c8afe2..cad8d815a69 100755 --- a/egs/wsj/s5/steps/nnet2/relabel_egs.sh +++ b/egs/wsj/s5/steps/nnet2/relabel_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar. Apache 2.0. # This script, which will generally be called during the neural-net training diff --git a/egs/wsj/s5/steps/nnet2/relabel_egs2.sh b/egs/wsj/s5/steps/nnet2/relabel_egs2.sh index 7f182306104..5092507ee46 100755 --- a/egs/wsj/s5/steps/nnet2/relabel_egs2.sh +++ b/egs/wsj/s5/steps/nnet2/relabel_egs2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vimal Manohar. # 2014 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/wsj/s5/steps/nnet2/remove_egs.sh b/egs/wsj/s5/steps/nnet2/remove_egs.sh index 143a5d0d86a..b4aa1dd3574 100755 --- a/egs/wsj/s5/steps/nnet2/remove_egs.sh +++ b/egs/wsj/s5/steps/nnet2/remove_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/retrain_fast.sh b/egs/wsj/s5/steps/nnet2/retrain_fast.sh index 8c82c361d82..058af22d608 100755 --- a/egs/wsj/s5/steps/nnet2/retrain_fast.sh +++ b/egs/wsj/s5/steps/nnet2/retrain_fast.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/retrain_simple2.sh b/egs/wsj/s5/steps/nnet2/retrain_simple2.sh index 73cfb3d2d49..ded4691cbb7 100755 --- a/egs/wsj/s5/steps/nnet2/retrain_simple2.sh +++ b/egs/wsj/s5/steps/nnet2/retrain_simple2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/retrain_tanh.sh b/egs/wsj/s5/steps/nnet2/retrain_tanh.sh index bc338ec8136..7e53bdd9260 100755 --- a/egs/wsj/s5/steps/nnet2/retrain_tanh.sh +++ b/egs/wsj/s5/steps/nnet2/retrain_tanh.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/train_block.sh b/egs/wsj/s5/steps/nnet2/train_block.sh index 1e79bb76473..a8c92af13ab 100755 --- a/egs/wsj/s5/steps/nnet2/train_block.sh +++ b/egs/wsj/s5/steps/nnet2/train_block.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # this is as train_tanh.sh but for on top of fbank feats-- we have block-diagonal diff --git a/egs/wsj/s5/steps/nnet2/train_convnet_accel2.sh b/egs/wsj/s5/steps/nnet2/train_convnet_accel2.sh index 9f3e9234389..01f4a875b09 100755 --- a/egs/wsj/s5/steps/nnet2/train_convnet_accel2.sh +++ b/egs/wsj/s5/steps/nnet2/train_convnet_accel2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/train_discriminative.sh b/egs/wsj/s5/steps/nnet2/train_discriminative.sh index 157c9151075..dd1ea7f2e72 100755 --- a/egs/wsj/s5/steps/nnet2/train_discriminative.sh +++ b/egs/wsj/s5/steps/nnet2/train_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/train_discriminative2.sh b/egs/wsj/s5/steps/nnet2/train_discriminative2.sh index 1dc5c1a2c1d..baa63a78eb8 100755 --- a/egs/wsj/s5/steps/nnet2/train_discriminative2.sh +++ b/egs/wsj/s5/steps/nnet2/train_discriminative2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/train_discriminative_multilang2.sh b/egs/wsj/s5/steps/nnet2/train_discriminative_multilang2.sh index 4c0449b9f63..8fc679eeede 100755 --- a/egs/wsj/s5/steps/nnet2/train_discriminative_multilang2.sh +++ b/egs/wsj/s5/steps/nnet2/train_discriminative_multilang2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/train_more.sh b/egs/wsj/s5/steps/nnet2/train_more.sh index 708238f6cbd..0a1d1abe425 100755 --- a/egs/wsj/s5/steps/nnet2/train_more.sh +++ b/egs/wsj/s5/steps/nnet2/train_more.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/train_more2.sh b/egs/wsj/s5/steps/nnet2/train_more2.sh index f83056f2315..2f94080596a 100755 --- a/egs/wsj/s5/steps/nnet2/train_more2.sh +++ b/egs/wsj/s5/steps/nnet2/train_more2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/train_multilang2.sh b/egs/wsj/s5/steps/nnet2/train_multilang2.sh index 41d9bc95059..7ed9a92c348 100755 --- a/egs/wsj/s5/steps/nnet2/train_multilang2.sh +++ b/egs/wsj/s5/steps/nnet2/train_multilang2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/train_multisplice_accel2.sh b/egs/wsj/s5/steps/nnet2/train_multisplice_accel2.sh index 27d1313446d..8f082e67c8e 100755 --- a/egs/wsj/s5/steps/nnet2/train_multisplice_accel2.sh +++ b/egs/wsj/s5/steps/nnet2/train_multisplice_accel2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/train_multisplice_ensemble.sh b/egs/wsj/s5/steps/nnet2/train_multisplice_ensemble.sh index 247d452e714..34d2017a922 100755 --- a/egs/wsj/s5/steps/nnet2/train_multisplice_ensemble.sh +++ b/egs/wsj/s5/steps/nnet2/train_multisplice_ensemble.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/train_pnorm.sh b/egs/wsj/s5/steps/nnet2/train_pnorm.sh index 1e47d84f155..9f7ddc0c888 100755 --- a/egs/wsj/s5/steps/nnet2/train_pnorm.sh +++ b/egs/wsj/s5/steps/nnet2/train_pnorm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/train_pnorm_accel2.sh b/egs/wsj/s5/steps/nnet2/train_pnorm_accel2.sh index 1b2cac6b441..be234213130 100755 --- a/egs/wsj/s5/steps/nnet2/train_pnorm_accel2.sh +++ b/egs/wsj/s5/steps/nnet2/train_pnorm_accel2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/train_pnorm_bottleneck_fast.sh b/egs/wsj/s5/steps/nnet2/train_pnorm_bottleneck_fast.sh index 2ad328f06aa..6542e8a204d 100755 --- a/egs/wsj/s5/steps/nnet2/train_pnorm_bottleneck_fast.sh +++ b/egs/wsj/s5/steps/nnet2/train_pnorm_bottleneck_fast.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2014 Pegah Ghahremani diff --git a/egs/wsj/s5/steps/nnet2/train_pnorm_ensemble.sh b/egs/wsj/s5/steps/nnet2/train_pnorm_ensemble.sh index cdb63aa7863..a738d5da89f 100755 --- a/egs/wsj/s5/steps/nnet2/train_pnorm_ensemble.sh +++ b/egs/wsj/s5/steps/nnet2/train_pnorm_ensemble.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). # 2013 Guoguo Chen diff --git a/egs/wsj/s5/steps/nnet2/train_pnorm_fast.sh b/egs/wsj/s5/steps/nnet2/train_pnorm_fast.sh index 497d2826f48..694e3cb85cf 100755 --- a/egs/wsj/s5/steps/nnet2/train_pnorm_fast.sh +++ b/egs/wsj/s5/steps/nnet2/train_pnorm_fast.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/train_pnorm_multisplice.sh b/egs/wsj/s5/steps/nnet2/train_pnorm_multisplice.sh index ca7be971f0d..b8e8a197c6e 100755 --- a/egs/wsj/s5/steps/nnet2/train_pnorm_multisplice.sh +++ b/egs/wsj/s5/steps/nnet2/train_pnorm_multisplice.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/train_pnorm_multisplice2.sh b/egs/wsj/s5/steps/nnet2/train_pnorm_multisplice2.sh index 069dea9ffcc..245276bda55 100755 --- a/egs/wsj/s5/steps/nnet2/train_pnorm_multisplice2.sh +++ b/egs/wsj/s5/steps/nnet2/train_pnorm_multisplice2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/train_pnorm_simple.sh b/egs/wsj/s5/steps/nnet2/train_pnorm_simple.sh index f70a9bacbaf..f132bab5fa8 100755 --- a/egs/wsj/s5/steps/nnet2/train_pnorm_simple.sh +++ b/egs/wsj/s5/steps/nnet2/train_pnorm_simple.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/train_pnorm_simple2.sh b/egs/wsj/s5/steps/nnet2/train_pnorm_simple2.sh index ada91f2765f..86c51028f61 100755 --- a/egs/wsj/s5/steps/nnet2/train_pnorm_simple2.sh +++ b/egs/wsj/s5/steps/nnet2/train_pnorm_simple2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet2/train_tanh.sh b/egs/wsj/s5/steps/nnet2/train_tanh.sh index a6530ba4dfc..d1f2ad4d920 100755 --- a/egs/wsj/s5/steps/nnet2/train_tanh.sh +++ b/egs/wsj/s5/steps/nnet2/train_tanh.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/train_tanh_bottleneck.sh b/egs/wsj/s5/steps/nnet2/train_tanh_bottleneck.sh index 960cb8a364a..31e19ee27b3 100755 --- a/egs/wsj/s5/steps/nnet2/train_tanh_bottleneck.sh +++ b/egs/wsj/s5/steps/nnet2/train_tanh_bottleneck.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # 2014 Pegah Ghahremani diff --git a/egs/wsj/s5/steps/nnet2/train_tanh_fast.sh b/egs/wsj/s5/steps/nnet2/train_tanh_fast.sh index 1be38c550d7..c78ea92d07d 100755 --- a/egs/wsj/s5/steps/nnet2/train_tanh_fast.sh +++ b/egs/wsj/s5/steps/nnet2/train_tanh_fast.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet2/update_nnet.sh b/egs/wsj/s5/steps/nnet2/update_nnet.sh index abcebce273a..a819b6de135 100755 --- a/egs/wsj/s5/steps/nnet2/update_nnet.sh +++ b/egs/wsj/s5/steps/nnet2/update_nnet.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang diff --git a/egs/wsj/s5/steps/nnet3/adjust_priors.sh b/egs/wsj/s5/steps/nnet3/adjust_priors.sh index 1873e6ee698..1dd792bee32 100755 --- a/egs/wsj/s5/steps/nnet3/adjust_priors.sh +++ b/egs/wsj/s5/steps/nnet3/adjust_priors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./path.sh diff --git a/egs/wsj/s5/steps/nnet3/align.sh b/egs/wsj/s5/steps/nnet3/align.sh index 948d5a4dc38..2fce0894ee6 100755 --- a/egs/wsj/s5/steps/nnet3/align.sh +++ b/egs/wsj/s5/steps/nnet3/align.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Brno University of Technology (Author: Karel Vesely) # 2013 Johns Hopkins University (Author: Daniel Povey) # 2015 Vijayaditya Peddinti diff --git a/egs/wsj/s5/steps/nnet3/align_lats.sh b/egs/wsj/s5/steps/nnet3/align_lats.sh index 201cc3552ba..007d274d6b1 100755 --- a/egs/wsj/s5/steps/nnet3/align_lats.sh +++ b/egs/wsj/s5/steps/nnet3/align_lats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Brno University of Technology (Author: Karel Vesely) # 2013 Johns Hopkins University (Author: Daniel Povey) # 2015 Vijayaditya Peddinti diff --git a/egs/wsj/s5/steps/nnet3/chain/build_tree.sh b/egs/wsj/s5/steps/nnet3/chain/build_tree.sh index 757963f13a7..1177ce492a1 100755 --- a/egs/wsj/s5/steps/nnet3/chain/build_tree.sh +++ b/egs/wsj/s5/steps/nnet3/chain/build_tree.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet3/chain/build_tree_multiple_sources.sh b/egs/wsj/s5/steps/nnet3/chain/build_tree_multiple_sources.sh index 31fa0aa6b4b..637dccba7ea 100755 --- a/egs/wsj/s5/steps/nnet3/chain/build_tree_multiple_sources.sh +++ b/egs/wsj/s5/steps/nnet3/chain/build_tree_multiple_sources.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). # 2017 Vimal Manohar # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet3/chain/e2e/get_egs_e2e.sh b/egs/wsj/s5/steps/nnet3/chain/e2e/get_egs_e2e.sh index 570962063be..e4c9c5adf47 100755 --- a/egs/wsj/s5/steps/nnet3/chain/e2e/get_egs_e2e.sh +++ b/egs/wsj/s5/steps/nnet3/chain/e2e/get_egs_e2e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey) # Copyright 2017 Hossein Hadian diff --git a/egs/wsj/s5/steps/nnet3/chain/e2e/prepare_e2e.sh b/egs/wsj/s5/steps/nnet3/chain/e2e/prepare_e2e.sh index 07d5ee8cfb8..eda34a62c96 100755 --- a/egs/wsj/s5/steps/nnet3/chain/e2e/prepare_e2e.sh +++ b/egs/wsj/s5/steps/nnet3/chain/e2e/prepare_e2e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # Apache 2.0 diff --git a/egs/wsj/s5/steps/nnet3/chain/get_egs.sh b/egs/wsj/s5/steps/nnet3/chain/get_egs.sh index 4dcf40518a2..a8ac94884b6 100755 --- a/egs/wsj/s5/steps/nnet3/chain/get_egs.sh +++ b/egs/wsj/s5/steps/nnet3/chain/get_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # diff --git a/egs/wsj/s5/steps/nnet3/chain/get_phone_post.sh b/egs/wsj/s5/steps/nnet3/chain/get_phone_post.sh index 9925403a3ac..60ec1598a5a 100755 --- a/egs/wsj/s5/steps/nnet3/chain/get_phone_post.sh +++ b/egs/wsj/s5/steps/nnet3/chain/get_phone_post.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet3/chain/make_weighted_den_fst.sh b/egs/wsj/s5/steps/nnet3/chain/make_weighted_den_fst.sh index 3b6371168ce..f0da3d0df3a 100755 --- a/egs/wsj/s5/steps/nnet3/chain/make_weighted_den_fst.sh +++ b/egs/wsj/s5/steps/nnet3/chain/make_weighted_den_fst.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # 2017 Pegah Ghahremani diff --git a/egs/wsj/s5/steps/nnet3/chain/multilingual/combine_egs.sh b/egs/wsj/s5/steps/nnet3/chain/multilingual/combine_egs.sh index 410a8710b2f..58d1c1ca74f 100755 --- a/egs/wsj/s5/steps/nnet3/chain/multilingual/combine_egs.sh +++ b/egs/wsj/s5/steps/nnet3/chain/multilingual/combine_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Pegah Ghahremani # 2017-18 Vimal Manohar diff --git a/egs/wsj/s5/steps/nnet3/chain/train_tdnn.sh b/egs/wsj/s5/steps/nnet3/chain/train_tdnn.sh index f5340fb4611..61d448cb9bf 100755 --- a/egs/wsj/s5/steps/nnet3/chain/train_tdnn.sh +++ b/egs/wsj/s5/steps/nnet3/chain/train_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # THIS SCRIPT IS DEPRECATED, see ./train.py diff --git a/egs/wsj/s5/steps/nnet3/compute_output.sh b/egs/wsj/s5/steps/nnet3/compute_output.sh index e55f705043b..32dbc155c85 100755 --- a/egs/wsj/s5/steps/nnet3/compute_output.sh +++ b/egs/wsj/s5/steps/nnet3/compute_output.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). # 2016 Vimal Manohar diff --git a/egs/wsj/s5/steps/nnet3/decode.sh b/egs/wsj/s5/steps/nnet3/decode.sh index bbd81a6db9f..d13be2f5fea 100755 --- a/egs/wsj/s5/steps/nnet3/decode.sh +++ b/egs/wsj/s5/steps/nnet3/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet3/decode_grammar.sh b/egs/wsj/s5/steps/nnet3/decode_grammar.sh index 7ee1efeb7df..f0ee39279df 100755 --- a/egs/wsj/s5/steps/nnet3/decode_grammar.sh +++ b/egs/wsj/s5/steps/nnet3/decode_grammar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet3/decode_looped.sh b/egs/wsj/s5/steps/nnet3/decode_looped.sh index f90dc0325d5..c30b860c2f7 100755 --- a/egs/wsj/s5/steps/nnet3/decode_looped.sh +++ b/egs/wsj/s5/steps/nnet3/decode_looped.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet3/decode_score_fusion.sh b/egs/wsj/s5/steps/nnet3/decode_score_fusion.sh index cb678e84245..bc8ba4d0a94 100755 --- a/egs/wsj/s5/steps/nnet3/decode_score_fusion.sh +++ b/egs/wsj/s5/steps/nnet3/decode_score_fusion.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Tien-Hong Lo diff --git a/egs/wsj/s5/steps/nnet3/decode_semisup.sh b/egs/wsj/s5/steps/nnet3/decode_semisup.sh index 25ce232b2c6..3542ae4751d 100755 --- a/egs/wsj/s5/steps/nnet3/decode_semisup.sh +++ b/egs/wsj/s5/steps/nnet3/decode_semisup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet3/get_degs.sh b/egs/wsj/s5/steps/nnet3/get_degs.sh index 7853daa4563..8035e0b6cbe 100755 --- a/egs/wsj/s5/steps/nnet3/get_degs.sh +++ b/egs/wsj/s5/steps/nnet3/get_degs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2016 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Copyright 2014-2015 Vimal Manohar diff --git a/egs/wsj/s5/steps/nnet3/get_egs.sh b/egs/wsj/s5/steps/nnet3/get_egs.sh index da6ec362ec7..fef708afcef 100755 --- a/egs/wsj/s5/steps/nnet3/get_egs.sh +++ b/egs/wsj/s5/steps/nnet3/get_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2016 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # diff --git a/egs/wsj/s5/steps/nnet3/get_egs_discriminative.sh b/egs/wsj/s5/steps/nnet3/get_egs_discriminative.sh index d315ff925f4..9f49600b8b8 100755 --- a/egs/wsj/s5/steps/nnet3/get_egs_discriminative.sh +++ b/egs/wsj/s5/steps/nnet3/get_egs_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2016 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Copyright 2014-2015 Vimal Manohar diff --git a/egs/wsj/s5/steps/nnet3/get_egs_targets.sh b/egs/wsj/s5/steps/nnet3/get_egs_targets.sh index 784693ee44c..51c6a031249 100755 --- a/egs/wsj/s5/steps/nnet3/get_egs_targets.sh +++ b/egs/wsj/s5/steps/nnet3/get_egs_targets.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). # 2015-2016 Vimal Manohar diff --git a/egs/wsj/s5/steps/nnet3/lstm/train.sh b/egs/wsj/s5/steps/nnet3/lstm/train.sh index dac3bdf1469..044ca55a32a 100755 --- a/egs/wsj/s5/steps/nnet3/lstm/train.sh +++ b/egs/wsj/s5/steps/nnet3/lstm/train.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # THIS SCRIPT IS DEPRECATED, see ../train_rnn.py diff --git a/egs/wsj/s5/steps/nnet3/make_bottleneck_features.sh b/egs/wsj/s5/steps/nnet3/make_bottleneck_features.sh index d9c04784406..affb825032b 100755 --- a/egs/wsj/s5/steps/nnet3/make_bottleneck_features.sh +++ b/egs/wsj/s5/steps/nnet3/make_bottleneck_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Pegah Ghahremani diff --git a/egs/wsj/s5/steps/nnet3/make_denlats.sh b/egs/wsj/s5/steps/nnet3/make_denlats.sh index 36da179bbaf..dfe5e0b0158 100755 --- a/egs/wsj/s5/steps/nnet3/make_denlats.sh +++ b/egs/wsj/s5/steps/nnet3/make_denlats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2014-2015 Vimal Manohar # Apache 2.0. diff --git a/egs/wsj/s5/steps/nnet3/multilingual/combine_egs.sh b/egs/wsj/s5/steps/nnet3/multilingual/combine_egs.sh index cdf55ea81d3..836781bb66c 100755 --- a/egs/wsj/s5/steps/nnet3/multilingual/combine_egs.sh +++ b/egs/wsj/s5/steps/nnet3/multilingual/combine_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Pegah Ghahremani # 2017-18 Vimal Manohar diff --git a/egs/wsj/s5/steps/nnet3/nnet3_to_dot.sh b/egs/wsj/s5/steps/nnet3/nnet3_to_dot.sh index 06ccf9657be..c55ab463313 100755 --- a/egs/wsj/s5/steps/nnet3/nnet3_to_dot.sh +++ b/egs/wsj/s5/steps/nnet3/nnet3_to_dot.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # script showing use of nnet3_to_dot.py # Copyright 2015 Johns Hopkins University (Author: Vijayaditya Peddinti). diff --git a/egs/wsj/s5/steps/nnet3/tdnn/train.sh b/egs/wsj/s5/steps/nnet3/tdnn/train.sh index f28994ae68b..e501834ab34 100755 --- a/egs/wsj/s5/steps/nnet3/tdnn/train.sh +++ b/egs/wsj/s5/steps/nnet3/tdnn/train.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # THIS SCRIPT IS DEPRECATED, see ../train_dnn.py diff --git a/egs/wsj/s5/steps/nnet3/tdnn/train_raw_nnet.sh b/egs/wsj/s5/steps/nnet3/tdnn/train_raw_nnet.sh index 07d82da8b1f..81616a273c0 100755 --- a/egs/wsj/s5/steps/nnet3/tdnn/train_raw_nnet.sh +++ b/egs/wsj/s5/steps/nnet3/tdnn/train_raw_nnet.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # THIS SCRIPT IS DEPRECATED, see ../train_raw_dnn.py diff --git a/egs/wsj/s5/steps/nnet3/train_discriminative.sh b/egs/wsj/s5/steps/nnet3/train_discriminative.sh index 028a22d6bc2..676e47af2cb 100755 --- a/egs/wsj/s5/steps/nnet3/train_discriminative.sh +++ b/egs/wsj/s5/steps/nnet3/train_discriminative.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey) # 2014-2015 Vimal Manohar diff --git a/egs/wsj/s5/steps/nnet3/train_tdnn.sh b/egs/wsj/s5/steps/nnet3/train_tdnn.sh index f023d38b26c..263da2e99bb 100755 --- a/egs/wsj/s5/steps/nnet3/train_tdnn.sh +++ b/egs/wsj/s5/steps/nnet3/train_tdnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # THIS SCRIPT IS DEPRECATED, see ./train_dnn.py diff --git a/egs/wsj/s5/steps/online/decode.sh b/egs/wsj/s5/steps/online/decode.sh index 496f2c2c8a8..dd672d5d3c5 100755 --- a/egs/wsj/s5/steps/online/decode.sh +++ b/egs/wsj/s5/steps/online/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/online/nnet2/align.sh b/egs/wsj/s5/steps/online/nnet2/align.sh index c24bbf0291e..963d014c772 100755 --- a/egs/wsj/s5/steps/online/nnet2/align.sh +++ b/egs/wsj/s5/steps/online/nnet2/align.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Brno University of Technology (Author: Karel Vesely) # 2013-2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/online/nnet2/copy_data_dir.sh b/egs/wsj/s5/steps/online/nnet2/copy_data_dir.sh index 0e1096e646c..143e163f33d 100755 --- a/egs/wsj/s5/steps/online/nnet2/copy_data_dir.sh +++ b/egs/wsj/s5/steps/online/nnet2/copy_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2014 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/online/nnet2/copy_ivector_dir.sh b/egs/wsj/s5/steps/online/nnet2/copy_ivector_dir.sh index b70e5cf21ad..3798347b344 100755 --- a/egs/wsj/s5/steps/online/nnet2/copy_ivector_dir.sh +++ b/egs/wsj/s5/steps/online/nnet2/copy_ivector_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (author: Hossein Hadian) # Apache 2.0 diff --git a/egs/wsj/s5/steps/online/nnet2/decode.sh b/egs/wsj/s5/steps/online/nnet2/decode.sh index 22cab49a5e7..89705f3fee7 100755 --- a/egs/wsj/s5/steps/online/nnet2/decode.sh +++ b/egs/wsj/s5/steps/online/nnet2/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/online/nnet2/dump_nnet_activations.sh b/egs/wsj/s5/steps/online/nnet2/dump_nnet_activations.sh index a394b70b0f6..8e0528b73a5 100755 --- a/egs/wsj/s5/steps/online/nnet2/dump_nnet_activations.sh +++ b/egs/wsj/s5/steps/online/nnet2/dump_nnet_activations.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # Apache 2.0. diff --git a/egs/wsj/s5/steps/online/nnet2/extract_ivectors.sh b/egs/wsj/s5/steps/online/nnet2/extract_ivectors.sh index 429e184ddf4..4935500c067 100755 --- a/egs/wsj/s5/steps/online/nnet2/extract_ivectors.sh +++ b/egs/wsj/s5/steps/online/nnet2/extract_ivectors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # Apache 2.0. diff --git a/egs/wsj/s5/steps/online/nnet2/extract_ivectors_online.sh b/egs/wsj/s5/steps/online/nnet2/extract_ivectors_online.sh index f7264b910ad..ee3166cce34 100755 --- a/egs/wsj/s5/steps/online/nnet2/extract_ivectors_online.sh +++ b/egs/wsj/s5/steps/online/nnet2/extract_ivectors_online.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # Apache 2.0. diff --git a/egs/wsj/s5/steps/online/nnet2/get_egs.sh b/egs/wsj/s5/steps/online/nnet2/get_egs.sh index 03b2e102398..3bea76f6c50 100755 --- a/egs/wsj/s5/steps/online/nnet2/get_egs.sh +++ b/egs/wsj/s5/steps/online/nnet2/get_egs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/online/nnet2/get_egs2.sh b/egs/wsj/s5/steps/online/nnet2/get_egs2.sh index ed250a63703..60b02122e2e 100755 --- a/egs/wsj/s5/steps/online/nnet2/get_egs2.sh +++ b/egs/wsj/s5/steps/online/nnet2/get_egs2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # diff --git a/egs/wsj/s5/steps/online/nnet2/get_egs_discriminative2.sh b/egs/wsj/s5/steps/online/nnet2/get_egs_discriminative2.sh index 3771b70584d..4826516c7f4 100755 --- a/egs/wsj/s5/steps/online/nnet2/get_egs_discriminative2.sh +++ b/egs/wsj/s5/steps/online/nnet2/get_egs_discriminative2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/online/nnet2/get_pca_transform.sh b/egs/wsj/s5/steps/online/nnet2/get_pca_transform.sh index e0b704f8852..924ef583fd3 100755 --- a/egs/wsj/s5/steps/online/nnet2/get_pca_transform.sh +++ b/egs/wsj/s5/steps/online/nnet2/get_pca_transform.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 David Snyder # diff --git a/egs/wsj/s5/steps/online/nnet2/make_denlats.sh b/egs/wsj/s5/steps/online/nnet2/make_denlats.sh index 9aa9808207a..553e6ac53ca 100755 --- a/egs/wsj/s5/steps/online/nnet2/make_denlats.sh +++ b/egs/wsj/s5/steps/online/nnet2/make_denlats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Create denominator lattices for MMI/MPE training. diff --git a/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding.sh b/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding.sh index fc58838c902..ded6be0b84a 100755 --- a/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding.sh +++ b/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding_retrain.sh b/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding_retrain.sh index 2e1529aa32a..0a9bca9463b 100755 --- a/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding_retrain.sh +++ b/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding_retrain.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding_transfer.sh b/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding_transfer.sh index c44f18db3f1..18b7d05f38f 100755 --- a/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding_transfer.sh +++ b/egs/wsj/s5/steps/online/nnet2/prepare_online_decoding_transfer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/online/nnet2/train_diag_ubm.sh b/egs/wsj/s5/steps/online/nnet2/train_diag_ubm.sh index 76554394205..bbd24201926 100755 --- a/egs/wsj/s5/steps/online/nnet2/train_diag_ubm.sh +++ b/egs/wsj/s5/steps/online/nnet2/train_diag_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2013 Daniel Povey diff --git a/egs/wsj/s5/steps/online/nnet2/train_ivector_extractor.sh b/egs/wsj/s5/steps/online/nnet2/train_ivector_extractor.sh index 27cc28326b5..30ad652339a 100755 --- a/egs/wsj/s5/steps/online/nnet2/train_ivector_extractor.sh +++ b/egs/wsj/s5/steps/online/nnet2/train_ivector_extractor.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Daniel Povey # Apache 2.0. diff --git a/egs/wsj/s5/steps/online/nnet3/decode.sh b/egs/wsj/s5/steps/online/nnet3/decode.sh index 118cf9e1260..27f78e14ed0 100755 --- a/egs/wsj/s5/steps/online/nnet3/decode.sh +++ b/egs/wsj/s5/steps/online/nnet3/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # 2016 Api.ai (Author: Ilya Platonov) diff --git a/egs/wsj/s5/steps/online/nnet3/prepare_online_decoding.sh b/egs/wsj/s5/steps/online/nnet3/prepare_online_decoding.sh index a20ddd496eb..42a0c25522f 100755 --- a/egs/wsj/s5/steps/online/nnet3/prepare_online_decoding.sh +++ b/egs/wsj/s5/steps/online/nnet3/prepare_online_decoding.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/online/prepare_online_decoding.sh b/egs/wsj/s5/steps/online/prepare_online_decoding.sh index a6c17a4f303..be4cc8f3bb1 100755 --- a/egs/wsj/s5/steps/online/prepare_online_decoding.sh +++ b/egs/wsj/s5/steps/online/prepare_online_decoding.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/oracle_wer.sh b/egs/wsj/s5/steps/oracle_wer.sh index 970400632c5..298aef5215d 100755 --- a/egs/wsj/s5/steps/oracle_wer.sh +++ b/egs/wsj/s5/steps/oracle_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2013 # Apache 2.0. diff --git a/egs/wsj/s5/steps/paste_feats.sh b/egs/wsj/s5/steps/paste_feats.sh index 5573cf14ee0..63f6dd395c6 100755 --- a/egs/wsj/s5/steps/paste_feats.sh +++ b/egs/wsj/s5/steps/paste_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Brno University of Technology (Author: Karel Vesely) # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/wsj/s5/steps/resegment_data.sh b/egs/wsj/s5/steps/resegment_data.sh index 4f9196f9dbd..005d423040e 100755 --- a/egs/wsj/s5/steps/resegment_data.sh +++ b/egs/wsj/s5/steps/resegment_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2013. Apache 2.0. diff --git a/egs/wsj/s5/steps/resegment_text.sh b/egs/wsj/s5/steps/resegment_text.sh index 58a5ac6548a..4646604c917 100755 --- a/egs/wsj/s5/steps/resegment_text.sh +++ b/egs/wsj/s5/steps/resegment_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2013. Apache 2.0. diff --git a/egs/wsj/s5/steps/rnnlmrescore.sh b/egs/wsj/s5/steps/rnnlmrescore.sh index bbb85f2fadb..de6114038b8 100755 --- a/egs/wsj/s5/steps/rnnlmrescore.sh +++ b/egs/wsj/s5/steps/rnnlmrescore.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # please see lmrescore_rnnlm_lat.sh which is a newer script using lattices. diff --git a/egs/wsj/s5/steps/scoring/score_kaldi_cer.sh b/egs/wsj/s5/steps/scoring/score_kaldi_cer.sh index 59c257d3280..72df0b378fd 100755 --- a/egs/wsj/s5/steps/scoring/score_kaldi_cer.sh +++ b/egs/wsj/s5/steps/scoring/score_kaldi_cer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey, Yenda Trmal) # Apache 2.0 diff --git a/egs/wsj/s5/steps/scoring/score_kaldi_compare.sh b/egs/wsj/s5/steps/scoring/score_kaldi_compare.sh index 32afa296796..3c530bff044 100755 --- a/egs/wsj/s5/steps/scoring/score_kaldi_compare.sh +++ b/egs/wsj/s5/steps/scoring/score_kaldi_compare.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Nicolas Serrano # Apache 2.0 diff --git a/egs/wsj/s5/steps/scoring/score_kaldi_wer.sh b/egs/wsj/s5/steps/scoring/score_kaldi_wer.sh index 9988c941441..3ddee8e4b12 100755 --- a/egs/wsj/s5/steps/scoring/score_kaldi_wer.sh +++ b/egs/wsj/s5/steps/scoring/score_kaldi_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey, Yenda Trmal) # Apache 2.0 diff --git a/egs/wsj/s5/steps/search_index.sh b/egs/wsj/s5/steps/search_index.sh index 5db3d39b15a..b967bd129ed 100755 --- a/egs/wsj/s5/steps/search_index.sh +++ b/egs/wsj/s5/steps/search_index.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Apache 2.0 diff --git a/egs/wsj/s5/steps/segmentation/ali_to_targets.sh b/egs/wsj/s5/steps/segmentation/ali_to_targets.sh index 56d93df3c6b..edff8ee50ec 100644 --- a/egs/wsj/s5/steps/segmentation/ali_to_targets.sh +++ b/egs/wsj/s5/steps/segmentation/ali_to_targets.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/wsj/s5/steps/segmentation/combine_targets_dirs.sh b/egs/wsj/s5/steps/segmentation/combine_targets_dirs.sh index 8135d089f5b..b9a946e4ebf 100755 --- a/egs/wsj/s5/steps/segmentation/combine_targets_dirs.sh +++ b/egs/wsj/s5/steps/segmentation/combine_targets_dirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Nagendra Kumar Goel # 2018 Vimal Manohar diff --git a/egs/wsj/s5/steps/segmentation/convert_targets_dir_to_whole_recording.sh b/egs/wsj/s5/steps/segmentation/convert_targets_dir_to_whole_recording.sh index f7a681e4a31..026abc6343d 100755 --- a/egs/wsj/s5/steps/segmentation/convert_targets_dir_to_whole_recording.sh +++ b/egs/wsj/s5/steps/segmentation/convert_targets_dir_to_whole_recording.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/wsj/s5/steps/segmentation/copy_targets_dir.sh b/egs/wsj/s5/steps/segmentation/copy_targets_dir.sh index f15206b1f7d..c231e323ecd 100755 --- a/egs/wsj/s5/steps/segmentation/copy_targets_dir.sh +++ b/egs/wsj/s5/steps/segmentation/copy_targets_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Nagendra Kumar Goel # 2014 Johns Hopkins University (author: Nagendra K Goel) diff --git a/egs/wsj/s5/steps/segmentation/decode_sad.sh b/egs/wsj/s5/steps/segmentation/decode_sad.sh index c937b5d2c04..f28e90a79d7 100755 --- a/egs/wsj/s5/steps/segmentation/decode_sad.sh +++ b/egs/wsj/s5/steps/segmentation/decode_sad.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # Apache 2.0. diff --git a/egs/wsj/s5/steps/segmentation/detect_speech_activity.sh b/egs/wsj/s5/steps/segmentation/detect_speech_activity.sh index 831283bb5ec..c7d9919b518 100755 --- a/egs/wsj/s5/steps/segmentation/detect_speech_activity.sh +++ b/egs/wsj/s5/steps/segmentation/detect_speech_activity.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016-17 Vimal Manohar # 2017 Nagendra Kumar Goel diff --git a/egs/wsj/s5/steps/segmentation/get_targets_for_out_of_segments.sh b/egs/wsj/s5/steps/segmentation/get_targets_for_out_of_segments.sh index 361acbf2203..f16af6a6485 100755 --- a/egs/wsj/s5/steps/segmentation/get_targets_for_out_of_segments.sh +++ b/egs/wsj/s5/steps/segmentation/get_targets_for_out_of_segments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/wsj/s5/steps/segmentation/lats_to_targets.sh b/egs/wsj/s5/steps/segmentation/lats_to_targets.sh index 29454234f82..770093cfa1d 100755 --- a/egs/wsj/s5/steps/segmentation/lats_to_targets.sh +++ b/egs/wsj/s5/steps/segmentation/lats_to_targets.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/wsj/s5/steps/segmentation/merge_targets_dirs.sh b/egs/wsj/s5/steps/segmentation/merge_targets_dirs.sh index a22f8ad12ec..08ee3767401 100755 --- a/egs/wsj/s5/steps/segmentation/merge_targets_dirs.sh +++ b/egs/wsj/s5/steps/segmentation/merge_targets_dirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/wsj/s5/steps/segmentation/post_process_sad_to_segments.sh b/egs/wsj/s5/steps/segmentation/post_process_sad_to_segments.sh index b168c307b57..4bf70a11f93 100755 --- a/egs/wsj/s5/steps/segmentation/post_process_sad_to_segments.sh +++ b/egs/wsj/s5/steps/segmentation/post_process_sad_to_segments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015-17 Vimal Manohar # Apache 2.0. diff --git a/egs/wsj/s5/steps/segmentation/resample_targets_dir.sh b/egs/wsj/s5/steps/segmentation/resample_targets_dir.sh index 464858b0241..c0377139848 100755 --- a/egs/wsj/s5/steps/segmentation/resample_targets_dir.sh +++ b/egs/wsj/s5/steps/segmentation/resample_targets_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/wsj/s5/steps/segmentation/validate_targets_dir.sh b/egs/wsj/s5/steps/segmentation/validate_targets_dir.sh index 9bebb8fab20..009b7e1782b 100755 --- a/egs/wsj/s5/steps/segmentation/validate_targets_dir.sh +++ b/egs/wsj/s5/steps/segmentation/validate_targets_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0 diff --git a/egs/wsj/s5/steps/select_feats.sh b/egs/wsj/s5/steps/select_feats.sh index 20957818c3b..a5eca24da7d 100755 --- a/egs/wsj/s5/steps/select_feats.sh +++ b/egs/wsj/s5/steps/select_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/shift_feats.sh b/egs/wsj/s5/steps/shift_feats.sh index ada5716f187..8d476d9b6dd 100755 --- a/egs/wsj/s5/steps/shift_feats.sh +++ b/egs/wsj/s5/steps/shift_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # Apache 2.0 diff --git a/egs/wsj/s5/steps/subset_ali_dir.sh b/egs/wsj/s5/steps/subset_ali_dir.sh index 537d91c1248..839ab747f85 100755 --- a/egs/wsj/s5/steps/subset_ali_dir.sh +++ b/egs/wsj/s5/steps/subset_ali_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0. diff --git a/egs/wsj/s5/steps/tandem/align_fmllr.sh b/egs/wsj/s5/steps/tandem/align_fmllr.sh index 0b012e24146..f5212b37091 100755 --- a/egs/wsj/s5/steps/tandem/align_fmllr.sh +++ b/egs/wsj/s5/steps/tandem/align_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Korbinian Riedhammer # Apache 2.0 diff --git a/egs/wsj/s5/steps/tandem/align_sgmm2.sh b/egs/wsj/s5/steps/tandem/align_sgmm2.sh index 48eb1fbef43..1071b1385c9 100755 --- a/egs/wsj/s5/steps/tandem/align_sgmm2.sh +++ b/egs/wsj/s5/steps/tandem/align_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Korbinian Riedhammer # Apache 2.0 diff --git a/egs/wsj/s5/steps/tandem/align_si.sh b/egs/wsj/s5/steps/tandem/align_si.sh index 4e52c51e308..370654425c1 100755 --- a/egs/wsj/s5/steps/tandem/align_si.sh +++ b/egs/wsj/s5/steps/tandem/align_si.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Korbinian Riedhammer # Apache 2.0 diff --git a/egs/wsj/s5/steps/tandem/decode.sh b/egs/wsj/s5/steps/tandem/decode.sh index aacf3d48077..c0805290b5e 100755 --- a/egs/wsj/s5/steps/tandem/decode.sh +++ b/egs/wsj/s5/steps/tandem/decode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/tandem/decode_fmllr.sh b/egs/wsj/s5/steps/tandem/decode_fmllr.sh index c2cb8caa7bb..8cbaf48b5fc 100755 --- a/egs/wsj/s5/steps/tandem/decode_fmllr.sh +++ b/egs/wsj/s5/steps/tandem/decode_fmllr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/decode_sgmm2.sh b/egs/wsj/s5/steps/tandem/decode_sgmm2.sh index 3afe1f8cb5d..c47166544da 100755 --- a/egs/wsj/s5/steps/tandem/decode_sgmm2.sh +++ b/egs/wsj/s5/steps/tandem/decode_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/make_denlats.sh b/egs/wsj/s5/steps/tandem/make_denlats.sh index 0b0f11a4bdb..6ed0d848489 100755 --- a/egs/wsj/s5/steps/tandem/make_denlats.sh +++ b/egs/wsj/s5/steps/tandem/make_denlats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/make_denlats_sgmm2.sh b/egs/wsj/s5/steps/tandem/make_denlats_sgmm2.sh index 7dbae9d26c9..9f5c5567b7e 100755 --- a/egs/wsj/s5/steps/tandem/make_denlats_sgmm2.sh +++ b/egs/wsj/s5/steps/tandem/make_denlats_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/mk_aslf_lda_mllt.sh b/egs/wsj/s5/steps/tandem/mk_aslf_lda_mllt.sh index 4b1ea3f071a..c80ae9e6077 100755 --- a/egs/wsj/s5/steps/tandem/mk_aslf_lda_mllt.sh +++ b/egs/wsj/s5/steps/tandem/mk_aslf_lda_mllt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/mk_aslf_sgmm2.sh b/egs/wsj/s5/steps/tandem/mk_aslf_sgmm2.sh index 73c45836f0b..2dc387fd121 100755 --- a/egs/wsj/s5/steps/tandem/mk_aslf_sgmm2.sh +++ b/egs/wsj/s5/steps/tandem/mk_aslf_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/train_deltas.sh b/egs/wsj/s5/steps/tandem/train_deltas.sh index d6a1baa6623..50ba1836f60 100755 --- a/egs/wsj/s5/steps/tandem/train_deltas.sh +++ b/egs/wsj/s5/steps/tandem/train_deltas.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/train_lda_mllt.sh b/egs/wsj/s5/steps/tandem/train_lda_mllt.sh index a5fa4ea8786..7856d236d9e 100755 --- a/egs/wsj/s5/steps/tandem/train_lda_mllt.sh +++ b/egs/wsj/s5/steps/tandem/train_lda_mllt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/train_mllt.sh b/egs/wsj/s5/steps/tandem/train_mllt.sh index 7d46074baec..4e522978c70 100755 --- a/egs/wsj/s5/steps/tandem/train_mllt.sh +++ b/egs/wsj/s5/steps/tandem/train_mllt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/train_mmi.sh b/egs/wsj/s5/steps/tandem/train_mmi.sh index 4f617b67c4c..03a785a4c2e 100755 --- a/egs/wsj/s5/steps/tandem/train_mmi.sh +++ b/egs/wsj/s5/steps/tandem/train_mmi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/train_mmi_sgmm2.sh b/egs/wsj/s5/steps/tandem/train_mmi_sgmm2.sh index f09ecd963ec..d425932b0a2 100755 --- a/egs/wsj/s5/steps/tandem/train_mmi_sgmm2.sh +++ b/egs/wsj/s5/steps/tandem/train_mmi_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/train_mono.sh b/egs/wsj/s5/steps/tandem/train_mono.sh index b5c55f6f369..393a3ba0101 100755 --- a/egs/wsj/s5/steps/tandem/train_mono.sh +++ b/egs/wsj/s5/steps/tandem/train_mono.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Korbinian Riedhammer # Apache 2.0 diff --git a/egs/wsj/s5/steps/tandem/train_sat.sh b/egs/wsj/s5/steps/tandem/train_sat.sh index 09e3f625674..b6240009a50 100755 --- a/egs/wsj/s5/steps/tandem/train_sat.sh +++ b/egs/wsj/s5/steps/tandem/train_sat.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/train_sgmm2.sh b/egs/wsj/s5/steps/tandem/train_sgmm2.sh index daa0437b47b..77182e307ca 100755 --- a/egs/wsj/s5/steps/tandem/train_sgmm2.sh +++ b/egs/wsj/s5/steps/tandem/train_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Korbinian Riedhammer diff --git a/egs/wsj/s5/steps/tandem/train_ubm.sh b/egs/wsj/s5/steps/tandem/train_ubm.sh index 858856792c1..21d7eb2095c 100755 --- a/egs/wsj/s5/steps/tandem/train_ubm.sh +++ b/egs/wsj/s5/steps/tandem/train_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # This trains a UBM (i.e. a mixture of Gaussians), by clustering diff --git a/egs/wsj/s5/steps/tfrnnlm/check_tensorflow_installed.sh b/egs/wsj/s5/steps/tfrnnlm/check_tensorflow_installed.sh index 3162bf165ad..b8067abcebf 100755 --- a/egs/wsj/s5/steps/tfrnnlm/check_tensorflow_installed.sh +++ b/egs/wsj/s5/steps/tfrnnlm/check_tensorflow_installed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script checks if TF is installed to be used with python # and if TF related binaries in kaldi is ready to use diff --git a/egs/wsj/s5/steps/tfrnnlm/lmrescore_rnnlm_lat.sh b/egs/wsj/s5/steps/tfrnnlm/lmrescore_rnnlm_lat.sh index b84d9a0eef7..437549f339f 100644 --- a/egs/wsj/s5/steps/tfrnnlm/lmrescore_rnnlm_lat.sh +++ b/egs/wsj/s5/steps/tfrnnlm/lmrescore_rnnlm_lat.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Guoguo Chen # 2017 Hainan Xu diff --git a/egs/wsj/s5/steps/tfrnnlm/lmrescore_rnnlm_lat_pruned.sh b/egs/wsj/s5/steps/tfrnnlm/lmrescore_rnnlm_lat_pruned.sh index e098aef85df..254908e6e9c 100755 --- a/egs/wsj/s5/steps/tfrnnlm/lmrescore_rnnlm_lat_pruned.sh +++ b/egs/wsj/s5/steps/tfrnnlm/lmrescore_rnnlm_lat_pruned.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Guoguo Chen # 2017 Hainan Xu diff --git a/egs/wsj/s5/steps/train_deltas.sh b/egs/wsj/s5/steps/train_deltas.sh index 7deace6b13e..bfddfeab7e9 100755 --- a/egs/wsj/s5/steps/train_deltas.sh +++ b/egs/wsj/s5/steps/train_deltas.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/train_diag_ubm.sh b/egs/wsj/s5/steps/train_diag_ubm.sh index 4389844d478..010c04d55cb 100755 --- a/egs/wsj/s5/steps/train_diag_ubm.sh +++ b/egs/wsj/s5/steps/train_diag_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey), 2012. # Apache 2.0. diff --git a/egs/wsj/s5/steps/train_lda_mllt.sh b/egs/wsj/s5/steps/train_lda_mllt.sh index a1828aa6fcb..131b7daea23 100755 --- a/egs/wsj/s5/steps/train_lda_mllt.sh +++ b/egs/wsj/s5/steps/train_lda_mllt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # diff --git a/egs/wsj/s5/steps/train_lvtln.sh b/egs/wsj/s5/steps/train_lvtln.sh index 111e0598edf..43954828ded 100755 --- a/egs/wsj/s5/steps/train_lvtln.sh +++ b/egs/wsj/s5/steps/train_lvtln.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey) # Copyright 2014 Vimal Manohar diff --git a/egs/wsj/s5/steps/train_map.sh b/egs/wsj/s5/steps/train_map.sh index 8194df27b09..97327cfa8b3 100755 --- a/egs/wsj/s5/steps/train_map.sh +++ b/egs/wsj/s5/steps/train_map.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/train_mmi.sh b/egs/wsj/s5/steps/train_mmi.sh index 1adb01b5278..789fa7dbdaf 100755 --- a/egs/wsj/s5/steps/train_mmi.sh +++ b/egs/wsj/s5/steps/train_mmi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # MMI training (or optionally boosted MMI, if you give the --boost option). diff --git a/egs/wsj/s5/steps/train_mmi_fmmi.sh b/egs/wsj/s5/steps/train_mmi_fmmi.sh index d922bfa4e0a..d748cb84997 100755 --- a/egs/wsj/s5/steps/train_mmi_fmmi.sh +++ b/egs/wsj/s5/steps/train_mmi_fmmi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by Johns Hopkins University (Author: Daniel Povey), 2012. Apache 2.0. # This script does MMI discriminative training, including diff --git a/egs/wsj/s5/steps/train_mmi_fmmi_indirect.sh b/egs/wsj/s5/steps/train_mmi_fmmi_indirect.sh index 451b08de513..59f809e0534 100755 --- a/egs/wsj/s5/steps/train_mmi_fmmi_indirect.sh +++ b/egs/wsj/s5/steps/train_mmi_fmmi_indirect.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # by Johns Hopkins University (Author: Daniel Povey), 2012. Apache 2.0. # This script does MMI discriminative training, including diff --git a/egs/wsj/s5/steps/train_mmi_sgmm2.sh b/egs/wsj/s5/steps/train_mmi_sgmm2.sh index 66663cf4a08..e3d4f3df4e0 100755 --- a/egs/wsj/s5/steps/train_mmi_sgmm2.sh +++ b/egs/wsj/s5/steps/train_mmi_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # MMI training (or optionally boosted MMI, if you give the --boost option), diff --git a/egs/wsj/s5/steps/train_mono.sh b/egs/wsj/s5/steps/train_mono.sh index 5a0b79a4a1c..301d40c8464 100755 --- a/egs/wsj/s5/steps/train_mono.sh +++ b/egs/wsj/s5/steps/train_mono.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2019 Xiaohui Zhang # Apache 2.0 diff --git a/egs/wsj/s5/steps/train_mpe.sh b/egs/wsj/s5/steps/train_mpe.sh index a86a47b962b..03cb6eb5eec 100755 --- a/egs/wsj/s5/steps/train_mpe.sh +++ b/egs/wsj/s5/steps/train_mpe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # MMI training (or optionally boosted MMI, if you give the --boost option). diff --git a/egs/wsj/s5/steps/train_quick.sh b/egs/wsj/s5/steps/train_quick.sh index 3325c4964e9..9f8661c95ad 100755 --- a/egs/wsj/s5/steps/train_quick.sh +++ b/egs/wsj/s5/steps/train_quick.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/train_raw_sat.sh b/egs/wsj/s5/steps/train_raw_sat.sh index aa5e8813d71..daeef2c29b4 100755 --- a/egs/wsj/s5/steps/train_raw_sat.sh +++ b/egs/wsj/s5/steps/train_raw_sat.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/train_sat.sh b/egs/wsj/s5/steps/train_sat.sh index 92b744dc75c..1f01acff013 100755 --- a/egs/wsj/s5/steps/train_sat.sh +++ b/egs/wsj/s5/steps/train_sat.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/train_sat_basis.sh b/egs/wsj/s5/steps/train_sat_basis.sh index 5245ea0c619..c4753e060dc 100755 --- a/egs/wsj/s5/steps/train_sat_basis.sh +++ b/egs/wsj/s5/steps/train_sat_basis.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Copyright 2013 GoVivace Inc. (Author: Nagendra Goel), Apache 2.0 diff --git a/egs/wsj/s5/steps/train_segmenter.sh b/egs/wsj/s5/steps/train_segmenter.sh index 515005c0257..96e46f94e44 100755 --- a/egs/wsj/s5/steps/train_segmenter.sh +++ b/egs/wsj/s5/steps/train_segmenter.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/steps/train_sgmm2.sh b/egs/wsj/s5/steps/train_sgmm2.sh index 7f7df2e046a..a6129c70377 100755 --- a/egs/wsj/s5/steps/train_sgmm2.sh +++ b/egs/wsj/s5/steps/train_sgmm2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/train_sgmm2_group.sh b/egs/wsj/s5/steps/train_sgmm2_group.sh index 7263e2d5e8e..38f5422ba07 100755 --- a/egs/wsj/s5/steps/train_sgmm2_group.sh +++ b/egs/wsj/s5/steps/train_sgmm2_group.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. diff --git a/egs/wsj/s5/steps/train_smbr.sh b/egs/wsj/s5/steps/train_smbr.sh index c77b904fba9..294e7a60107 100755 --- a/egs/wsj/s5/steps/train_smbr.sh +++ b/egs/wsj/s5/steps/train_smbr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # sMBR training diff --git a/egs/wsj/s5/steps/train_ubm.sh b/egs/wsj/s5/steps/train_ubm.sh index 5351abbb784..fb9a5cc6b44 100755 --- a/egs/wsj/s5/steps/train_ubm.sh +++ b/egs/wsj/s5/steps/train_ubm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # This trains a UBM (i.e. a mixture of Gaussians), by clustering diff --git a/egs/wsj/s5/steps/word_align_lattices.sh b/egs/wsj/s5/steps/word_align_lattices.sh index a6a1240830f..c4fd4cd0a84 100755 --- a/egs/wsj/s5/steps/word_align_lattices.sh +++ b/egs/wsj/s5/steps/word_align_lattices.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Johns Hopkins University (Author: Daniel Povey) 2012 # Apache 2.0. diff --git a/egs/wsj/s5/utils/best_wer.sh b/egs/wsj/s5/utils/best_wer.sh index 45b855d988f..ad97d7abdee 100755 --- a/egs/wsj/s5/utils/best_wer.sh +++ b/egs/wsj/s5/utils/best_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2010-2011 Microsoft Corporation diff --git a/egs/wsj/s5/utils/build_const_arpa_lm.sh b/egs/wsj/s5/utils/build_const_arpa_lm.sh index 51aca1bb2ad..ecdf6ef8c5e 100755 --- a/egs/wsj/s5/utils/build_const_arpa_lm.sh +++ b/egs/wsj/s5/utils/build_const_arpa_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/wsj/s5/utils/combine_data.sh b/egs/wsj/s5/utils/combine_data.sh index 8daffcea8c5..dc615764a8b 100755 --- a/egs/wsj/s5/utils/combine_data.sh +++ b/egs/wsj/s5/utils/combine_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # 2014 David Snyder diff --git a/egs/wsj/s5/utils/convert_slf_parallel.sh b/egs/wsj/s5/utils/convert_slf_parallel.sh index 1b242ed2c38..b6a6383cd01 100755 --- a/egs/wsj/s5/utils/convert_slf_parallel.sh +++ b/egs/wsj/s5/utils/convert_slf_parallel.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright Brno University of Technology (Author: Karel Vesely) 2014. Apache 2.0. # This script converts lattices to HTK format compatible with other toolkits. diff --git a/egs/wsj/s5/utils/copy_data_dir.sh b/egs/wsj/s5/utils/copy_data_dir.sh index fbd31203e34..9fd420c42a5 100755 --- a/egs/wsj/s5/utils/copy_data_dir.sh +++ b/egs/wsj/s5/utils/copy_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/utils/data/combine_short_segments.sh b/egs/wsj/s5/utils/data/combine_short_segments.sh index 5ce621694f6..88b18ae0c58 100755 --- a/egs/wsj/s5/utils/data/combine_short_segments.sh +++ b/egs/wsj/s5/utils/data/combine_short_segments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/utils/data/extract_wav_segments_data_dir.sh b/egs/wsj/s5/utils/data/extract_wav_segments_data_dir.sh index 129977415e0..4e51e9d6db5 100755 --- a/egs/wsj/s5/utils/data/extract_wav_segments_data_dir.sh +++ b/egs/wsj/s5/utils/data/extract_wav_segments_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # Apache 2.0 diff --git a/egs/wsj/s5/utils/data/get_frame_shift.sh b/egs/wsj/s5/utils/data/get_frame_shift.sh index c836bde1b18..4fcf483b6b5 100755 --- a/egs/wsj/s5/utils/data/get_frame_shift.sh +++ b/egs/wsj/s5/utils/data/get_frame_shift.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/utils/data/get_num_frames.sh b/egs/wsj/s5/utils/data/get_num_frames.sh index 996468631fa..d819bf7b117 100755 --- a/egs/wsj/s5/utils/data/get_num_frames.sh +++ b/egs/wsj/s5/utils/data/get_num_frames.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script works out the approximate number of frames in a training directory. # This is sometimes needed by higher-level scripts diff --git a/egs/wsj/s5/utils/data/get_reco2dur.sh b/egs/wsj/s5/utils/data/get_reco2dur.sh index 943e739c53c..24f51e72367 100755 --- a/egs/wsj/s5/utils/data/get_reco2dur.sh +++ b/egs/wsj/s5/utils/data/get_reco2dur.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (author: Daniel Povey) # 2018 Andrea Carmantini diff --git a/egs/wsj/s5/utils/data/get_segments_for_data.sh b/egs/wsj/s5/utils/data/get_segments_for_data.sh index 7adc4c465d3..6b161b31e90 100755 --- a/egs/wsj/s5/utils/data/get_segments_for_data.sh +++ b/egs/wsj/s5/utils/data/get_segments_for_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script operates on a data directory, such as in data/train/, # and writes new segments to stdout. The file 'segments' maps from diff --git a/egs/wsj/s5/utils/data/get_utt2dur.sh b/egs/wsj/s5/utils/data/get_utt2dur.sh index a760981d198..09c860703c0 100755 --- a/egs/wsj/s5/utils/data/get_utt2dur.sh +++ b/egs/wsj/s5/utils/data/get_utt2dur.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/utils/data/limit_feature_dim.sh b/egs/wsj/s5/utils/data/limit_feature_dim.sh index 2d969ee569b..d88a55e3ec6 100755 --- a/egs/wsj/s5/utils/data/limit_feature_dim.sh +++ b/egs/wsj/s5/utils/data/limit_feature_dim.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Alibaba Robotics Corp. (author: Xingyu Na) # Apache 2.0 diff --git a/egs/wsj/s5/utils/data/modify_speaker_info.sh b/egs/wsj/s5/utils/data/modify_speaker_info.sh index f75e9be5f67..10bd11cc079 100755 --- a/egs/wsj/s5/utils/data/modify_speaker_info.sh +++ b/egs/wsj/s5/utils/data/modify_speaker_info.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013-2016 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/utils/data/modify_speaker_info_to_recording.sh b/egs/wsj/s5/utils/data/modify_speaker_info_to_recording.sh index fb5773f77c3..9c75e8d6c04 100755 --- a/egs/wsj/s5/utils/data/modify_speaker_info_to_recording.sh +++ b/egs/wsj/s5/utils/data/modify_speaker_info_to_recording.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # Apache 2.0. diff --git a/egs/wsj/s5/utils/data/perturb_data_dir_speed_3way.sh b/egs/wsj/s5/utils/data/perturb_data_dir_speed_3way.sh index cd291427398..a3a97c747e8 100755 --- a/egs/wsj/s5/utils/data/perturb_data_dir_speed_3way.sh +++ b/egs/wsj/s5/utils/data/perturb_data_dir_speed_3way.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016-2018 Johns Hopkins University (author: Daniel Povey) # 2018 Hossein Hadian diff --git a/egs/wsj/s5/utils/data/perturb_data_dir_volume.sh b/egs/wsj/s5/utils/data/perturb_data_dir_volume.sh index e357ba8cbfb..d1cdcb253f3 100755 --- a/egs/wsj/s5/utils/data/perturb_data_dir_volume.sh +++ b/egs/wsj/s5/utils/data/perturb_data_dir_volume.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/utils/data/remove_dup_utts.sh b/egs/wsj/s5/utils/data/remove_dup_utts.sh index 529474b5eb1..c1eaa33c994 100755 --- a/egs/wsj/s5/utils/data/remove_dup_utts.sh +++ b/egs/wsj/s5/utils/data/remove_dup_utts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Remove excess utterances once they appear more than a specified # number of times with the same transcription, in a data set. diff --git a/egs/wsj/s5/utils/data/shift_and_combine_feats.sh b/egs/wsj/s5/utils/data/shift_and_combine_feats.sh index 217b7768078..e3f927a268f 100755 --- a/egs/wsj/s5/utils/data/shift_and_combine_feats.sh +++ b/egs/wsj/s5/utils/data/shift_and_combine_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian diff --git a/egs/wsj/s5/utils/data/shift_feats.sh b/egs/wsj/s5/utils/data/shift_feats.sh index 2ae7b2435d3..2a4dfa842f1 100755 --- a/egs/wsj/s5/utils/data/shift_feats.sh +++ b/egs/wsj/s5/utils/data/shift_feats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vimal Manohar # 2017 Hossein Hadian diff --git a/egs/wsj/s5/utils/data/subsegment_data_dir.sh b/egs/wsj/s5/utils/data/subsegment_data_dir.sh index 088d0ff1871..6de0e9b11c0 100755 --- a/egs/wsj/s5/utils/data/subsegment_data_dir.sh +++ b/egs/wsj/s5/utils/data/subsegment_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/utils/dict_dir_add_pronprobs.sh b/egs/wsj/s5/utils/dict_dir_add_pronprobs.sh index 59ae4a4c994..1f4f398f450 100755 --- a/egs/wsj/s5/utils/dict_dir_add_pronprobs.sh +++ b/egs/wsj/s5/utils/dict_dir_add_pronprobs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Apache 2.0. # Copyright 2014 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/wsj/s5/utils/fix_data_dir.sh b/egs/wsj/s5/utils/fix_data_dir.sh index 8adf5e45e7b..ed4710d0b1f 100755 --- a/egs/wsj/s5/utils/fix_data_dir.sh +++ b/egs/wsj/s5/utils/fix_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script makes sure that only the segments present in # all of "feats.scp", "wav.scp" [if present], segments [if present] diff --git a/egs/wsj/s5/utils/format_lm_sri.sh b/egs/wsj/s5/utils/format_lm_sri.sh index 08f842a08f5..f1c3ad675ef 100755 --- a/egs/wsj/s5/utils/format_lm_sri.sh +++ b/egs/wsj/s5/utils/format_lm_sri.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Arnab Ghoshal # Copyright 2010-2011 Microsoft Corporation diff --git a/egs/wsj/s5/utils/lang/adjust_unk_graph.sh b/egs/wsj/s5/utils/lang/adjust_unk_graph.sh index 619f5953f9f..23766d7247a 100755 --- a/egs/wsj/s5/utils/lang/adjust_unk_graph.sh +++ b/egs/wsj/s5/utils/lang/adjust_unk_graph.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Xiaohui Zhang # Apache 2.0 diff --git a/egs/wsj/s5/utils/lang/bpe/add_final_optional_silence.sh b/egs/wsj/s5/utils/lang/bpe/add_final_optional_silence.sh index 11e6b897382..103edab17e1 100755 --- a/egs/wsj/s5/utils/lang/bpe/add_final_optional_silence.sh +++ b/egs/wsj/s5/utils/lang/bpe/add_final_optional_silence.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./path.sh final_sil_prob=0.5 diff --git a/egs/wsj/s5/utils/lang/check_phones_compatible.sh b/egs/wsj/s5/utils/lang/check_phones_compatible.sh index cfad06d2b8c..6c2b642071e 100755 --- a/egs/wsj/s5/utils/lang/check_phones_compatible.sh +++ b/egs/wsj/s5/utils/lang/check_phones_compatible.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Hang Lyu # Licensed udner the Apache License, Version 2.0 (the "Lincense"); diff --git a/egs/wsj/s5/utils/lang/extend_lang.sh b/egs/wsj/s5/utils/lang/extend_lang.sh index 7602cb983de..400f748702a 100755 --- a/egs/wsj/s5/utils/lang/extend_lang.sh +++ b/egs/wsj/s5/utils/lang/extend_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Johns Hopkins University (Author: Daniel Povey); # 2019 Dongji Gao diff --git a/egs/wsj/s5/utils/lang/internal/apply_unk_lm.sh b/egs/wsj/s5/utils/lang/internal/apply_unk_lm.sh index 740ad6a79ec..1e6f87d56ac 100755 --- a/egs/wsj/s5/utils/lang/internal/apply_unk_lm.sh +++ b/egs/wsj/s5/utils/lang/internal/apply_unk_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (Author: Daniel Povey); diff --git a/egs/wsj/s5/utils/lang/make_phone_bigram_lang.sh b/egs/wsj/s5/utils/lang/make_phone_bigram_lang.sh index 1d3d04896b4..da6361ea429 100755 --- a/egs/wsj/s5/utils/lang/make_phone_bigram_lang.sh +++ b/egs/wsj/s5/utils/lang/make_phone_bigram_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Apache 2.0. Copyright 2012, Johns Hopkins University (author: Daniel Povey) diff --git a/egs/wsj/s5/utils/lang/make_unk_lm.sh b/egs/wsj/s5/utils/lang/make_unk_lm.sh index 2564c53ad4d..f3a41e1af4e 100755 --- a/egs/wsj/s5/utils/lang/make_unk_lm.sh +++ b/egs/wsj/s5/utils/lang/make_unk_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Johns Hopkins University (Author: Daniel Povey); diff --git a/egs/wsj/s5/utils/make_absolute.sh b/egs/wsj/s5/utils/make_absolute.sh index 523e19ac975..957bfbaa870 100755 --- a/egs/wsj/s5/utils/make_absolute.sh +++ b/egs/wsj/s5/utils/make_absolute.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script replaces the command readlink -f (which is not portable). # It turns a pathname into an absolute pathname, including following soft links. diff --git a/egs/wsj/s5/utils/mkgraph.sh b/egs/wsj/s5/utils/mkgraph.sh index 31e86cd38f6..929396aaf19 100755 --- a/egs/wsj/s5/utils/mkgraph.sh +++ b/egs/wsj/s5/utils/mkgraph.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2012 Microsoft Corporation # 2012-2013 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/utils/nnet/subset_data_tr_cv.sh b/egs/wsj/s5/utils/nnet/subset_data_tr_cv.sh index d8694bdf36d..77a9c512103 100755 --- a/egs/wsj/s5/utils/nnet/subset_data_tr_cv.sh +++ b/egs/wsj/s5/utils/nnet/subset_data_tr_cv.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2017 Brno University of Technology (Author: Karel Vesely); # Apache 2.0 diff --git a/egs/wsj/s5/utils/parallel/limit_num_gpus.sh b/egs/wsj/s5/utils/parallel/limit_num_gpus.sh index 9d7caddd1f6..a5244ddb3f9 100755 --- a/egs/wsj/s5/utils/parallel/limit_num_gpus.sh +++ b/egs/wsj/s5/utils/parallel/limit_num_gpus.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script functions as a wrapper of a bash command that uses GPUs. # diff --git a/egs/wsj/s5/utils/parse_options.sh b/egs/wsj/s5/utils/parse_options.sh index 335e69e9ac7..71fb9e5ea1d 100755 --- a/egs/wsj/s5/utils/parse_options.sh +++ b/egs/wsj/s5/utils/parse_options.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey); # Arnab Ghoshal, Karel Vesely diff --git a/egs/wsj/s5/utils/perturb_data_dir_speed.sh b/egs/wsj/s5/utils/perturb_data_dir_speed.sh index 924ebdc3473..fa22f4c00fe 100755 --- a/egs/wsj/s5/utils/perturb_data_dir_speed.sh +++ b/egs/wsj/s5/utils/perturb_data_dir_speed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2013 Johns Hopkins University (author: Daniel Povey) # 2014 Tom Ko diff --git a/egs/wsj/s5/utils/prepare_extended_lang.sh b/egs/wsj/s5/utils/prepare_extended_lang.sh index 57cfcaabe34..c7b4fce5c2a 100755 --- a/egs/wsj/s5/utils/prepare_extended_lang.sh +++ b/egs/wsj/s5/utils/prepare_extended_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Xiaohui Zhang # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/egs/wsj/s5/utils/prepare_lang.sh b/egs/wsj/s5/utils/prepare_lang.sh index fa9b9122786..bc7d8ff19bd 100755 --- a/egs/wsj/s5/utils/prepare_lang.sh +++ b/egs/wsj/s5/utils/prepare_lang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Daniel Povey); # Arnab Ghoshal # 2014 Guoguo Chen 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 adc2cefbe42..d7d273efb26 100755 --- a/egs/wsj/s5/utils/prepare_online_nnet_dist_build.sh +++ b/egs/wsj/s5/utils/prepare_online_nnet_dist_build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (Author: Vijayaditya Peddinti) # Guoguo Chen diff --git a/egs/wsj/s5/utils/remove_data_links.sh b/egs/wsj/s5/utils/remove_data_links.sh index 8ec68f91bc9..e1973acf2db 100755 --- a/egs/wsj/s5/utils/remove_data_links.sh +++ b/egs/wsj/s5/utils/remove_data_links.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This program searches within a directory for soft links that # appear to be created by 'create_data_link.pl' to a 'storage/' subdirectory, diff --git a/egs/wsj/s5/utils/rnnlm_compute_scores.sh b/egs/wsj/s5/utils/rnnlm_compute_scores.sh index 0d0eb606ddc..a268387e42d 100755 --- a/egs/wsj/s5/utils/rnnlm_compute_scores.sh +++ b/egs/wsj/s5/utils/rnnlm_compute_scores.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Compute scores from RNNLM. This script takes a directory # $dir (e.g. dir=local/rnnlm/rnnlm.voc30.hl30 ), diff --git a/egs/wsj/s5/utils/show_lattice.sh b/egs/wsj/s5/utils/show_lattice.sh index d8f8d71f182..0a404441dd9 100755 --- a/egs/wsj/s5/utils/show_lattice.sh +++ b/egs/wsj/s5/utils/show_lattice.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash format=pdf # pdf svg mode=save # display save diff --git a/egs/wsj/s5/utils/split_data.sh b/egs/wsj/s5/utils/split_data.sh index bc5894e7551..8aa71a1f236 100755 --- a/egs/wsj/s5/utils/split_data.sh +++ b/egs/wsj/s5/utils/split_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2013 Microsoft Corporation # Johns Hopkins University (Author: Daniel Povey) diff --git a/egs/wsj/s5/utils/subset_data_dir.sh b/egs/wsj/s5/utils/subset_data_dir.sh index f202a998b5d..b6fe7407149 100755 --- a/egs/wsj/s5/utils/subset_data_dir.sh +++ b/egs/wsj/s5/utils/subset_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2010-2011 Microsoft Corporation # 2012-2013 Johns Hopkins University (Author: Daniel Povey) # Apache 2.0 diff --git a/egs/wsj/s5/utils/subword/prepare_lang_subword.sh b/egs/wsj/s5/utils/subword/prepare_lang_subword.sh index 8f5e4ecce6b..51a0f8c2353 100755 --- a/egs/wsj/s5/utils/subword/prepare_lang_subword.sh +++ b/egs/wsj/s5/utils/subword/prepare_lang_subword.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012-2013 Johns Hopkins University (Author: Daniel Povey); # Arnab Ghoshal # 2014 Guoguo Chen diff --git a/egs/wsj/s5/utils/subword/prepare_subword_text.sh b/egs/wsj/s5/utils/subword/prepare_subword_text.sh index 0f0ce68c44f..aa0163235a6 100755 --- a/egs/wsj/s5/utils/subword/prepare_subword_text.sh +++ b/egs/wsj/s5/utils/subword/prepare_subword_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # 2019 Dongji Gao diff --git a/egs/wsj/s5/utils/validate_data_dir.sh b/egs/wsj/s5/utils/validate_data_dir.sh index c7e633ab57b..9c0e350eeef 100755 --- a/egs/wsj/s5/utils/validate_data_dir.sh +++ b/egs/wsj/s5/utils/validate_data_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cmd="$@" diff --git a/egs/yesno/s5/local/prepare_data.sh b/egs/yesno/s5/local/prepare_data.sh index ca5dfcd8249..d5da6ad7573 100755 --- a/egs/yesno/s5/local/prepare_data.sh +++ b/egs/yesno/s5/local/prepare_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash mkdir -p data/local local=`pwd`/local diff --git a/egs/yesno/s5/local/prepare_dict.sh b/egs/yesno/s5/local/prepare_dict.sh index 661960c3ef2..ba30b3c432e 100755 --- a/egs/yesno/s5/local/prepare_dict.sh +++ b/egs/yesno/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash mkdir -p data/local/dict diff --git a/egs/yesno/s5/local/prepare_lm.sh b/egs/yesno/s5/local/prepare_lm.sh index da284f3dacb..1dbab7fe993 100755 --- a/egs/yesno/s5/local/prepare_lm.sh +++ b/egs/yesno/s5/local/prepare_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./path.sh diff --git a/egs/yesno/s5/run.sh b/egs/yesno/s5/run.sh index f881da7a0e6..c040a7dba5f 100755 --- a/egs/yesno/s5/run.sh +++ b/egs/yesno/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash train_cmd="utils/run.pl" decode_cmd="utils/run.pl" diff --git a/egs/yomdle_fa/v1/local/augment_data.sh b/egs/yomdle_fa/v1/local/augment_data.sh index 1c38bcb072d..881be6ca36b 100755 --- a/egs/yomdle_fa/v1/local/augment_data.sh +++ b/egs/yomdle_fa/v1/local/augment_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # 2018 Ashish Arora diff --git a/egs/yomdle_fa/v1/local/chain/compare_wer.sh b/egs/yomdle_fa/v1/local/chain/compare_wer.sh index ab880c1adb5..eeb831e8e6b 100755 --- a/egs/yomdle_fa/v1/local/chain/compare_wer.sh +++ b/egs/yomdle_fa/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/yomdle_fa/v1/local/chain/run_cnn_e2eali_1b.sh b/egs/yomdle_fa/v1/local/chain/run_cnn_e2eali_1b.sh index 700b57d9fce..9857282b828 100755 --- a/egs/yomdle_fa/v1/local/chain/run_cnn_e2eali_1b.sh +++ b/egs/yomdle_fa/v1/local/chain/run_cnn_e2eali_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1b is the same as chainali_1a but uses the e2e chain model to get the # lattice alignments and to build a tree diff --git a/egs/yomdle_fa/v1/local/chain/run_flatstart_cnn1a.sh b/egs/yomdle_fa/v1/local/chain/run_flatstart_cnn1a.sh index bb5352943f6..089d1bf5002 100755 --- a/egs/yomdle_fa/v1/local/chain/run_flatstart_cnn1a.sh +++ b/egs/yomdle_fa/v1/local/chain/run_flatstart_cnn1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script does end2end chain training (i.e. from scratch) diff --git a/egs/yomdle_fa/v1/local/create_download.sh b/egs/yomdle_fa/v1/local/create_download.sh index 1040ecc2165..7d1f527e673 100755 --- a/egs/yomdle_fa/v1/local/create_download.sh +++ b/egs/yomdle_fa/v1/local/create_download.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Chun-Chieh Chang # The original format of the dataset given is GEDI and page images. diff --git a/egs/yomdle_fa/v1/local/extract_features.sh b/egs/yomdle_fa/v1/local/extract_features.sh index f75837ae5b3..c9a36991e94 100755 --- a/egs/yomdle_fa/v1/local/extract_features.sh +++ b/egs/yomdle_fa/v1/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/yomdle_fa/v1/local/score.sh b/egs/yomdle_fa/v1/local/score.sh index f2405205f02..6e98902f5bd 100755 --- a/egs/yomdle_fa/v1/local/score.sh +++ b/egs/yomdle_fa/v1/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh --max-lmwt 10 "$@" diff --git a/egs/yomdle_fa/v1/local/train_lm.sh b/egs/yomdle_fa/v1/local/train_lm.sh index bc738f217da..9e651d63aff 100755 --- a/egs/yomdle_fa/v1/local/train_lm.sh +++ b/egs/yomdle_fa/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/yomdle_fa/v1/local/train_lm_lr.sh b/egs/yomdle_fa/v1/local/train_lm_lr.sh index 5bfc20acdeb..3e7c644eb1e 100755 --- a/egs/yomdle_fa/v1/local/train_lm_lr.sh +++ b/egs/yomdle_fa/v1/local/train_lm_lr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/yomdle_fa/v1/run.sh b/egs/yomdle_fa/v1/run.sh index a7547b1ee69..7905e4537e1 100755 --- a/egs/yomdle_fa/v1/run.sh +++ b/egs/yomdle_fa/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e stage=0 diff --git a/egs/yomdle_korean/v1/local/augment_data.sh b/egs/yomdle_korean/v1/local/augment_data.sh index 136bfd24eb2..d607afc05a5 100755 --- a/egs/yomdle_korean/v1/local/augment_data.sh +++ b/egs/yomdle_korean/v1/local/augment_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # 2018 Ashish Arora diff --git a/egs/yomdle_korean/v1/local/chain/compare_wer.sh b/egs/yomdle_korean/v1/local/chain/compare_wer.sh index 80f31e0f311..2219a7eb0d7 100755 --- a/egs/yomdle_korean/v1/local/chain/compare_wer.sh +++ b/egs/yomdle_korean/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/yomdle_korean/v1/local/chain/run_e2e_cnn.sh b/egs/yomdle_korean/v1/local/chain/run_e2e_cnn.sh index cea60a221a1..fe71f133936 100755 --- a/egs/yomdle_korean/v1/local/chain/run_e2e_cnn.sh +++ b/egs/yomdle_korean/v1/local/chain/run_e2e_cnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian diff --git a/egs/yomdle_korean/v1/local/chain/tuning/run_cnn_e2eali_1a.sh b/egs/yomdle_korean/v1/local/chain/tuning/run_cnn_e2eali_1a.sh index 03333f6d229..b275b7013f6 100755 --- a/egs/yomdle_korean/v1/local/chain/tuning/run_cnn_e2eali_1a.sh +++ b/egs/yomdle_korean/v1/local/chain/tuning/run_cnn_e2eali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1a is the same as 1a but uses the e2e chain model to get the # lattice alignments and to build a tree diff --git a/egs/yomdle_korean/v1/local/chain/tuning/run_cnn_e2eali_1b.sh b/egs/yomdle_korean/v1/local/chain/tuning/run_cnn_e2eali_1b.sh index fd9cdc8921d..e5f8ec32c91 100755 --- a/egs/yomdle_korean/v1/local/chain/tuning/run_cnn_e2eali_1b.sh +++ b/egs/yomdle_korean/v1/local/chain/tuning/run_cnn_e2eali_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1b is the same as e2eali_1a but has fewer CNN layers, smaller # l2-regularize, more epochs and uses dropout. diff --git a/egs/yomdle_korean/v1/local/extract_features.sh b/egs/yomdle_korean/v1/local/extract_features.sh index 3880ebad3e8..315c5fbc251 100755 --- a/egs/yomdle_korean/v1/local/extract_features.sh +++ b/egs/yomdle_korean/v1/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/yomdle_korean/v1/local/score.sh b/egs/yomdle_korean/v1/local/score.sh index 31564d25326..e1befafd8b2 100755 --- a/egs/yomdle_korean/v1/local/score.sh +++ b/egs/yomdle_korean/v1/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh "$@" diff --git a/egs/yomdle_korean/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1a.sh b/egs/yomdle_korean/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1a.sh index f6b2c1bac42..6733032e7c1 100755 --- a/egs/yomdle_korean/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1a.sh +++ b/egs/yomdle_korean/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # 2018 Ashish Arora diff --git a/egs/yomdle_korean/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1b.sh b/egs/yomdle_korean/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1b.sh index 8185fa2645d..1207236e813 100755 --- a/egs/yomdle_korean/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1b.sh +++ b/egs/yomdle_korean/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # 2018 Ashish Arora diff --git a/egs/yomdle_korean/v1/local/semisup/run_semisup.sh b/egs/yomdle_korean/v1/local/semisup/run_semisup.sh index 5e20f50c99e..dea60195b68 100755 --- a/egs/yomdle_korean/v1/local/semisup/run_semisup.sh +++ b/egs/yomdle_korean/v1/local/semisup/run_semisup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # 2018 Ashish Arora diff --git a/egs/yomdle_korean/v1/local/train_lm.sh b/egs/yomdle_korean/v1/local/train_lm.sh index c73c42fb7dc..c6338cab713 100755 --- a/egs/yomdle_korean/v1/local/train_lm.sh +++ b/egs/yomdle_korean/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/yomdle_korean/v1/run_end2end.sh b/egs/yomdle_korean/v1/run_end2end.sh index 65f5beb4b08..4d6f34dfe82 100755 --- a/egs/yomdle_korean/v1/run_end2end.sh +++ b/egs/yomdle_korean/v1/run_end2end.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # Ashish Arora diff --git a/egs/yomdle_russian/v1/local/chain/compare_wer.sh b/egs/yomdle_russian/v1/local/chain/compare_wer.sh index 80f31e0f311..2219a7eb0d7 100755 --- a/egs/yomdle_russian/v1/local/chain/compare_wer.sh +++ b/egs/yomdle_russian/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/yomdle_russian/v1/local/chain/run_e2e_cnn.sh b/egs/yomdle_russian/v1/local/chain/run_e2e_cnn.sh index 6f5742cd34b..5d026267e10 100755 --- a/egs/yomdle_russian/v1/local/chain/run_e2e_cnn.sh +++ b/egs/yomdle_russian/v1/local/chain/run_e2e_cnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script does end2end chain training (i.e. from scratch) diff --git a/egs/yomdle_russian/v1/local/chain/tuning/run_cnn_e2eali_1a.sh b/egs/yomdle_russian/v1/local/chain/tuning/run_cnn_e2eali_1a.sh index cd582472993..5b37d0fdcaf 100755 --- a/egs/yomdle_russian/v1/local/chain/tuning/run_cnn_e2eali_1a.sh +++ b/egs/yomdle_russian/v1/local/chain/tuning/run_cnn_e2eali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # local/chain/compare_wer.sh exp/chain/cnn_e2eali_1a # System cnn_e2eali_1a rescoring + nomalized diff --git a/egs/yomdle_russian/v1/local/extract_features.sh b/egs/yomdle_russian/v1/local/extract_features.sh index 3880ebad3e8..315c5fbc251 100755 --- a/egs/yomdle_russian/v1/local/extract_features.sh +++ b/egs/yomdle_russian/v1/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/yomdle_russian/v1/local/score.sh b/egs/yomdle_russian/v1/local/score.sh index 31564d25326..e1befafd8b2 100755 --- a/egs/yomdle_russian/v1/local/score.sh +++ b/egs/yomdle_russian/v1/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh "$@" diff --git a/egs/yomdle_russian/v1/local/train_lm.sh b/egs/yomdle_russian/v1/local/train_lm.sh index c73c42fb7dc..c6338cab713 100755 --- a/egs/yomdle_russian/v1/local/train_lm.sh +++ b/egs/yomdle_russian/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/yomdle_russian/v1/run_end2end.sh b/egs/yomdle_russian/v1/run_end2end.sh index 12beebeaa05..e000f2305bd 100755 --- a/egs/yomdle_russian/v1/run_end2end.sh +++ b/egs/yomdle_russian/v1/run_end2end.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # Ashish Arora diff --git a/egs/yomdle_tamil/v1/local/augment_data.sh b/egs/yomdle_tamil/v1/local/augment_data.sh index 136bfd24eb2..d607afc05a5 100755 --- a/egs/yomdle_tamil/v1/local/augment_data.sh +++ b/egs/yomdle_tamil/v1/local/augment_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # 2018 Ashish Arora diff --git a/egs/yomdle_tamil/v1/local/chain/compare_wer.sh b/egs/yomdle_tamil/v1/local/chain/compare_wer.sh index 80f31e0f311..2219a7eb0d7 100755 --- a/egs/yomdle_tamil/v1/local/chain/compare_wer.sh +++ b/egs/yomdle_tamil/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/yomdle_tamil/v1/local/chain/run_e2e_cnn.sh b/egs/yomdle_tamil/v1/local/chain/run_e2e_cnn.sh index f553467d4a6..4d062aa19d7 100755 --- a/egs/yomdle_tamil/v1/local/chain/run_e2e_cnn.sh +++ b/egs/yomdle_tamil/v1/local/chain/run_e2e_cnn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian diff --git a/egs/yomdle_tamil/v1/local/chain/tuning/run_cnn_e2eali_1a.sh b/egs/yomdle_tamil/v1/local/chain/tuning/run_cnn_e2eali_1a.sh index 03333f6d229..b275b7013f6 100755 --- a/egs/yomdle_tamil/v1/local/chain/tuning/run_cnn_e2eali_1a.sh +++ b/egs/yomdle_tamil/v1/local/chain/tuning/run_cnn_e2eali_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1a is the same as 1a but uses the e2e chain model to get the # lattice alignments and to build a tree diff --git a/egs/yomdle_tamil/v1/local/chain/tuning/run_cnn_e2eali_1b.sh b/egs/yomdle_tamil/v1/local/chain/tuning/run_cnn_e2eali_1b.sh index fb15ce10dde..63aa81d35c9 100755 --- a/egs/yomdle_tamil/v1/local/chain/tuning/run_cnn_e2eali_1b.sh +++ b/egs/yomdle_tamil/v1/local/chain/tuning/run_cnn_e2eali_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1b is the same as e2eali_1a but has fewer CNN layers, smaller # l2-regularize, more epochs and uses dropout. diff --git a/egs/yomdle_tamil/v1/local/extract_features.sh b/egs/yomdle_tamil/v1/local/extract_features.sh index 3880ebad3e8..315c5fbc251 100755 --- a/egs/yomdle_tamil/v1/local/extract_features.sh +++ b/egs/yomdle_tamil/v1/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/yomdle_tamil/v1/local/score.sh b/egs/yomdle_tamil/v1/local/score.sh index 31564d25326..e1befafd8b2 100755 --- a/egs/yomdle_tamil/v1/local/score.sh +++ b/egs/yomdle_tamil/v1/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh "$@" diff --git a/egs/yomdle_tamil/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1a.sh b/egs/yomdle_tamil/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1a.sh index f6b2c1bac42..6733032e7c1 100755 --- a/egs/yomdle_tamil/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1a.sh +++ b/egs/yomdle_tamil/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # 2018 Ashish Arora diff --git a/egs/yomdle_tamil/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1b.sh b/egs/yomdle_tamil/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1b.sh index 17d59642b05..37c9f8ec320 100755 --- a/egs/yomdle_tamil/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1b.sh +++ b/egs/yomdle_tamil/v1/local/semisup/chain/run_cnn_chainali_semisupervised_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # 2018 Ashish Arora diff --git a/egs/yomdle_tamil/v1/local/semisup/run_semisup.sh b/egs/yomdle_tamil/v1/local/semisup/run_semisup.sh index 0b82def2ead..666f796d494 100755 --- a/egs/yomdle_tamil/v1/local/semisup/run_semisup.sh +++ b/egs/yomdle_tamil/v1/local/semisup/run_semisup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Vimal Manohar # 2018 Ashish Arora diff --git a/egs/yomdle_tamil/v1/local/train_lm.sh b/egs/yomdle_tamil/v1/local/train_lm.sh index bb21c67b63f..b491895b11b 100755 --- a/egs/yomdle_tamil/v1/local/train_lm.sh +++ b/egs/yomdle_tamil/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/yomdle_tamil/v1/local/yomdle/create_download_dir.sh b/egs/yomdle_tamil/v1/local/yomdle/create_download_dir.sh index de932e01021..f8932e4ee4d 100755 --- a/egs/yomdle_tamil/v1/local/yomdle/create_download_dir.sh +++ b/egs/yomdle_tamil/v1/local/yomdle/create_download_dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Chun Chieh Chang # 2018 Ashish Arora diff --git a/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/baseline_text_detect.sh b/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/baseline_text_detect.sh index 057d22ab492..3eef4716a77 100755 --- a/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/baseline_text_detect.sh +++ b/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/baseline_text_detect.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # INPUT: # LANGUAGE - SLAM language to evaluate diff --git a/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/eval_text_detect.sh b/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/eval_text_detect.sh index 2243d46e10a..7c2427fb0d5 100755 --- a/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/eval_text_detect.sh +++ b/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/eval_text_detect.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # DESC: Evaluate text detection bounding boxes # diff --git a/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/normalized_score.sh b/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/normalized_score.sh index f55600939ae..de6bc887b24 100755 --- a/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/normalized_score.sh +++ b/egs/yomdle_tamil/v1/local/yomdle/normalized_scoring/normalized_score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script normalizes hypothesis and reference file and performs scoring. # Eg. ./local/yomdle/normalized_scoring/normalized_score.sh diff --git a/egs/yomdle_tamil/v1/run_end2end.sh b/egs/yomdle_tamil/v1/run_end2end.sh index e6a8e0a4432..888de5fc5b3 100755 --- a/egs/yomdle_tamil/v1/run_end2end.sh +++ b/egs/yomdle_tamil/v1/run_end2end.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # Ashish Arora diff --git a/egs/yomdle_zh/v1/local/augment_data.sh b/egs/yomdle_zh/v1/local/augment_data.sh index 1f13ed15ded..d498c54665c 100755 --- a/egs/yomdle_zh/v1/local/augment_data.sh +++ b/egs/yomdle_zh/v1/local/augment_data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Hossein Hadian # 2018 Ashish Arora diff --git a/egs/yomdle_zh/v1/local/chain/compare_wer.sh b/egs/yomdle_zh/v1/local/chain/compare_wer.sh index ab880c1adb5..eeb831e8e6b 100755 --- a/egs/yomdle_zh/v1/local/chain/compare_wer.sh +++ b/egs/yomdle_zh/v1/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b} diff --git a/egs/yomdle_zh/v1/local/chain/run_cnn_e2eali_1b.sh b/egs/yomdle_zh/v1/local/chain/run_cnn_e2eali_1b.sh index 357ce6a1f8e..f6cbc2ac171 100755 --- a/egs/yomdle_zh/v1/local/chain/run_cnn_e2eali_1b.sh +++ b/egs/yomdle_zh/v1/local/chain/run_cnn_e2eali_1b.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # e2eali_1b is the same as chainali_1a but uses the e2e chain model to get the # lattice alignments and to build a tree diff --git a/egs/yomdle_zh/v1/local/chain/run_flatstart_cnn1a.sh b/egs/yomdle_zh/v1/local/chain/run_flatstart_cnn1a.sh index 28ea2863e38..2b6c9d7bc2a 100755 --- a/egs/yomdle_zh/v1/local/chain/run_flatstart_cnn1a.sh +++ b/egs/yomdle_zh/v1/local/chain/run_flatstart_cnn1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hossein Hadian # This script does end2end chain training (i.e. from scratch) diff --git a/egs/yomdle_zh/v1/local/create_download.sh b/egs/yomdle_zh/v1/local/create_download.sh index 1daad354473..3f949ab26b1 100755 --- a/egs/yomdle_zh/v1/local/create_download.sh +++ b/egs/yomdle_zh/v1/local/create_download.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Chun-Chieh Chang # The original format of the dataset given is GEDI and page images. diff --git a/egs/yomdle_zh/v1/local/extract_features.sh b/egs/yomdle_zh/v1/local/extract_features.sh index f75837ae5b3..c9a36991e94 100755 --- a/egs/yomdle_zh/v1/local/extract_features.sh +++ b/egs/yomdle_zh/v1/local/extract_features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Yiwen Shao # 2018 Ashish Arora diff --git a/egs/yomdle_zh/v1/local/score.sh b/egs/yomdle_zh/v1/local/score.sh index f2405205f02..6e98902f5bd 100755 --- a/egs/yomdle_zh/v1/local/score.sh +++ b/egs/yomdle_zh/v1/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash steps/scoring/score_kaldi_wer.sh --max-lmwt 10 "$@" diff --git a/egs/yomdle_zh/v1/local/train_lm.sh b/egs/yomdle_zh/v1/local/train_lm.sh index bc738f217da..9e651d63aff 100755 --- a/egs/yomdle_zh/v1/local/train_lm.sh +++ b/egs/yomdle_zh/v1/local/train_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/yomdle_zh/v1/local/train_lm_lr.sh b/egs/yomdle_zh/v1/local/train_lm_lr.sh index a8b1bfb76a4..70efc7fd8dd 100755 --- a/egs/yomdle_zh/v1/local/train_lm_lr.sh +++ b/egs/yomdle_zh/v1/local/train_lm_lr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/egs/yomdle_zh/v1/run.sh b/egs/yomdle_zh/v1/run.sh index eb8e9e11927..4b581372ecf 100755 --- a/egs/yomdle_zh/v1/run.sh +++ b/egs/yomdle_zh/v1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e stage=0 diff --git a/egs/zeroth_korean/s5/local/chain/compare_wer.sh b/egs/zeroth_korean/s5/local/chain/compare_wer.sh index e8366bfb358..bc06a630189 100755 --- a/egs/zeroth_korean/s5/local/chain/compare_wer.sh +++ b/egs/zeroth_korean/s5/local/chain/compare_wer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script is used for comparing decoding results between systems. # e.g. local/chain/compare_wer.sh exp/chain/tdnn_{c,d}_sp diff --git a/egs/zeroth_korean/s5/local/chain/tuning/run_tdnn_1a.sh b/egs/zeroth_korean/s5/local/chain/tuning/run_tdnn_1a.sh index 14b9a8d6c8e..b9f554b9743 100755 --- a/egs/zeroth_korean/s5/local/chain/tuning/run_tdnn_1a.sh +++ b/egs/zeroth_korean/s5/local/chain/tuning/run_tdnn_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/zeroth_korean/s5/local/chain/tuning/run_tdnn_opgru_1a.sh b/egs/zeroth_korean/s5/local/chain/tuning/run_tdnn_opgru_1a.sh index 28b36243ba3..2effbd7451e 100755 --- a/egs/zeroth_korean/s5/local/chain/tuning/run_tdnn_opgru_1a.sh +++ b/egs/zeroth_korean/s5/local/chain/tuning/run_tdnn_opgru_1a.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail diff --git a/egs/zeroth_korean/s5/local/data_prep.sh b/egs/zeroth_korean/s5/local/data_prep.sh index 4fbb727f1cb..1e35b7f4a75 100755 --- a/egs/zeroth_korean/s5/local/data_prep.sh +++ b/egs/zeroth_korean/s5/local/data_prep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Atlas Guide (Author : Lucas Jo) # 2018 Gridspace Inc. (Author: Wonkyum Lee) diff --git a/egs/zeroth_korean/s5/local/download_and_untar.sh b/egs/zeroth_korean/s5/local/download_and_untar.sh index 2e62a3273d4..20effd125b3 100755 --- a/egs/zeroth_korean/s5/local/download_and_untar.sh +++ b/egs/zeroth_korean/s5/local/download_and_untar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Lucas Jo (Atlas Guide) # 2018 Wonkyum Lee (Gridspace) diff --git a/egs/zeroth_korean/s5/local/format_lms.sh b/egs/zeroth_korean/s5/local/format_lms.sh index a9111e80eeb..36d9c9fb9ec 100755 --- a/egs/zeroth_korean/s5/local/format_lms.sh +++ b/egs/zeroth_korean/s5/local/format_lms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/zeroth_korean/s5/local/nnet3/run_ivector_common.sh b/egs/zeroth_korean/s5/local/nnet3/run_ivector_common.sh index 70be96310e1..b253e6ca4f9 100755 --- a/egs/zeroth_korean/s5/local/nnet3/run_ivector_common.sh +++ b/egs/zeroth_korean/s5/local/nnet3/run_ivector_common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script contains some common (shared) parts of the run_nnet*.sh scripts. . cmd.sh diff --git a/egs/zeroth_korean/s5/local/prepare_dict.sh b/egs/zeroth_korean/s5/local/prepare_dict.sh index 76c6821e11e..1bb81bb1252 100755 --- a/egs/zeroth_korean/s5/local/prepare_dict.sh +++ b/egs/zeroth_korean/s5/local/prepare_dict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 Vassil Panayotov # Apache 2.0 diff --git a/egs/zeroth_korean/s5/local/score.sh b/egs/zeroth_korean/s5/local/score.sh index c812199fc98..cb5bbb7277b 100755 --- a/egs/zeroth_korean/s5/local/score.sh +++ b/egs/zeroth_korean/s5/local/score.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey) # 2014 Guoguo Chen # Apache 2.0 diff --git a/egs/zeroth_korean/s5/local/update_segmentation.sh b/egs/zeroth_korean/s5/local/update_segmentation.sh index e1eea821645..3b63a433967 100755 --- a/egs/zeroth_korean/s5/local/update_segmentation.sh +++ b/egs/zeroth_korean/s5/local/update_segmentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Lucas Jo (Atlas Guide) # Apache 2.0 diff --git a/egs/zeroth_korean/s5/run.sh b/egs/zeroth_korean/s5/run.sh index c5c7506980b..457f533f07c 100755 --- a/egs/zeroth_korean/s5/run.sh +++ b/egs/zeroth_korean/s5/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Based mostly on the WSJ/Librispeech recipe. # The training/testing database is described in http://www.openslr.org/40/ diff --git a/misc/htk_conversion/convert_htk.sh b/misc/htk_conversion/convert_htk.sh index 47a36adefb0..6ed07929c38 100755 --- a/misc/htk_conversion/convert_htk.sh +++ b/misc/htk_conversion/convert_htk.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # E.g. of usage: ./convert_htk.sh ../.. /mnt/matylda5/jhu09/setup/CH1/English/exp/xwrd.R0_800_TB500/hmm84/MMF /mnt/matylda5/jhu09/setup/CH1/English/exp/xwrd.R0_800_TB500/hmm10_800_500/cluster.trees convert_dir diff --git a/misc/htk_graph_creation_example/test.sh b/misc/htk_graph_creation_example/test.sh index 7906da7e1a0..44cea399377 100755 --- a/misc/htk_graph_creation_example/test.sh +++ b/misc/htk_graph_creation_example/test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # testing the graph creation (verifies we get the same answer as with HTK) # needs the model-list. diff --git a/misc/maintenance/find_missing_dependencies.sh b/misc/maintenance/find_missing_dependencies.sh index 55e300fe9f0..c93492b75be 100755 --- a/misc/maintenance/find_missing_dependencies.sh +++ b/misc/maintenance/find_missing_dependencies.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "$0: finding missing inter-directory dependencies in src/Makefile" diff --git a/misc/maintenance/fix_apache_headers.sh b/misc/maintenance/fix_apache_headers.sh index 7fb813b2624..a29cc4a5d52 100755 --- a/misc/maintenance/fix_apache_headers.sh +++ b/misc/maintenance/fix_apache_headers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # makes sure the line See ../../COPYING for clarification regarding multiple # authors appears in the apache headers in the source, and that source files diff --git a/misc/maintenance/fix_bash_shebang.sh b/misc/maintenance/fix_bash_shebang.sh new file mode 100755 index 00000000000..8bdbd3edab5 --- /dev/null +++ b/misc/maintenance/fix_bash_shebang.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +#Replaces #!/bin/bash with #!/usr/bin/env bash to make the bash shell scripts more portable. + +# To run this, cd to the top level of the repo and type +# misc/maintenance/fix_bash_shebang.sh + +grep -rl --include=*.sh "^#\!/bin/bash$" . | xargs -I@ bash -c $'sed -i.BAK \'s:#!/bin/bash:#!/usr/bin/env bash:\' @ ; rm @.BAK' diff --git a/misc/maintenance/fix_cpplint_whitespace.sh b/misc/maintenance/fix_cpplint_whitespace.sh index 8d99aebbac2..0e7b0069ff4 100755 --- a/misc/maintenance/fix_cpplint_whitespace.sh +++ b/misc/maintenance/fix_cpplint_whitespace.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash [ $# == 0 ] && echo "Usage: $0 src/[some-dir]/*.{h,cc}" && exit 1 # Let's run a set of in-place modifications by sed-commands, diff --git a/misc/maintenance/svnignore.sh b/misc/maintenance/svnignore.sh index bc8d447094c..6989ea11f57 100755 --- a/misc/maintenance/svnignore.sh +++ b/misc/maintenance/svnignore.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script should be run from two levels up, as: # misc/maintenance/svnignore.sh diff --git a/misc/papers/icassp12_lat/examples.sh b/misc/papers/icassp12_lat/examples.sh index 7e22a13a72a..6492f96e30c 100644 --- a/misc/papers/icassp12_lat/examples.sh +++ b/misc/papers/icassp12_lat/examples.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file contains commands to create the FST examples. export PATH=$PATH:~/kaldi/trunk/tools/openfst/bin/ diff --git a/scripts/rnnlm/compute_perplexity.sh b/scripts/rnnlm/compute_perplexity.sh index 17c441e6aea..94a2b6e2c0f 100755 --- a/scripts/rnnlm/compute_perplexity.sh +++ b/scripts/rnnlm/compute_perplexity.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script computes perplexity of text on the specified RNNLM model. diff --git a/scripts/rnnlm/compute_sentence_scores.sh b/scripts/rnnlm/compute_sentence_scores.sh index 0b9fbb5da12..71cc9e1f6f5 100755 --- a/scripts/rnnlm/compute_sentence_scores.sh +++ b/scripts/rnnlm/compute_sentence_scores.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is very similar to utils/rnnlm_compute_scores.sh, and it computes # log-likelihoods from a Kaldi-RNNLM model instead of that of Mikolov's RNNLM. diff --git a/scripts/rnnlm/compute_sentence_scores_back.sh b/scripts/rnnlm/compute_sentence_scores_back.sh index 3024d43439e..bed2ca0d87e 100755 --- a/scripts/rnnlm/compute_sentence_scores_back.sh +++ b/scripts/rnnlm/compute_sentence_scores_back.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hainan Xu # 2017 Szu-Jui Chen diff --git a/scripts/rnnlm/get_num_splits.sh b/scripts/rnnlm/get_num_splits.sh index 974fd8bf204..ae42a949a2c 100755 --- a/scripts/rnnlm/get_num_splits.sh +++ b/scripts/rnnlm/get_num_splits.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (author: Daniel Povey) # Apache 2.0. diff --git a/scripts/rnnlm/lmrescore.sh b/scripts/rnnlm/lmrescore.sh index 9da22ae75a2..aea0da13278 100755 --- a/scripts/rnnlm/lmrescore.sh +++ b/scripts/rnnlm/lmrescore.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Guoguo Chen # 2017 Hainan Xu diff --git a/scripts/rnnlm/lmrescore_back.sh b/scripts/rnnlm/lmrescore_back.sh index 5a8052a201d..7a2c781c803 100755 --- a/scripts/rnnlm/lmrescore_back.sh +++ b/scripts/rnnlm/lmrescore_back.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hainan Xu # Apache 2.0 diff --git a/scripts/rnnlm/lmrescore_nbest.sh b/scripts/rnnlm/lmrescore_nbest.sh index a22d43961ab..108b2f66d07 100755 --- a/scripts/rnnlm/lmrescore_nbest.sh +++ b/scripts/rnnlm/lmrescore_nbest.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is very similar to steps/rnnlmrescore.sh, and it performs n-best # LM rescoring with Kaldi-RNNLM. diff --git a/scripts/rnnlm/lmrescore_nbest_back.sh b/scripts/rnnlm/lmrescore_nbest_back.sh index 7531d99b0a4..45ea3c110b0 100755 --- a/scripts/rnnlm/lmrescore_nbest_back.sh +++ b/scripts/rnnlm/lmrescore_nbest_back.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hainan Xu # 2017 Szu-Jui Chen diff --git a/scripts/rnnlm/lmrescore_pruned.sh b/scripts/rnnlm/lmrescore_pruned.sh index b6ec694ffd4..7e9db8a25ac 100755 --- a/scripts/rnnlm/lmrescore_pruned.sh +++ b/scripts/rnnlm/lmrescore_pruned.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Hainan Xu # Apache 2.0 diff --git a/src/doc/get_version_info.sh b/src/doc/get_version_info.sh index 3b9b8e1f2fe..2f37ea55498 100755 --- a/src/doc/get_version_info.sh +++ b/src/doc/get_version_info.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # search for VERSION below to see how to change this when # Kaldi's version number increases. diff --git a/src/doc/make_tools.sh b/src/doc/make_tools.sh index e46b2cc757a..b969dd7d6f8 100755 --- a/src/doc/make_tools.sh +++ b/src/doc/make_tools.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2012 Daniel Povey. Apache 2.0. # Creates the file tools.dox from tools.dox.input diff --git a/tools/extras/check_for_rnnlm.sh b/tools/extras/check_for_rnnlm.sh index 66aa8004c7b..a258059dd09 100755 --- a/tools/extras/check_for_rnnlm.sh +++ b/tools/extras/check_for_rnnlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/tools/extras/install_beamformit.sh b/tools/extras/install_beamformit.sh index e29311c13e1..4f54331318c 100755 --- a/tools/extras/install_beamformit.sh +++ b/tools/extras/install_beamformit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash LIBSNDFILE_VERSION=1.0.25 diff --git a/tools/extras/install_cffi.sh b/tools/extras/install_cffi.sh index 7319faa4cd3..ea9209bb98d 100755 --- a/tools/extras/install_cffi.sh +++ b/tools/extras/install_cffi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #Copyright 2013 Ufal MFF UK; Ondrej Platek # #Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/extras/install_chainer.sh b/tools/extras/install_chainer.sh index 1dfb8cb9881..3888df9518e 100755 --- a/tools/extras/install_chainer.sh +++ b/tools/extras/install_chainer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Installs chainer with nn-gev dependencies # miniconda should be installed in $HOME/miniconda3/ diff --git a/tools/extras/install_faster_rnnlm.sh b/tools/extras/install_faster_rnnlm.sh index b34567eb892..ea60f88b8b5 100755 --- a/tools/extras/install_faster_rnnlm.sh +++ b/tools/extras/install_faster_rnnlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # The script downloads and installs faster-rnnlm # https://github.com/yandex/faster-rnnlm diff --git a/tools/extras/install_ffv.sh b/tools/extras/install_ffv.sh index 0f2eece85c8..5f84bbb1c45 100755 --- a/tools/extras/install_ffv.sh +++ b/tools/extras/install_ffv.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash VERSION=1.0.1 diff --git a/tools/extras/install_irstlm.sh b/tools/extras/install_irstlm.sh index 1c6424504ac..e0dea37d5f5 100755 --- a/tools/extras/install_irstlm.sh +++ b/tools/extras/install_irstlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015, Johns Hopkins University (Yenda Trmal ) # License: Apache 2.0 diff --git a/tools/extras/install_jieba.sh b/tools/extras/install_jieba.sh index 3200a16db8e..a1627ebd913 100755 --- a/tools/extras/install_jieba.sh +++ b/tools/extras/install_jieba.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # The script downloads and installs jieba diff --git a/tools/extras/install_kaldi_io.sh b/tools/extras/install_kaldi_io.sh index e3192be78a8..8b15b043fc0 100755 --- a/tools/extras/install_kaldi_io.sh +++ b/tools/extras/install_kaldi_io.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Install kaldi_io. Please refer to https://github.com/vesis84/kaldi-io-for-python # for details. diff --git a/tools/extras/install_kaldi_lm.sh b/tools/extras/install_kaldi_lm.sh index a70a6ac14c3..1f51a1fb854 100755 --- a/tools/extras/install_kaldi_lm.sh +++ b/tools/extras/install_kaldi_lm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # The script downloads and installs kaldi_lm diff --git a/tools/extras/install_liblbfgs.sh b/tools/extras/install_liblbfgs.sh index df14cdd70e7..8d6ae4ab7b4 100644 --- a/tools/extras/install_liblbfgs.sh +++ b/tools/extras/install_liblbfgs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash VER=1.10 diff --git a/tools/extras/install_mikolov_rnnlm.sh b/tools/extras/install_mikolov_rnnlm.sh index 66bbc9fc9c5..11d757b0e11 100755 --- a/tools/extras/install_mikolov_rnnlm.sh +++ b/tools/extras/install_mikolov_rnnlm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash WGET=${WGET:-wget} diff --git a/tools/extras/install_miniconda.sh b/tools/extras/install_miniconda.sh index 1ddc7c68bf6..a68ea976523 100755 --- a/tools/extras/install_miniconda.sh +++ b/tools/extras/install_miniconda.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash WGET=${WGET:-wget} diff --git a/tools/extras/install_mkl.sh b/tools/extras/install_mkl.sh index d6d039f7816..27f3fda0b11 100755 --- a/tools/extras/install_mkl.sh +++ b/tools/extras/install_mkl.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Intel MKL is now freely available even for commercial use. This script # attempts to install the MKL package automatically from Intel's repository. diff --git a/tools/extras/install_mmseg.sh b/tools/extras/install_mmseg.sh index 232c1ac7d38..a76b98e2061 100755 --- a/tools/extras/install_mmseg.sh +++ b/tools/extras/install_mmseg.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash VERSION=1.3.0 diff --git a/tools/extras/install_morfessor.sh b/tools/extras/install_morfessor.sh index a247e8c68b6..85ed9c80c7d 100755 --- a/tools/extras/install_morfessor.sh +++ b/tools/extras/install_morfessor.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Atlas Guide (Author : Lucas Jo) # # Apache 2.0 diff --git a/tools/extras/install_mpg123.sh b/tools/extras/install_mpg123.sh index ea362f7a3b4..7a9618c789a 100755 --- a/tools/extras/install_mpg123.sh +++ b/tools/extras/install_mpg123.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 Johns Hopkins University (author: Jan Trmal) # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/extras/install_nkf.sh b/tools/extras/install_nkf.sh index ca27a1777c1..81434543556 100644 --- a/tools/extras/install_nkf.sh +++ b/tools/extras/install_nkf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 Johns Hopkins University (author: Daniel Povey) # 2017 Hang Lyu diff --git a/tools/extras/install_openblas.sh b/tools/extras/install_openblas.sh index e8a67ceb388..4763265a75c 100755 --- a/tools/extras/install_openblas.sh +++ b/tools/extras/install_openblas.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash OPENBLAS_VERSION=0.3.7 diff --git a/tools/extras/install_pfile_utils.sh b/tools/extras/install_pfile_utils.sh index 3f76cfa7640..f77e863c9a3 100644 --- a/tools/extras/install_pfile_utils.sh +++ b/tools/extras/install_pfile_utils.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This was needed for a specific purpose-- some neural net training for the # BABEL setup that was done by Yajie Miao. We don't expect these tools will # be used very heavily. diff --git a/tools/extras/install_phonetisaurus.sh b/tools/extras/install_phonetisaurus.sh index 1f92d13be25..8a07c5f5ca5 100755 --- a/tools/extras/install_phonetisaurus.sh +++ b/tools/extras/install_phonetisaurus.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash GIT=${GIT:-git} diff --git a/tools/extras/install_pocolm.sh b/tools/extras/install_pocolm.sh index df0d08b4e33..87fb8641623 100755 --- a/tools/extras/install_pocolm.sh +++ b/tools/extras/install_pocolm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 Vincent Nguyen # 2016 Johns Hopkins University (author: Daniel Povey) diff --git a/tools/extras/install_portaudio.sh b/tools/extras/install_portaudio.sh index 1a339c40907..1e4854e83c1 100755 --- a/tools/extras/install_portaudio.sh +++ b/tools/extras/install_portaudio.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #Copyright 2012 Cisco Systems; Matthias Paulik # #Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/extras/install_sacc.sh b/tools/extras/install_sacc.sh index fc47f43f75f..dcf036f55bb 100755 --- a/tools/extras/install_sacc.sh +++ b/tools/extras/install_sacc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash WGET=${WGET:-wget} diff --git a/tools/extras/install_sctk_patched.sh b/tools/extras/install_sctk_patched.sh index 7879e6fc9d4..8b80faa7550 100755 --- a/tools/extras/install_sctk_patched.sh +++ b/tools/extras/install_sctk_patched.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # A patch for sctk-2.4.0 smooth installation under Cygwin diff --git a/tools/extras/install_sequitur.sh b/tools/extras/install_sequitur.sh index b58c482702d..97f5933a1a9 100755 --- a/tools/extras/install_sequitur.sh +++ b/tools/extras/install_sequitur.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash GIT=${GIT:-git} diff --git a/tools/extras/install_speex.sh b/tools/extras/install_speex.sh index 70dd06d9bc3..5b923c7ba7c 100755 --- a/tools/extras/install_speex.sh +++ b/tools/extras/install_speex.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 IMSL, PKU-HKUST (author: Wei Shi) # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/extras/install_srilm.sh b/tools/extras/install_srilm.sh index 000b1dbe6c5..227e5d0b5ed 100755 --- a/tools/extras/install_srilm.sh +++ b/tools/extras/install_srilm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash current_path=`pwd` current_dir=`basename "$current_path"` diff --git a/tools/extras/install_tensorflow_cc.sh b/tools/extras/install_tensorflow_cc.sh index 76f3f3f0b1d..1d3fc524899 100755 --- a/tools/extras/install_tensorflow_cc.sh +++ b/tools/extras/install_tensorflow_cc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash BAZEL_VERSION=0.15.0 diff --git a/tools/extras/install_tensorflow_py.sh b/tools/extras/install_tensorflow_py.sh index 170eda34b46..24ec4022a49 100755 --- a/tools/extras/install_tensorflow_py.sh +++ b/tools/extras/install_tensorflow_py.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export HOME=$PWD/tensorflow_build/ diff --git a/tools/extras/install_wpe.sh b/tools/extras/install_wpe.sh index 39393a55a46..6b0e440473a 100755 --- a/tools/extras/install_wpe.sh +++ b/tools/extras/install_wpe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash GIT=${GIT:-git} diff --git a/tools/extras/travis_install_bindeps.sh b/tools/extras/travis_install_bindeps.sh index 80067e1ddef..6bb47230603 100755 --- a/tools/extras/travis_install_bindeps.sh +++ b/tools/extras/travis_install_bindeps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash WGET=${WGET:-wget} diff --git a/tools/extras/travis_script.sh b/tools/extras/travis_script.sh index c857402bed5..474424c910c 100755 --- a/tools/extras/travis_script.sh +++ b/tools/extras/travis_script.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We take into account dependency pointers optionally set in the environment. # Typical usage shown below; any one can be safely left unset. diff --git a/tools/extras/travis_show_failures.sh b/tools/extras/travis_show_failures.sh index 6fba045c4b4..e66781b158d 100755 --- a/tools/extras/travis_show_failures.sh +++ b/tools/extras/travis_show_failures.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is called upon a test failure under Travis CI to report the # failure context. It prints a header followed by the last 200 lines of every