spaCy/spacy/tests/regression/test_issue1518.py
2017-11-11 00:13:56 +01:00

11 lines
247 B
Python

# coding: utf8
from __future__ import unicode_literals
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))