Skip to content

Instantly share code, notes, and snippets.

@mlai-demo
Created August 11, 2019 19:08
Show Gist options
  • Save mlai-demo/c3712afd9908a88d2d66c7ad6525700b to your computer and use it in GitHub Desktop.
Save mlai-demo/c3712afd9908a88d2d66c7ad6525700b to your computer and use it in GitHub Desktop.
NLTK bigrams
bigrams = nltk.bigrams(words)
freq_bigrams = nltk.FreqDist(bigrams)
plt.figure(figsize=(13, 7))
freq_bigrams.plot(20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment