Skip to content

Commit

Permalink
set confidence when present
Browse files Browse the repository at this point in the history
  • Loading branch information
nishchalb committed Oct 9, 2024
1 parent 47d9669 commit d8772f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fstalign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ vector<Stitching> make_stitches(wer_alignment &alignment, vector<RawCtmRecord> h
part.hyptk.end_ts = endTs;
part.hyptk.duration = 0.0;
}
if (!hypNlpPart.confidence.empty()) {
part.hyptk.confidence = stof(hypNlpPart.confidence);
}
}

if (!one_best_tokens.empty()) {
Expand Down

0 comments on commit d8772f7

Please sign in to comment.