How to track of the POS with the largest count?


Does anyone know how to use if to track POS with the largest count?

I figured out most part of the code of question 2. But stuck here.

Thanks!

you are making an assignment in the “if” statement; you need “==”;

if pos_final == true_label

I seems to be stuck here also, I know there are words with more than one tag resulting to use the (tag, word) with the highest count, I’m stuck here. I would appreciate any help here

Hi,
in the line that reads “if count None”, you can use a “less than” or “greater than” operator (< or >) and compare it to something else before making the assignments in the indented block. Hope this helps. :slight_smile:
Best,
Thorsten