spaCy/spacy/tests/regression/test_issue1518.py

11 lines
247 B
Python
Raw Normal View History

2017-11-11 02:13:56 +03:00
# 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))