title: Python Kmeans Print absolute frequency of words in each cluster
body: <p>hello is there a way to print out the absolute frequencies of each word in a cluster?
  My Code looks like this:</p>
  <pre><code>vectorizer = TfidfVectorizer()
  X = vectorizer.fit_transform(list)
  
  true_k = 4
  
  model = KMeans(n_clusters=true_k, init='k-means++', max_iter=100, n_init=1)
  
  model.fit(X)
  
  print(&quot;Top terms per cluster:&quot;)
  
  order_centroids = model.cluster_centers_.argsort()[:, ::-1]
  terms = vectorizer.get_feature_names()
  for i in range(true_k):
      print(&quot;Cluster %d:&quot; % i,)
      for ind in order_centroids[i, :5]:
          print(' %s' % terms[ind],)
      print
  </code></pre>
  <p>My results are e.g.:</p>
  <p>Top Terms per Cluster:</p>
  <p>Cluster 0:</p>
  <p>house</p>
  <p>roof</p>
  <p>table</p>
  <p>chair</p>
  <p>tv</p>
  <p>Cluster 1:</p>
  <p>...</p>
  <p>But I want something like this, with absolute frequencies of each word:</p>
  <p>Cluster 0:</p>
  <p>house 65</p>
  <p>roof 45</p>
  <p>table 44</p>
  <p>chair 33</p>
  <p>tv 18</p>
  <p>Thank you in advance :)</p>