mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Add test for #1773
This commit is contained in:
parent
ee4d06fb1b
commit
ac9e3a4a8b
9
spacy/tests/regression/test_issue1773.py
Normal file
9
spacy/tests/regression/test_issue1773.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
|
||||
def test_issue1773(en_tokenizer):
|
||||
"""Test that spaces don't receive a POS but no TAG. This is the root cause
|
||||
of the serialization issue reported in #1773."""
|
||||
doc = en_tokenizer('\n')
|
||||
if doc[0].pos_ == 'SPACE':
|
||||
assert doc[0].tag_ != ""
|
Loading…
Reference in New Issue
Block a user