Sort the lines of code to find the 10 best bigrams according to Student-T test from the government subset of the Brown Dataset.
N-gram and collocation measures
Sort the code
Report a typo
Put the items in the correct order
finder = BigramCollocationFinder.from_words(gov_text)
gov_text = brown.words(categories='government')
finder.nbest(bigram_measures.student_t, 10)
bigram_measures = nltk.collocations.BigramAssocMeasures()
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.