fast-ctc-decode
fast-ctc-decode copied to clipboard
how to get text score?
what should I do if I want to get the text score?
I don't know what the return path means.
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?