spaCy/spacy/tests/regression/test_issue1612.py

9 lines
194 B
Python
Raw Normal View History

2017-11-28 19:27:27 +00:00
# coding: utf8
2017-11-20 17:37:45 +00:00
from __future__ import unicode_literals
2017-11-28 19:27:27 +00:00
def test_issue1612(en_tokenizer):
doc = en_tokenizer('The black cat purrs.')
2017-11-20 17:37:45 +00:00
span = doc[1: 3]
assert span.orth_ == span.text