spaCy/spacy/tests/regression/test_issue1518.py

8 lines
191 B
Python
Raw Normal View History

from ...vectors import Vectors
def test_issue1518():
'''Test vectors.resize() works.'''
vectors = Vectors(shape=(10, 10))
vectors.add(u'hello', row=2)
vectors.resize((5, 9))