mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 09:42:26 +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 object keys
|
||||||
cdef public int i
|
cdef public int i
|
||||||
|
|
||||||
def __init__(self, strings, data_or_width):
|
def __init__(self, strings, data_or_width=0):
|
||||||
self.strings = StringStore()
|
self.strings = StringStore()
|
||||||
if isinstance(data_or_width, int):
|
if isinstance(data_or_width, int):
|
||||||
self.data = data = numpy.zeros((len(strings), data_or_width),
|
self.data = data = numpy.zeros((len(strings), data_or_width),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user