title: TypeError: 'Word2Vec' object is not subscriptable
body: <p>I am trying to build a Word2vec model but when I try to reshape the vector for tokens, I am getting this error. Any idea ?</p>
  <pre><code>wordvec_arrays = np.zeros((len(tokenized_tweet), 100)) 
  for i in range(len(tokenized_tweet)):
      wordvec_arrays[i,:] = word_vector(tokenized_tweet[i], 100)
  wordvec_df = pd.DataFrame(wordvec_arrays) 
  wordvec_df.shape
  
  ---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-101-71156bf1c4a3&gt; in &lt;module&gt;
        1 wordvec_arrays = np.zeros((len(tokenized_tweet), 100))
        2 for i in range(len(tokenized_tweet)):
  ----&gt; 3     wordvec_arrays[i,:] = word_vector(tokenized_tweet[i], 100)
        4 wordvec_df = pd.DataFrame(wordvec_arrays)
        5 wordvec_df.shape
  
  &lt;ipython-input-100-e3a82e60af93&gt; in word_vector(tokens, size)
        4     for word in tokens:
        5         try:
  ----&gt; 6             vec += model_w2v[word].reshape((1, size))
        7             count += 1.
        8         except KeyError: # handling the case where the token is not in vocabulary
  
  TypeError: 'Word2Vec' object is not subscriptable
  </code></pre>