spaCy/spacy/tests/regression/test_issue600.py

10 lines
236 B
Python
Raw Normal View History

2016-11-03 01:24:13 +03:00
from __future__ import unicode_literals
from ...tokens import Doc
from ...vocab import Vocab
2016-12-18 18:51:31 +03:00
from ...attrs import POS
2016-11-03 01:24:13 +03:00
def test_issue600():
doc = Doc(Vocab(tag_map={'NN': {'pos': 'NOUN'}}), words=['hello'])
doc[0].tag_ = u'NN'