1
1
mirror of https://github.com/explosion/spaCy.git synced 2025-01-16 12:36:23 +03:00
spaCy/spacy/tests/regression/test_issue600.py

12 lines
244 B
Python

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