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

Improvements to log messages; minor fixes in rnn/run.sh

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@442 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent de0ee263
......@@ -63,6 +63,10 @@ int main(int argc, char *argv[]) {
po.PrintUsage();
exit(1);
}
if (retry_beam != 0 && retry_beam <= beam)
KALDI_WARN << "Beams do not make sense: beam " << beam
<< ", retry-beam " << retry_beam;
FasterDecoderOptions decode_opts;
decode_opts.beam = beam; // Don't set the other options.
......
......@@ -56,6 +56,9 @@ int main(int argc, char *argv[]) {
po.PrintUsage();
exit(1);
}
if (retry_beam != 0 && retry_beam <= beam)
KALDI_WARN << "Beams do not make sense: beam " << beam
<< ", retry-beam " << retry_beam;
FasterDecoderOptions decode_opts;
decode_opts.beam = beam; // Don't set the other options.
......
......@@ -17,7 +17,7 @@ exit
./rnn-rescore --acoustic-scale=0.0625 --lambda=0.5 --n=10 words.txt ark,t:1.lats WSJ.35M.200cl.350h.kaldi.rnn ark,t:nbest.lat
cat nbest.lat | awk 'BEGIN{while (getline<"words.txt")v[$2]=$1}{$4="";if ($3 in v)$3=v[$3];print $0}' | head
paste ngrscores rnnscores ams | awk 'BEGIN{lambda=0.75}{lmmix=2.3*lambda*$2 + (1-lambda)*$1; ams=$3; print ams+lmmix}'> combinedScores
#paste ngrscores rnnscores ams | awk 'BEGIN{lambda=0.75}{lmmix=2.3*lambda*$2 + (1-lambda)*$1; ams=$3; print ams+lmmix}'> combinedScores
paste ngrscores rnnscores ams | awk 'BEGIN{lambda=0.75}{lmmix=2.3*lambda*$2 + (1-lambda)*$1; ams=$3; print ams+lmmix}'> combinedScores
paste combinedScores debug3 | awk '{if ((utt_score[$2]>$1)||(utt_score[$2]=="")){utt_score[$2]=$1;utt[$2]=$0}}END{for (u in utt_score){print utt[u]}}' | awk '{$1="";print $0}' | sed 's/^ //'| sort > newbest.txt
......
......@@ -68,6 +68,9 @@ int main(int argc, char *argv[]) {
po.PrintUsage();
exit(1);
}
if (retry_beam != 0 && retry_beam <= beam)
KALDI_WARN << "Beams do not make sense: beam " << beam
<< ", retry-beam " << retry_beam;
FasterDecoderOptions decode_opts;
decode_opts.beam = beam; // Don't set the other options.
......
......@@ -68,6 +68,9 @@ int main(int argc, char *argv[]) {
po.PrintUsage();
exit(1);
}
if (retry_beam != 0 && retry_beam <= beam)
KALDI_WARN << "Beams do not make sense: beam " << beam
<< ", retry-beam " << retry_beam;
FasterDecoderOptions decode_opts;
decode_opts.beam = beam; // Don't set the other options.
......
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