Add Swift example for generating subtitles (#318)
This commit is contained in:
@@ -18,9 +18,9 @@ void Hypotheses::Add(Hypothesis hyp) {
|
||||
} else {
|
||||
it->second.log_prob = LogAdd<double>()(it->second.log_prob, hyp.log_prob);
|
||||
|
||||
if (it->second.lm_log_prob != 0 && hyp.lm_log_prob != 0){
|
||||
if (it->second.lm_log_prob != 0 && hyp.lm_log_prob != 0) {
|
||||
it->second.lm_log_prob =
|
||||
LogAdd<double>()(it->second.lm_log_prob, hyp.lm_log_prob);
|
||||
LogAdd<double>()(it->second.lm_log_prob, hyp.lm_log_prob);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user