spaCy/spacy/tests/regression/test_issue589.py

11 lines
185 B
Python
Raw Normal View History

2016-11-01 14:33:36 +03:00
import pytest
from ...vocab import Vocab
from ...tokens import Doc
def test_issue589():
vocab = Vocab()
vocab.strings.set_frozen(True)
doc = Doc(vocab, words=[u'whata'])