Created
August 11, 2019 19:08
-
-
Save mlai-demo/c3712afd9908a88d2d66c7ad6525700b to your computer and use it in GitHub Desktop.
NLTK bigrams
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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