title: How to see top n entries of term-document matrix after tfidf in scikit-learn
body: <p>I am new to scikit-learn, and I was using <code>TfidfVectorizer</code> to find the tfidf values of terms in a set of documents. I used the following code to obtain the same.</p>
  
  <pre><code>vectorizer = TfidfVectorizer(stop_words=u'english',ngram_range=(1,5),lowercase=True)
  X = vectorizer.fit_transform(lectures)
  </code></pre>
  
  <p>Now If I print X, I am able to see all the entries in matrix, but how can I find top n entries based on tfidf score. In addition to that is there any method that will help me to find top n entries based on tfidf score per ngram i.e. top entries among unigram,bigram,trigram and so on?</p>