Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Oct 4, 2020
Embed
What would you like to do?
probs = {}
Total = sum(word_freq_dict.values())
for k in word_freq_dict.keys():
probs[k] = word_freq_dict[k]/Total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment