spaCy/spacy/tests/regression/test_issue1380.py

15 lines
284 B
Python
Raw Normal View History

2017-10-04 14:36:50 +00:00
from __future__ import unicode_literals
import pytest
from ...language import Language
def test_issue1380_empty_string():
nlp = Language()
doc = nlp('')
assert len(doc) == 0
@pytest.mark.models('en')
def test_issue1380_en(EN):
doc = EN('')
assert len(doc) == 0