spaCy/spacy/tests/regression/test_issue1612.py

9 lines
194 B
Python
Raw Normal View History

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