spaCy/spacy/tests/regression/test_issue1612.py
2017-11-28 20:27:27 +01:00

9 lines
194 B
Python

# coding: utf8
from __future__ import unicode_literals
def test_issue1612(en_tokenizer):
doc = en_tokenizer('The black cat purrs.')
span = doc[1: 3]
assert span.orth_ == span.text