Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 31, 2021 07:42
Embed
What would you like to do?
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