def add_vecs_to_vocab(vocab, vectors):
 length = len(vectors[0][1])
 vocab.resize_vectors(length)
 for (word, vec) in vectors:
  vocab[word].vector = vec
 return vocab

def add_vecs_to_vocab ( vocab , vectors ) : length = len ( vectors [ 0 ] [ 1 ] ) vocab . resize_vectors ( length ) for ( word , vec ) in vectors : vocab [ word ] . vector = vec return vocab
add list of vector tuples to given vocab .