spaCy/spacy/tests/regression/test_issue589.py
2017-01-10 19:24:10 +01:00

14 lines
241 B
Python

# coding: utf-8
from __future__ import unicode_literals
from ...vocab import Vocab
from ...tokens import Doc
import pytest
def test_issue589():
vocab = Vocab()
vocab.strings.set_frozen(True)
doc = Doc(vocab, words=['whata'])