title: Encoding problem while training my own Glove model
body: <p>I am training a GloVe model with my own corpus and I have troubles to save it/load it in an <code>utf-8</code> format.</p>
  
  <p>Here what I tried: </p>
  
  <pre><code>from glove import Corpus, Glove
  
  #data
  lines = [['woman', 'umbrella', 'silhouetted'], ['person', 'black', 'umbrella']]
  
  #GloVe training
  corpus = Corpus() 
  corpus.fit(lines, window=4)
  glove = Glove(no_components=4, learning_rate=0.1)
  glove.fit(corpus.matrix, epochs=10, no_threads=8, verbose=True)
  glove.add_dictionary(corpus.dictionary)
  glove.save('glove.model.txt')
  </code></pre>
  
  <p>The saved file <code>glove.model.txt</code> is unreadable and I can't succeed to save it with a <code>utf-8</code> encoding.</p>
  
  <p>When I try to read it, for exemple by converting it in a Word2Vec format:</p>
  
  <pre><code>from gensim.models.keyedvectors import KeyedVectors
  from gensim.scripts.glove2word2vec import glove2word2vec
  glove2word2vec(glove_input_file="glove.model.txt", 
  word2vec_output_file="gensim_glove_vectors.txt")    
  
  model = KeyedVectors.load_word2vec_format("gensim_glove_vectors.txt", binary=False)
  </code></pre>
  
  <p>I have the following error:</p>
  
  <pre><code>UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
  </code></pre>
  
  <p>Any idea on how I could use my own GloVe model ?  </p>