Skip to content

Commit

Permalink
Fix confidences
Browse files Browse the repository at this point in the history
  • Loading branch information
nshmyrev committed Jul 15, 2020
1 parent 8a986ef commit f59d668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kaldi_recognizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ const char* KaldiRecognizer::GetResult()
DeterminizeLattice(composed_lat1, &clat);
}

fst::ScaleLattice(fst::LatticeScale(9.0, 10.0), &clat);
fst::ScaleLattice(fst::GraphLatticeScale(0.9), &clat); // Apply rescoring weight
CompactLattice aligned_lat;
if (model_->winfo_) {
WordAlignLattice(clat, *model_->trans_model_, *model_->winfo_, 0, &aligned_lat);
Expand Down

0 comments on commit f59d668

Please sign in to comment.