I'm following the example in Scikit learn docs where CountVectorizer
is used on some dataset.
Question: count_vect.vocabulary_.viewitems()
lists all the terms and their frequencies. How do you sort them by the number of occurances?
sorted( count_vect.vocabulary_.viewitems() )
does not seem to work.