From 125c910a8dfcade671b30fbe8654fe69cd9372f2 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 2 Nov 2016 23:24:13 +0100 Subject: [PATCH] Test Issue #600 --- spacy/tests/regression/test_issue600.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 spacy/tests/regression/test_issue600.py diff --git a/spacy/tests/regression/test_issue600.py b/spacy/tests/regression/test_issue600.py new file mode 100644 index 000000000..2ab8e9c25 --- /dev/null +++ b/spacy/tests/regression/test_issue600.py @@ -0,0 +1,8 @@ +from __future__ import unicode_literals +from ...tokens import Doc +from ...vocab import Vocab + + +def test_issue600(): + doc = Doc(Vocab(tag_map={'NN': {'pos': 'NOUN'}}), words=['hello']) + doc[0].tag_ = u'NN'