mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
12 lines
244 B
Python
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'
|