My output (given that I compute AP for hyper) should be like the following:
acacia-n hyper 1
ant-n hyper 1
apricot-n hyper 1
Basically, for each different element of the first row of data I submitted as input, I should repeat the calculations my code does. The only problem I have is that I don't know how to make the code iterate only while acacia, and do the calculations on that data, then do them only for ant, and then do them only for apricot.
I hope I made it a little clearer.
Thanks again,
Giulia