Skip to content

Commit

Permalink
[egs] Set the acoustic scale properly when generating e2e chain align…
Browse files Browse the repository at this point in the history
…ments for OCR tasks (kaldi-asr#2579)
  • Loading branch information
hhadian authored and danpovey committed Jul 27, 2018
1 parent d4d968c commit b8fd2cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions egs/iam/v1/run_end2end.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ iam_database=/export/corpora5/handwriting_ocr/IAM
# wellington_database points to the database path on the JHU grid. The Wellington
# corpus contains two directories WWC and WSC (Wellington Written and Spoken Corpus).
# This corpus is of written NZ English that can be purchased here:
# "https://www.victoria.ac.nz/lals/resources/corpora-default"
# "https://www.victoria.ac.nz/lals/resources/corpora-default"
wellington_database=/export/corpora5/Wellington/WWC/

. ./cmd.sh ## You'll want to change cmd.sh to something that will work on your system.
Expand Down Expand Up @@ -90,7 +90,8 @@ fi
if [ $stage -le 5 ]; then
echo "$0: Aligning the training data using the e2e chain model..."
steps/nnet3/align.sh --nj 50 --cmd "$cmd" \
--scale-opts '--transition-scale=1.0 --self-loop-scale=1.0' \
--use-gpu false \
--scale-opts '--transition-scale=1.0 --self-loop-scale=1.0 --acoustic-scale=1.0' \
data/train data/lang exp/chain/e2e_cnn_1a exp/chain/e2e_ali_train
fi

Expand Down
3 changes: 2 additions & 1 deletion egs/madcat_ar/v1/run_end2end.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ if [ $stage -le 8 ]; then
echo "$0: Aligning the training data using the e2e chain model..."
echo "Date: $(date)."
steps/nnet3/align.sh --nj $nj --cmd "$cmd" \
--scale-opts '--transition-scale=1.0 --self-loop-scale=1.0' \
--use-gpu false \
--scale-opts '--transition-scale=1.0 --self-loop-scale=1.0 --acoustic-scale=1.0' \
data/train data/lang exp/chain/e2e_cnn_1a exp/chain/e2e_ali_train
fi

Expand Down

0 comments on commit b8fd2cd

Please sign in to comment.