Skip to content

Commit 868c044

Browse files
committed
Merge remote-tracking branch 'upstream/master' into kaldi_52
2 parents 0dea4ad + a39e580 commit 868c044

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

egs/ami/s5/run_ihm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ LM=$final_lm.pr1-7
3030
# Avoiding re-download, using 'wget --continue ...',
3131
if [ $stage -le 0 ]; then
3232
[ -e data/local/downloads/wget_${mic}.sh ] && \
33-
echo "$data/local/downloads/wget_${mic}.sh already exists, better quit than re-download... (use --stage N)" && \
33+
echo "data/local/downloads/wget_${mic}.sh already exists, better quit than re-download... (use --stage N)" && \
3434
exit 1
3535
local/ami_download.sh $mic $AMI_DIR
3636
fi
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tuning/run_tdnn_lstm_1b.sh

egs/wsj/s5/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ if [ $stage -le 2 ]; then
130130
# This is just confirming they're equivalent.
131131
for mode in 1 2 3 4; do
132132
steps/lmrescore.sh --mode $mode --cmd "$decode_cmd" \
133-
data/lang_nosp_test_{tgpr,tg} data/test_dev93 \
133+
data/lang_nosp_test_{tgpr,tg} data/test_${data} \
134134
exp/tri1/decode_nosp_tgpr_${data} \
135135
exp/tri1/decode_nosp_tgpr_${data}_tg$mode || exit 1;
136136
done

src/bin/compute-wer-bootci.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ void GetBootstrapWERInterval(
116116
BaseFloat *mean, BaseFloat *interval) {
117117
BaseFloat wer_accum = 0.0, wer_mult_accum = 0.0;
118118

119-
for (int32 i = 0; i <= replications; ++i) {
119+
for (int32 i = 0; i < replications; ++i) {
120120
int32 num_words = 0, word_errs = 0;
121-
for (int32 j = 0; j <= edit_word_per_hyp.size(); ++j) {
122-
int32 random_pos = kaldi::RandInt(0, edit_word_per_hyp.size());
121+
for (int32 j = 0; j < edit_word_per_hyp.size(); ++j) {
122+
int32 random_pos = kaldi::RandInt(0, edit_word_per_hyp.size() - 1);
123123
word_errs += edit_word_per_hyp[random_pos].first;
124124
num_words += edit_word_per_hyp[random_pos].second;
125125
}
@@ -140,10 +140,10 @@ void GetBootstrapWERTwoSystemComparison(
140140
int32 replications, BaseFloat *p_improv) {
141141
int32 improv_accum = 0.0;
142142

143-
for (int32 i = 0; i <= replications; ++i) {
143+
for (int32 i = 0; i < replications; ++i) {
144144
int32 word_errs = 0;
145-
for (int32 j = 0; j <= edit_word_per_hyp.size(); ++j) {
146-
int32 random_pos = kaldi::RandInt(0, edit_word_per_hyp.size());
145+
for (int32 j = 0; j < edit_word_per_hyp.size(); ++j) {
146+
int32 random_pos = kaldi::RandInt(0, edit_word_per_hyp.size() - 1);
147147
word_errs += edit_word_per_hyp[random_pos].first -
148148
edit_word_per_hyp2[random_pos].first;
149149
}

tools/extras/check_dependencies.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,6 @@ if which apt-get >&/dev/null && ! which zypper >/dev/null; then
122122
echo " sudo apt-get install libatlas3-base"
123123
printed=true
124124
fi
125-
# Debian systems generally link /bin/sh to dash, which doesn't work
126-
# with some scripts as it doesn't expand x.{1,2}.y to x.1.y x.2.y
127-
if [ "$(readlink /bin/sh)" == "dash" ]; then
128-
echo "/bin/sh is linked to dash, and currently some of the scripts will not run"
129-
echo "properly. We recommend to run:"
130-
echo " sudo ln -s -f bash /bin/sh"
131-
printed=true
132-
fi
133125
fi
134126

135127
if which yum >&/dev/null; then

0 commit comments

Comments
 (0)