From d8772f72d76943eeb376b47683125c81cd557148 Mon Sep 17 00:00:00 2001 From: Nishchal Bhandari Date: Wed, 9 Oct 2024 20:46:24 +0000 Subject: [PATCH] set confidence when present --- src/fstalign.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fstalign.cpp b/src/fstalign.cpp index d293ac8..cd984bf 100644 --- a/src/fstalign.cpp +++ b/src/fstalign.cpp @@ -324,6 +324,9 @@ vector make_stitches(wer_alignment &alignment, vector 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()) {