Skip to content

Commit 021db4f

Browse files
Confidence fix for tutorial (NVIDIA-NeMo#14250)
Signed-off-by: Nune <ntadevosyan@nvidia.com>
1 parent 164d12b commit 021db4f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tutorials/asr/ASR_Confidence_Estimation.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,8 @@
13541354
"\n",
13551355
"# e\n",
13561356
"max_fnr = 0.01\n",
1357-
"\n",
1357+
"# Adding a check for cases with apostrophes\n",
1358+
"transcriptions = [h for h in transcriptions if len(h.word_confidence)==len(h.text.split())]\n",
13581359
"correct_marks = [\n",
13591360
" mark for r, h in zip(current_test_set.reference_texts, transcriptions) for mark in get_correct_marks(r.split(), h.words)\n",
13601361
"]\n",

0 commit comments

Comments
 (0)