mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 17:24:41 +03:00
Simplify test
This commit is contained in:
parent
a113638414
commit
2e50dbb9d7
|
@ -1,12 +1,8 @@
|
|||
# coding: utf8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import pytest
|
||||
|
||||
from ...lang.en import English
|
||||
|
||||
|
||||
def test_issue1612():
|
||||
nlp = English()
|
||||
doc = nlp('The black cat purrs.')
|
||||
def test_issue1612(en_tokenizer):
|
||||
doc = en_tokenizer('The black cat purrs.')
|
||||
span = doc[1: 3]
|
||||
assert span.orth_ == span.text
|
||||
|
|
Loading…
Reference in New Issue
Block a user