bmeaut / python_nlp_2018_spring

MIT License
8 stars 10 forks source link

homework 2 #8

Open NadiaHajjej opened 6 years ago

NadiaHajjej commented 6 years ago

this assertion: print("The state NN followed the state VBZ {} times".format(transition_counts[noun_id, vbz_id])) "the noun followed by a verb "or" the noun followed the verb" just for verification because I think in transition matrix j is the count of hidden state following the state i and thanks

juditacs commented 6 years ago

Sorry, it's indeed ambiguous. It would be better like this:

print("State NN followed by state VBZ:  {} times".format(transition_counts[noun_id, vbz_id]))

So the frequency of VBZ coming after NN.