def add_unknown_words(word_vecs, vocab, min_df=1, k=300):
 for word in vocab:
  if ((word not in word_vecs) and (vocab[word] >= min_df)):
   word_vecs[word] = np.random.uniform((-0.25), 0.25, k)

def add_unknown_words ( word_vecs , vocab , min_df = 1 , k = 300 ) : for word in vocab : if ( ( word not in word_vecs ) and ( vocab [ word ] >= min_df ) ) : word_vecs [ word ] = np . random . uniform ( ( - 0.25 ) , 0.25 , k )
for words that occur in at least min_df documents .