Viterbi_backward (# UNQ_C6): int()

I cannot figure out what am i doing wrong here. There might be a problem in my for loop in step 2. Im starting from m-1, stopping at 0, with -1 incrementation.

I desperately need help, as it’s already been a week since i got stuck and it’s so frustrating.

corpus 0: The
Wrong values for pred list.
	 Expected: ['PRP', 'MD', 'RB', 'VB', 'PRP', 'RB', 'IN', 'PRP', '.', '--s--'].
	 Got: ['PRP', 'MD', 'RB', 'VB', 'PRP', 'RB', 'IN', 'PRP', '.', '``'].
 3  Tests passed
 1  Tests failed

you stored the k value as a variable name in the below step

#Store the unique integer ID of the POS tag
            # which is also the row number in best_probs

But didn’t use that variable name for the below step, rather you used stated to the k(unique id), which caused this pred list error

Your current error is pointing issue in the below code

#Convert the last word's predicted POS tag
    # from its unique integer ID into the string representation
    # using the 'states' list
    # store this in the 'pred' array for the last word

so pred list should be defined using states with stored list variable name for unique ID of POS tag which is also row number in best probs list

it worked, thank you!