title: Gensim framework: Saving and storing word2vec keyed vectors
body: <p>I'am using the word2vec model and I have a problem with storing and reading it.</p>
  
  <pre><code>import gensim.models.keyedvectors as w2v
  from gensim.models import KeyedVectors
  
  word_vectors = w2v.wv
  word_vectors.save(filepath + "Vectors.bin")
  
  m = word2vec.KeyedVectors.load_word2vec_format(filepath + "Vectors.bin", binary=True)
  </code></pre>
  
  <p>I get following error:</p>
  
  <pre><code>UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
  
  </code></pre>
  
  <p>In the following way the laoding will work:</p>
  
  <pre><code>vectors = KeyedVectors.load(filepath + "Vectors.bin", mmap='r')
  </code></pre>
  
  <p>But If I then call</p>
  
  <pre><code>vectors.similar_by_word("cat")
  </code></pre>
  
  <p>I get following error: 
  TypeError: unsupported operand type(s) for ** or pow(): 'list' and 'int'</p>
  
  <p>What am I doing wrong?
  How can I use the save_word2vec_format() function?</p>