C2_W2 Problem with getting "0.9253" accuracy

Can anybody please help me in getting this “0.9253” accuracy. I tried many times but I failed… I got some 89.something.

THanks in advance.

Hi @Imaad_Ullah

One subtle reason for that could be this line of code:

                # check if the (pos, word) key exists in the emission_counts dictionary
                if key in None: # Replace None in this line with the proper condition.

Here, None should not be emission_counts variable, but the set you extracted earlier - all_words.

Cheers

replacing ‘emission_counts’ with ‘all_words’ not changing the accuracy, still getting 0.8889.

could you please help