title: How to get the text of cluster centers from scikit-learn KMeans?
body: <p>I have a list of strings that I use to fit <code>sklearn.cluster.KMeans</code>:</p>
  
  <pre class="lang-python prettyprint-override"><code>X = TfidfVectorizer().fit_transform(docs)
  km = KMeans().fit(X)
  </code></pre>
  
  <p>Now I would like to get the cluster centers in their original string representation. I know <code>km.cluster_centers_</code> but could not figure out how to get the relevant indices of <code>docs</code>.</p>