You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def counts(self, word_and_history):
word = word_and_history[0]
return 0.0 if word not in self.vocab else
(self.base_lm.counts(word_and_history) + self.alpha)
The text was updated successfully, but these errors were encountered:
The correct version is:
def counts(self, word_and_history):
word = word_and_history[0]
return 0.0 if word not in self.vocab else
(self.base_lm.counts(word_and_history) + self.alpha)
The text was updated successfully, but these errors were encountered: