spaCy/spacy/tests/regression/test_issue600.py

12 lines
252 B
Python
Raw Normal View History

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