Make width default to 0 in vectors.pyx

This commit is contained in:
Matthew Honnibal 2017-09-17 12:29:14 -05:00
parent 16122f566e
commit 4f38a67a89

View File

@ -23,7 +23,7 @@ cdef class Vectors:
cdef public object keys
cdef public int i
def __init__(self, strings, data_or_width):
def __init__(self, strings, data_or_width=0):
self.strings = StringStore()
if isinstance(data_or_width, int):
self.data = data = numpy.zeros((len(strings), data_or_width),