title: Cluster word2vec vectors using Affinity Propagation in python (sklearn)
body: <p>I want to cluster my word2vec clusters using Affinity Propagation and get the cluster center words.</p>
  
  <p>My current code is as follows.</p>
  
  <pre><code>model = word2vec.Word2Vec.load("word2vec")
  word_vectors = model.wv.syn0
  affprop = AffinityPropagation(affinity="precomputed", damping=0.5)
  af= affprop.fit(word_vectors)
  </code></pre>
  
  <p>However, this raise the following error:
  <code>ValueError: S must be a square array (shape=(77, 300))</code></p>
  
  <p>As I understand 300 means word2vec hidden layer dimension and 77 is my vocabulary size.</p>
  
  <p>I am just wondering how to use Affinity Propagation for word2vec vectors that are not square arrays.</p>
  
  <p>Please help me!</p>