title: How to get the specific words from CountVectorizer output?
body: <p>I have encoded a text data set using the Sklearn CountVectorizer method, e.g.:</p>
  <pre class="lang-py prettyprint-override"><code>c_vec = CountVectorizer(stop_words=stopwords)
  </code></pre>
  <p>where the stop words were generated by <code>nltk</code>.</p>
  <p>I used <code>output = c_vec.fit_transform(data)</code> to encode my dataset. I then want to check what the encoder was doing so ran <code>print(output)</code> and got a printout that looks like:</p>
  <pre class="lang-py prettyprint-override"><code>  (0, 3744) 3
    (0, 4511) 2
    (0, 4071) 2
    (0, 1831) 1
    (0, 4321) 2
    (0, 8156) 2
    (0, 7982) 1
    (0, 2714) 1
    (0, 2505) 1
    ...
    (2394, 6070)  1
    (2394, 8559)  2
    (2394, 8087)  1
    (2394, 7997)  8
    (2394, 7827)  1
    (2394, 5159)  5
    (2394, 5396)  1 
  </code></pre>
  <p>My understanding is that with <code>(0, 3744) 3</code>,</p>
  <ul>
  <li><code>0</code> is the line number of the string from the dataset</li>
  <li><code>3744</code> is the encoding of the word</li>
  <li><code>3</code> being the count of that word in the string.</li>
  </ul>
  <p>However, I want to be able to see what word is associated with <code>3744</code>. I have read the documentation on Sklearn, but can't see what I am looking for. Any suggestions?</p>