Create vectors correctly

This commit is contained in:
Matthew Honnibal 2017-10-20 14:19:46 +02:00
parent 33229b1c9e
commit 9010a1a060

View File

@ -252,7 +252,7 @@ cdef class Vocab:
"""
if new_dim is None:
new_dim = self.vectors.data.shape[1]
self.vectors = Vectors(self.strings, new_dim)
self.vectors = Vectors(self.strings, width=new_dim)
def get_vector(self, orth):
"""Retrieve a vector for a word in the vocabulary.