mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Make width default to 0 in vectors.pyx
This commit is contained in:
parent
16122f566e
commit
4f38a67a89
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue
Block a user