title: Importing word vectors from tensorflow into gensim
body: <p>I want to import word vecters created from tensorflow and utilize it at gensim.</p>
  
  <p>there is a method <code>gensim.models.KeyedVectors.load_word2vec_format</code></p>
  
  <p>so I tried this method by following exactly the same way in <a href="https://stackoverflow.com/questions/42186543/training-wordvec-in-tensorflow-importing-to-gensim">Training wordvec in Tensorflow, importing to Gensim</a></p>
  
  <p>Example:</p>
  
  <blockquote>
    <p>2 3</p>
    
    <p>word0 -0.000737 -0.002106 0.001851</p>
    
    <p>word1 -0.000878 -0.002106 0.002834</p>
  </blockquote>
  
  <p>Save the file and then load with kwarg binary=False:</p>
  
  <pre><code>model = Word2Vec.load_word2vec_format(filename, binary=False)
  </code></pre>
  
  <p>but error like</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;pyshell#12&gt;", line 1, in &lt;module&gt;
      model=gensim.models.KeyedVectors.load_word2vec_format('test.w2v')
    File "C:\Users\cbj\Anaconda3\lib\site-packages\gensim\models\keyedvectors.py", line 243, in load_word2vec_format
      raise EOFError("unexpected end of input; is count incorrect or file otherwise damaged?")
  EOFError: unexpected end of input; is count incorrect or file otherwise damaged?
  </code></pre>
  
  <p>raised</p>
  
  <p>how can I solve this problem?</p>