Skip to content

Commit 475df25

Browse files
committed
Several unrelated small fixes, mostly cosmetic.
1 parent c486f29 commit 475df25

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

egs/wsj/s5/local/run_sgmm2.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
steps/train_mmi_sgmm2.sh --cmd "$decode_cmd" --transform-dir exp/tri4b_ali_si84 --boost 0.1 \
3737
data/train_si84 data/lang exp/sgmm2_5a_ali_si84 exp/sgmm2_5a_denlats_si84 exp/sgmm2_5a_mmi_b0.1
3838

39+
wait
40+
3941
for iter in 1 2 3 4; do
4042
steps/decode_sgmm2_rescore.sh --cmd "$decode_cmd" --iter $iter \
4143
--transform-dir exp/tri4b/decode_tgpr_dev93 data/lang_test_tgpr data/test_dev93 exp/sgmm2_5a/decode_tgpr_dev93 \
@@ -88,14 +90,14 @@
8890
exp/ubm5b/final.ubm exp/sgmm2_5c || exit 1;
8991
# Decode from lattices in exp/sgmm2_5b
9092
steps/decode_sgmm2_fromlats.sh --cmd "$decode_cmd" --transform-dir exp/tri4b/decode_tgpr_dev93 \
91-
data/test_dev93 data/lang_test_tgpr exp/sgmm2_5b/decode_tgpr_dev93 exp/sgmm2_5c/decode_tgpr_dev93
93+
data/test_dev93 data/lang_test_tgpr exp/sgmm2_5b/decode_tgpr_dev93 exp/sgmm2_5c/decode_tgpr_dev93
9294
steps/decode_sgmm2_fromlats.sh --cmd "$decode_cmd" --transform-dir exp/tri4b/decode_tgpr_eval92 \
93-
data/test_eval92 data/lang_test_tgpr exp/sgmm2_5b/decode_tgpr_eval92 exp/sgmm2_5c/decode_tgpr_eval92
95+
data/test_eval92 data/lang_test_tgpr exp/sgmm2_5b/decode_tgpr_eval92 exp/sgmm2_5c/decode_tgpr_eval92
9496
) &
9597

9698

9799
steps/align_sgmm2.sh --nj 30 --cmd "$train_cmd" --transform-dir exp/tri4b_ali_si284 \
98-
--use-graphs true --use-gselect true data/train_si284 data/lang exp/sgmm2_5b exp/sgmm2_5b_ali_si284
100+
--use-graphs true --use-gselect true data/train_si284 data/lang exp/sgmm2_5b exp/sgmm2_5b_ali_si284
99101

100102
steps/make_denlats_sgmm2.sh --nj 30 --sub-split 30 --cmd "$decode_cmd" --transform-dir exp/tri4b_ali_si284 \
101103
data/train_si284 data/lang exp/sgmm2_5b_ali_si284 exp/sgmm2_5b_denlats_si284
@@ -128,7 +130,7 @@ wait
128130

129131
# Examples of combining some of the best decodings: SGMM+MMI with
130132
# MMI+fMMI on a conventional system.
131-
133+
132134
local/score_combine.sh data/test_eval92 \
133135
data/lang_test_bd_tgpr \
134136
exp/tri4b_fmmi_a/decode_tgpr_eval92_it8 \

egs/wsj/s5/steps/cleanup/combine_short_segments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def WriteCombinedDirFiles(output_dir, utt2spk, spk2utt, text, feat, utt2dur, utt
225225
# of data however if perturbation changes the length of the utterance
226226
# (e.g. speed perturbation) the utterance combinations in each
227227
# perturbation of the original recording can be very different. So there
228-
# is no good way to find the utt2uniq mappinng so that we can avoid
228+
# is no good way to find the utt2uniq mapping so that we can avoid
229229
# overlap.
230230
utt2uniq[new_utt_name] = combined_uniqs[0]
231231

egs/wsj/s5/utils/combine_data.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0.
33
# 2014 David Snyder
44

5-
# This script operates on a data directory, such as in data/train/.
6-
# See http://kaldi-asr.org/doc/data_prep.html#data_prep_data
7-
# for what these directories contain.
5+
# This script combines the data from multiple source directories into
6+
# a single destination directory.
7+
8+
# See http://kaldi-asr.org/doc/data_prep.html#data_prep_data for information
9+
# about what these directories contain.
810

911
# Begin configuration section.
1012
extra_files= # specify addtional files in 'src-data-dir' to merge, ex. "file1 file2 ..."

src/nnet3/nnet-training.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ struct NnetTrainerOptions {
4747
store_component_stats(true),
4848
print_interval(100),
4949
debug_computation(false),
50-
binary_write_cache(true),
5150
momentum(0.0),
51+
binary_write_cache(true),
5252
max_param_change(2.0) { }
5353
void Register(OptionsItf *opts) {
5454
opts->Register("store-component-stats", &store_component_stats,

tools/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ sctk/.configured: sctk
114114

115115
.PHONY: sctk
116116
sctk: sctk-2.4.10-20151007-1312Z.tar.bz2
117-
tar xojf sctk-2.4.10-20151007-1312Z.tar.bz2
117+
tar xojf sctk-2.4.10-20151007-1312Z.tar.bz2 || \
118+
tar --exclude '*NONE*html' -xvojf sctk-2.4.10-20151007-1312Z.tar.bz2
118119
rm -rf sctk && ln -s sctk-2.4.10 sctk
119120

120121
sctk-2.4.10-20151007-1312Z.tar.bz2:

0 commit comments

Comments
 (0)