title: Rename gensim Word2Vec words with mapping
body: <p>I want to replace the words of my gensim Word2Vec model with a mapping.</p>
  
  <p><strong>Example</strong></p>
  
  <p>My current model has the word <code>'foo'</code> that maps to a vector: </p>
  
  <pre><code>&gt;&gt;&gt; model['foo']
  [1.0 0.0]
  </code></pre>
  
  <p>I have the mapping: <code>d = {'foo': 'bar', ...}</code></p>
  
  <p>How can I rebuild the model with this new mapping such that </p>
  
  <pre><code>&gt;&gt;&gt; model['bar']  # in place of 'foo'
  [1.0 0.0]
  </code></pre>