title: AttributeError: module 'gensim.models.word2vec' has no attribute 'load'
body: <p>I import a text file from the desktop to do with gensim model on jupyter notebook. However, it return that:</p>
  
  <blockquote>
    <p>"AttributeError  Traceback (most recent call last)
     in 
    ----> 1 model = word2vec.load(r'C:\Users\qlm\Desktop\globalwarming.txt')</p>
    
    <p>AttributeError: module 'gensim.models.word2vec' has no attribute
    'load'"</p>
  </blockquote>
  
  <p>How can I fix this problem</p>
  
  <pre><code>import numpy as np
  import pandas as pd
  import gensim
  from matplotlib import pyplot as plt
  from gensim.models import word2vec
  from collections import defaultdict
  from sklearn.cluster import KMeans
  
  model = word2vec.Text8Corpus(r'C:\Users\qlm\Desktop\globalwarming.txt')
  model = word2vec.load(r'C:\Users\qlm\Desktop\globalwarming.txt')
  </code></pre>