Commit fc548ffa authored by Dan Povey's avatar Dan Povey
Browse files

trunk: minor cosmetic improvements.

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@5147 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent bb63ec4e
......@@ -4,6 +4,8 @@
# Combine two decoding directories by composing the lattices (we
# apply a weight to each of the original weights, by default 0.5 each).
# Note, this is not the only combination method, or the most normal combination
# method. See also egs/wsj/s5/local/score_combine.sh.
# Begin configuration section.
weight1=0.5 # Weight on 1st set of lattices.
......
......@@ -225,15 +225,12 @@ if [ $stage -le -3 ] && [ -z "$egs_dir" ]; then
$data $alidir $dir/egs || exit 1;
fi
if [ -z $egs_dir ]; then
egs_dir=$dir/egs
# confirm that the provided egs_dir has the necessary context
egs_left_context=$(cat $egs_dir/info/left_context) || exit -1
egs_right_context=$(cat $egs_dir/info/right_context) || exit -1
echo $egs_left_context $nnet_left_context $egs_right_context $nnet_right_context
([[ $egs_left_context -lt $nnet_left_context ]] || [[ $egs_right_context -lt $nnet_right_context ]]) &&
echo "Provided egs_dir $egs_dir does not have sufficient context to train the neural network." && exit -1;
fi
[ -z $egs_dir ] && egs_dir=$dir/egs
# confirm that the provided egs_dir has the necessary context
egs_left_context=$(cat $egs_dir/info/left_context) || exit 1
egs_right_context=$(cat $egs_dir/info/right_context) || exit 1
([[ $egs_left_context -lt $nnet_left_context ]] || [[ $egs_right_context -lt $nnet_right_context ]]) &&
echo "$0: Provided egs_dir $egs_dir does not have sufficient context to train the neural network." && exit 1;
frames_per_eg=$(cat $egs_dir/info/frames_per_eg) || { echo "error: no such file $egs_dir/info/frames_per_eg"; exit 1; }
num_archives=$(cat $egs_dir/info/num_archives) || { echo "error: no such file $egs_dir/info/frames_per_eg"; exit 1; }
......
......@@ -181,6 +181,7 @@ function check_for_slow_expf {
function exit_success {
check_for_bad_gcc;
check_for_slow_expf;
echo "SUCCESS"
exit 0;
}
......
......@@ -119,7 +119,7 @@ This is not needed for the basic system builds (RM has its own
non-ARPA LM, and WSJ comes with LMs). So installing this may be
left till later, if you are in a hurry.
svn co https://svn.code.sf.net/p/irstlm/code/trunk irstlm
svn co -r 618 https://svn.code.sf.net/p/irstlm/code/trunk irstlm
cd irstlm
[
if your aclocal and automake are too old, you may want to
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment