Confused regarding UNQ_C10

In the question 10 → 2 of my tests are passing.
However, I am unable to figure out why the rest 2 are not passing.
Are we supposed to use log addition instead of mutiplication to calculate score ?
Tried converting to log but still it is failing, is the pi to sigma conversion wrong ?

(Solution code removed, as posting it publicly is against the honour code of this community)

(Solution code removed, as posting it publicly is against the honour code of this community)

Hi @Parth_Tripathi

  • # get the word at position t asks you to get word at index t and not a slice from t up to t+n
  • # Estimate the probability of the word given the n-gram - use estimate_probability() function for this

See if that solves your issues and please remove your solution code.

Good luck!

Hi @arvyzukai ,
Thanks a lot for the tip, issue resolved