# UCQ_C6 viterbi_forward

Hi,
I am really stucked at this question, below is my implementation, can anyone shed a light on which line that fails the test? I had all other tests passed but only this one failed, please help!
In case you want to see full implementation, my lab id is ‘ljvngzen’
Thanks

(Code snippet removed)

Dear @Qianyi_Li ,

Try to use prob part as shown below. It may help.

All the best

(Code snippet removed)

Ah, I have to admit the way it switches between actual index and vocab index confused me a lot. Thank you for the help!