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

12 lines
252 B
Python

# coding: utf-8
from __future__ import unicode_literals
from ...tokens import Doc
from ...vocab import Vocab
from ...attrs import POS
def test_issue600():
doc = Doc(Vocab(tag_map={'NN': {'pos': 'NOUN'}}), words=['hello'])
doc[0].tag_ = 'NN'