fast-ctc-decode icon indicating copy to clipboard operation
fast-ctc-decode copied to clipboard

how to get text score?

Open ziyaxuanyi opened this issue 3 years ago • 1 comments

what should I do if I want to get the text score?

I don't know what the return path means.

ziyaxuanyi avatar Aug 27 '21 12:08 ziyaxuanyi

for viterbi_search, I can get the right result by using this code:

seq, path = viterbi_search(posteriors, alphabet) scores = [posteriors[path[i]][dict[seq[i]]] for i in range(len(path))]

where dict can convert text-label into text-index.

but for beam search,it get wrong result.Why?

ziyaxuanyi avatar Aug 27 '21 12:08 ziyaxuanyi