-
-
Save amankharwal/7ca2f627be3bc2119df7bcd507602da8 to your computer and use it in GitHub Desktop.
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
from nltk.probability import FreqDist | |
# Find frequency of sentence | |
fdist_sent = FreqDist(sents) | |
fdist_sent.most_common(10) | |
# Plot | |
fdist_sent.plot(10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment