mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +03:00
Update spacy/vocab.pyx
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
parent
8332eadfbd
commit
0d05f10786
|
@ -300,7 +300,7 @@ cdef class Vocab:
|
||||||
width, you have to call this to change the size of the vectors.
|
width, you have to call this to change the size of the vectors.
|
||||||
"""
|
"""
|
||||||
if not isinstance(self.vectors, Vectors):
|
if not isinstance(self.vectors, Vectors):
|
||||||
raise ValueError(Errors.E849.format("reset", vectors_type=type(self.vectors)))
|
raise ValueError(Errors.E849.format(action="reset", vectors_type=type(self.vectors)))
|
||||||
if width is not None and shape is not None:
|
if width is not None and shape is not None:
|
||||||
raise ValueError(Errors.E065.format(width=width, shape=shape))
|
raise ValueError(Errors.E065.format(width=width, shape=shape))
|
||||||
elif shape is not None:
|
elif shape is not None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user